- Posts: 102
How To / General
J Cohort PHP error
- Justin
- Topic Author
- Offline
- Premium Member
-
Less
More
7 years 10 months ago #1
by Justin
J Cohort PHP error was created by Justin
Hi
I keep getting this error popping up in my PHP error log
[24-May-2018 14:17:17 ] PHP Deprecated: Non-static method JcohortsHelper::get_cohort_id() should not be called statically, assuming $this from incompatible context in /usr/www/users/MYSITE/plugins/user/jcohortsync/jcohortsync.php on line 27
[28-May-2018 20:59:58 ] PHP Deprecated: Non-static method JcohortsHelper::get_cohort_id() should not be called statically, assuming $this from incompatible context in /usr/www/users/MYSITE/plugins/user/jcohortsync/jcohortsync.php on line 27
I keep getting this error popping up in my PHP error log
[24-May-2018 14:17:17 ] PHP Deprecated: Non-static method JcohortsHelper::get_cohort_id() should not be called statically, assuming $this from incompatible context in /usr/www/users/MYSITE/plugins/user/jcohortsync/jcohortsync.php on line 27
[28-May-2018 20:59:58 ] PHP Deprecated: Non-static method JcohortsHelper::get_cohort_id() should not be called statically, assuming $this from incompatible context in /usr/www/users/MYSITE/plugins/user/jcohortsync/jcohortsync.php on line 27
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
7 years 10 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic J Cohort PHP error
Hi.
Thanks for the bug report. We'll release a new version with the fix soon.
You can fix it by editing: administrator/components/com_jcohorts/helpers/jcohorts.php
Change:
By:
Thanks for the bug report. We'll release a new version with the fix soon.
You can fix it by editing: administrator/components/com_jcohorts/helpers/jcohorts.php
Change:
Code:
function get_cohort_id ($group_id)
Code:
public static function get_cohort_id ($group_id)
Please Log in or Create an account to join the conversation.
- Justin
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 102
7 years 10 months ago #3
by Justin
Replied by Justin on topic J Cohort PHP error
Hi
Thank you, glad I can help.
Here is another one
Thank you, glad I can help.
Here is another one
Code:
PHP Warning: Missing argument 3 for TeamRolesUserInfo::__construct(), called in /usr/www/users/MYSITE/plugins/user/teamroles/TeamRolesUpdater.php on line 114 and defined in /usr/www/users/MYSITE/plugins/user/teamroles/TeamRolesUserInfo.php on line 27
PHP Warning: Missing argument 2 for TeamRolesUserInfo::__construct(), called in /usr/www/users/MYSITE/plugins/user/teamroles/TeamRolesUpdater.php on line 114 and defined in /usr/www/users/MYSITE/plugins/user/teamroles/TeamRolesUserInfo.php on line 27
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
7 years 10 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic J Cohort PHP error
Hi.
It seems these errors are coming from a user contributed plugin, not maintaned by Joomdle. If you are using v1.2 of Team Roles plugin, please download and install new version from:
github.com/SFWLtd/plg_user_teamroles
If that does not solve the issue, you will need to contact the developer to inform him of the bug.
I will also update downloads page to have the latest version.
It seems these errors are coming from a user contributed plugin, not maintaned by Joomdle. If you are using v1.2 of Team Roles plugin, please download and install new version from:
github.com/SFWLtd/plg_user_teamroles
If that does not solve the issue, you will need to contact the developer to inform him of the bug.
I will also update downloads page to have the latest version.
Please Log in or Create an account to join the conversation.