Module: Forum Subscriptions
Posted by Joe Curia
Re: Module: Forum Subscriptions October 04, 2011 11:25PM |
Registered: 11 years ago Posts: 1 |
October 05, 2011 06:16AM |
Admin Registered: 19 years ago Posts: 8,532 |
The number of members is totally irrelevant for the mail functionality. Apparently your hosting partner does not have their PHP / system setup working for solid mail delivery via PHP directly.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Re: Module: Forum Subscriptions January 25, 2012 03:32AM |
Registered: 12 years ago Posts: 9 |
Re: Module: Forum Subscriptions January 25, 2012 04:00PM |
Admin Registered: 20 years ago Posts: 9,240 |
Re: Module: Forum Subscriptions January 26, 2012 02:14AM |
Registered: 12 years ago Posts: 9 |
Re: Module: Forum Subscriptions January 26, 2012 04:33PM |
Admin Registered: 20 years ago Posts: 9,240 |
Re: Module: Forum Subscriptions January 27, 2012 11:58AM |
Registered: 14 years ago Posts: 753 |
Re: Module: Forum Subscriptions July 25, 2012 12:42PM |
Registered: 13 years ago Posts: 3 |
Re: Module: Forum Subscriptions February 21, 2013 07:47AM |
Registered: 10 years ago Posts: 7 |
I think there is a bug in the forum_subscriptions/db_functions.php:483
$return_val shouldn't be DB_RETURN_ASSOC but rather DB_RETURN_ASSOCS. In this case the whole assignment should be pulled out of if-then-else branching and assigned DB_RETURN_ASSOCS.
Otherwise, it issues a warning like that:
Warning: Illegal string offset 'forum_id' in [%phorum_folder%]/mods/forum_subscriptions/db_functions.php on line 497
Warning: Illegal string offset 'forum_id' in [%phorum_folder%]/mods/forum_subscriptions/db_functions.php on line 497
Warning: Illegal string offset 'forum_id' in [%phorum_folder%]/mods/forum_subscriptions/db_functions.php on line 498
Warning: Illegal string offset 'forum_id' in [%phorum_folder%]/mods/forum_subscriptions/db_functions.php on line 497
Warning: Illegal string offset 'forum_id' in [%phorum_folder%]/mods/forum_subscriptions/db_functions.php on line 497
Warning: Illegal string offset 'forum_id' in [%phorum_folder%]/mods/forum_subscriptions/db_functions.php on line 498
I noticed the warning is issued in case a user tries to subscribe to
Would you confirm this bug should be corrected?
Looking forward to your answer.
Thank you.
$return_val shouldn't be DB_RETURN_ASSOC but rather DB_RETURN_ASSOCS. In this case the whole assignment should be pulled out of if-then-else branching and assigned DB_RETURN_ASSOCS.
Otherwise, it issues a warning like that:
Warning: Illegal string offset 'forum_id' in [%phorum_folder%]/mods/forum_subscriptions/db_functions.php on line 497
Warning: Illegal string offset 'forum_id' in [%phorum_folder%]/mods/forum_subscriptions/db_functions.php on line 497
Warning: Illegal string offset 'forum_id' in [%phorum_folder%]/mods/forum_subscriptions/db_functions.php on line 498
Warning: Illegal string offset 'forum_id' in [%phorum_folder%]/mods/forum_subscriptions/db_functions.php on line 497
Warning: Illegal string offset 'forum_id' in [%phorum_folder%]/mods/forum_subscriptions/db_functions.php on line 497
Warning: Illegal string offset 'forum_id' in [%phorum_folder%]/mods/forum_subscriptions/db_functions.php on line 498
I noticed the warning is issued in case a user tries to subscribe to
- an already subscribed forum;
- a forum when already subscribed to all of them;
- all forums when already subscribed to all of them.
Would you confirm this bug should be corrected?
Looking forward to your answer.
Thank you.
Re: Module: Forum Subscriptions April 17, 2013 07:11AM |
Registered: 10 years ago Posts: 7 |
Joe,
I think forum access functions like
I found that phorum_api_user_check_access with 3 parameters is called only in your module. It can be the cause of problem.
Would you please examine this issue and comment?
I think forum access functions like
orLanguage: PHPphorum_api_user_check_access(PHORUM_USER_ALLOW_READ, PHORUM_ACCESS_LIST, $user_id)
in forum_subscriptions_after_post.php don't yield the correct results, which can be retrieved fromLanguage: PHPphorum_api_user_check_access(PHORUM_USER_ALLOW_READ, $mail_data["forum_id"], $user_id)
in 'forum_permissions' and 'group_permissions'.Language: PHPphorum_db_user_get($user_id, true)
I found that phorum_api_user_check_access with 3 parameters is called only in your module. It can be the cause of problem.
Would you please examine this issue and comment?
Sorry, only registered users may post in this forum.