Opened 11 years ago

Closed 11 years ago

Last modified 7 years ago

#573 closed bug (worksforme)

links in emails sent out by forum are broken

Reported by: guaka Owned by:
Priority: critical Milestone: Legacy Resolved
Component: BW Forum Keywords: forum
Cc: lemon-head, tobixen, jean-yves


<a href="http:///forums/s381">Be Positive about BeWelcome</a>

<a href="http:///forums/subscriptions/unsubscribe/thread/266/08c39e4b7585abbdd47f">Unsubscribe</a>

Change History (7)

comment:1 Changed 11 years ago by lemon-head

  • Cc tobixen jean-yves added
  • Component changed from BW Forum to BW Admin
  • Type changed from unknown to bug

Found the problem (or I assume I found it).

  • mailbot.php uses 'http://'.$_SYSHCVOL['SiteName'] as a baseuri.
  • $_SYSHCVOLSiteName? appears to be undefined, or empty.
  • normally, it should be defined in rox_local.ini in root folder on production, like this
    SiteName = ...

I think in the meantime tobixen knows how the ini files work... so I hope he can fix it.

In general, it would be good to make a check if all the $_SYSHCVOL variables are set to the correct value (both in the ini file, and at runtime for website and cronjobs).

comment:2 Changed 11 years ago by tobixen

I'm not sure how to debug this, but the config file should be read by the cronjob by now.

Please contact me by irc, google chat or skype, and we'll look into it.

comment:3 Changed 11 years ago by tobixen

  • follow_up changed from none to test

The config was fixed yesterday in rox_local.ini

the SiteName? should be set and commited to

I'm wondering if we need SiteName? at all - I think it's always the same as SERVER_NAME? Maybe the code could be fixed so that "if not defined SiteName?, then set SiteName?=SERVER_NAME"?

comment:4 Changed 11 years ago by lemon-head

I think the idea of SiteName is to make localhost or other environments behave like production. For instance, if we would run the mailbot on, we could still have the emails link to Or, on localhost you can have one version that behaves like, and another that behaves like test.

On the other hand, I think "SiteName" is maybe not the best name for this. Any other idea?

comment:5 Changed 11 years ago by micha

  • Resolution set to worksforme
  • Status changed from new to closed

comment:6 Changed 11 years ago by micha

  • follow_up changed from test to none

comment:7 Changed 7 years ago by TimLoal

  • Component changed from BW Admin to BW Forum
  • Milestone changed from unassigned to Legacy Resolved
Note: See TracTickets for help on using tickets.