wiki | forum | trac | otrs | joomla | tech blog | mailman | bewelcome Branches: test.bw | alpha.bw | www.bw Participate: download | get involved

Ticket #573 (closed bug: worksforme)

Opened 3 months ago

Last modified 6 days ago

links in emails sent out by forum are broken

Reported by: guaka Assigned to:
Priority: critical Milestone: unassigned
Component: BW Admin Version: production
Keywords: forum Cc: lemon-head, tobixen, jean-yves
Follow up needed: none Frequently reported: 1
Announce on BW: 0

Description

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

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

Change History

05/28/08 22:01:30 changed by lemon-head

  • cc changed from lemon-head to lemon-head, tobixen, jean-yves.
  • owner changed.
  • 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
    [syshcvol]
    ...
    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).

05/29/08 12:22:24 changed by tobixen

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

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

05/30/08 08:18:59 changed 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 www.bewelcome.org.ini

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"?

05/30/08 11:32:10 changed 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 old.bewelcome.org, we could still have the emails link to www.bw. Or, on localhost you can have one version that behaves like www.bw, and another that behaves like test.

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

08/22/08 08:58:36 changed by micha

  • status changed from new to closed.
  • resolution set to worksforme.

08/22/08 08:58:41 changed by micha

  • follow_up changed from test to none.
Trac Customization: trac stylesheet
SourceForge.net Logo