|
Re: Module: Forum Subscriptions October 04, 2011 10:25PM |
Registered: 14 years ago Posts: 1 |
|
Re: Module: Forum Subscriptions October 05, 2011 05:16AM |
Admin Registered: 21 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
my blog
linkedin profile
secret sauce
|
Re: Module: Forum Subscriptions January 25, 2012 02:32AM |
Registered: 15 years ago Posts: 9 |
|
Re: Module: Forum Subscriptions January 25, 2012 03:00PM |
Admin Registered: 23 years ago Posts: 9,240 |
|
Re: Module: Forum Subscriptions January 26, 2012 01:14AM |
Registered: 15 years ago Posts: 9 |
|
Re: Module: Forum Subscriptions January 26, 2012 03:33PM |
Admin Registered: 23 years ago Posts: 9,240 |
|
Re: Module: Forum Subscriptions January 27, 2012 10:58AM |
Registered: 17 years ago Posts: 754 |
|
Re: Module: Forum Subscriptions July 25, 2012 11:42AM |
Registered: 16 years ago Posts: 3 |
|
Re: Module: Forum Subscriptions February 21, 2013 06:47AM |
Registered: 13 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 06:11AM |
Registered: 13 years ago Posts: 7 |
Joe,
I think forum access functions like
[code="php"]
phorum_api_user_check_access(PHORUM_USER_ALLOW_READ, PHORUM_ACCESS_LIST, $user_id)
[/code]
or
[code="php"]
phorum_api_user_check_access(PHORUM_USER_ALLOW_READ, $mail_data["forum_id"], $user_id)
[/code]
in forum_subscriptions_after_post.php don't yield the correct results, which can be retrieved from
[code="php"]
phorum_db_user_get($user_id, true)
[/code]
in 'forum_permissions' and 'group_permissions'.
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
[code="php"]
phorum_api_user_check_access(PHORUM_USER_ALLOW_READ, PHORUM_ACCESS_LIST, $user_id)
[/code]
or
[code="php"]
phorum_api_user_check_access(PHORUM_USER_ALLOW_READ, $mail_data["forum_id"], $user_id)
[/code]
in forum_subscriptions_after_post.php don't yield the correct results, which can be retrieved from
[code="php"]
phorum_db_user_get($user_id, true)
[/code]
in 'forum_permissions' and 'group_permissions'.
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.
.

