Firefox PHP

Module: Forum Subscriptions

Posted by Joe Curia 
Re: Module: Forum Subscriptions : Sorry for reposting!
January 27, 2011 09:41AM
Sorry for reposting!
I recently posted a message under "Forum Subscriptions". Joe does not seem to read messages at the moment (and edited messages won't show up on top under "Recent Messages"). Could anybody else help me finding a bug (?) regarding incorrect links (i.e. http : / / : / r e a d . p h p ? ...) which I currently receive with email notifications? I have tried to find the problem..
Re: Module: Forum Subscriptions : Sorry for reposting!
January 27, 2011 10:28PM
Sorry for replying three and a half days too late. I have been a bit busy with the turn of the year and unfortunately my hobbies have languished. You should see my bonsai tree :-p

As for this the delay on this specific issue, I have been mulling it over and do not have a good immediate response. This module is working for me. It seems that it was working for you but now isn't. Some questions to help debug:
  • Have you changed anything on your site? (eg. upgraded Phorum version, installed/enabled/disabled/uninstalled a module, edited the language file for this module, switched languages, changed templates, etc.)
  • Have you turned on the Event Logging module and is it reporting any events for this module?
  • Are others having this problem?
  • Do single messages (non-digest) also show incorrect links?
Thank you for your patience and help in debugging this.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Forum Subscriptions : Sorry for reposting!
January 28, 2011 01:40AM
Congratulation to the speedy growth of your bonsai!

Here my answers to your questions:

- I constantly change module settings. The language file for this module is untouched.

- I just switched from "daily digest" to "immediate". The mail I received hereafter contained the correct link.

- I haven't checked the weekly digest yet.

- The Event module doesn't throw out any warnings, just event info from the module.

- I am the only user at the moment.

Thanks for helping!
Re: Module: Forum Subscriptions : Sorry for reposting!
January 28, 2011 08:50AM
Have you updated to the latest version of this module (5.2.1.02)?


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Forum Subscriptions : Sorry for reposting!
January 28, 2011 09:36AM
Yes. To make sure nothing is missing I made a clean reinstall.
Re: Module: Forum Subscriptions : Sorry for reposting!
January 30, 2011 09:34AM
Joe, could you by any chance direct me to the possible problem area? How would I debug this problem? Thank you!
Re: Module: Forum Subscriptions
January 30, 2011 07:18PM
Have you changed anything with the module at all (eg. language files, template, etc)? Do you have any special url formatting going on (ie. your own phorum_custom_get_url() function or other rewrites for an embedded phorum)? The read url's are generated by Phorum's own function so I really am not sure where it could go so far awry.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Forum Subscriptions
February 01, 2011 12:09AM
Thank you! No, It is the newest version, unchanged. No phorum_custom_get_url() function. Why would it work with the notification after each post and then it fails with the daily digest? Very strange..
Re: Module: Forum Subscriptions
February 03, 2011 10:46AM
I already run a cronjob every 5 min. Could the following code cause trouble which I run within the "scheduled" hook? Somehow my base-link gets butchered when I get a daily digest (not when I receive the notification immediately). Thanks for looking!
Language: PHP
// Activate the admin user session (for PHORUM_FORUM_SESSION, since we are // accessing front end functionality here) $user_id = phorum_api_user_search(';username';, ';Admin';,';=';); if ($user_id) { phorum_api_user_set_active_user(PHORUM_FORUM_SESSION, $user_id); } else { die("User ';$username'; not found"); }

And I receive this info in response to a cronjob:
Language: PHP
X-Powered-By: PHP/5.2.16 Set-Cookie: phorum_session_st=deleted; expires=Wed, 03-Feb-2010 12:45:00 GMT; path=/ Set-Cookie: phorum_session_v5=deleted; expires=Wed, 03-Feb-2010 12:45:00 GMT; path=/ Content-type: text/html


Also, do I need to declare a "vroot" among my folder structure?



Edited 2 time(s). Last edit at 02/03/2011 12:02PM by korsakov.
Re: Module: Forum Subscriptions
February 05, 2011 02:39PM
Hi Joe, I also tried to skip my "scheduled" hook script. No change.
Here is an email being produced by your module which is in "Debug"-mode. Do you see anything troublesome? Thanks for looking!

Language: PHP
User info:   Anonymous user User IP address =   Additional details:   Message:   Daily Digest All Posts mail_data:   Array ( [sitename] => mysite [forumname] => foo_forum [forum_id] => 357 [vroot] => 0 [user_id] => [messages] => Array ( [0] => 3218 )   [frequency] => 1 [digest_id] => 1296882001_357_0 [digest_start] => 02/04/2011 )
Sorry, only registered users may post in this forum.

Click here to login