We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Many NOTICE in this plugin! [Temporary Fix provided] - Hide admin | Forum

OW-Ghost
OW-Ghost Oct 11 '18

[Thu Oct 11 11:50:24 2018] [ow_core_log] [Notice] Message: Undefined index: method File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:121

[Thu Oct 11 11:50:50 2018] [ow_core_log] [Notice] Message: Undefined index: method File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:121

[Thu Oct 11 11:51:11 2018] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:99

[Thu Oct 11 11:51:12 2018] [ow_core_log] [Notice] Message: Undefined index: method File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:121

[Thu Oct 11 11:51:21 2018] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:99

[Thu Oct 11 11:51:21 2018] [ow_core_log] [Notice] Message: Undefined index: method File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:121

[Thu Oct 11 11:51:34 2018] [ow_core_log] [Notice] Message: Undefined index: method File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:121

[Thu Oct 11 11:51:36 2018] [ow_core_log] [Notice] Message: Undefined index: method File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:121

[Thu Oct 11 11:51:53 2018] [ow_core_log] [Notice] Message: Undefined index: method File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:121

[Thu Oct 11 11:51:53 2018] [ow_core_log] [Notice] Message: Undefined index: method File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:121

[Thu Oct 11 11:52:16 2018] [ow_core_log] [Notice] Message: Undefined index: method File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:121

[Thu Oct 11 11:52:18 2018] [ow_core_log] [Notice] Message: Undefined index: method File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:121

[Thu Oct 11 11:52:20 2018] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:99

[Thu Oct 11 11:52:20 2018] [ow_core_log] [Notice] Message: Undefined index: method File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:121

[Thu Oct 11 11:52:34 2018] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:99

[Thu Oct 11 11:52:34 2018] [ow_core_log] [Notice] Message: Undefined index: method File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:121

[Thu Oct 11 11:52:44 2018] [ow_core_log] [Notice] Message: Undefined index: method File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:121

[Thu Oct 11 11:52:44 2018] [ow_core_log] [Notice] Message: Undefined index: method File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:121

[Thu Oct 11 11:52:46 2018] [ow_core_log] [Notice] Message: Undefined index: method File: /home/mysite/public_html/ow_plugins/hideadmin/classes/event_handler.php Line:121

The Forum post is edited by OW-Ghost Feb 16 '20
OW-Ghost
OW-Ghost Feb 14 '20
This plugins is fill my erros log with 10000000000000000000 noctice errors and frustrating very much when i want to look for other errors


here is errors i got from recent update


[Fri Feb 14 17:45:20 2020] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /var/www/html/ow_plugins/hideadmin/classes/event_handler.php Line:99[Fri Feb 14 17:51:24 2020] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /var/www/html/ow_plugins/hideadmin/classes/event_handler.php Line:99[Fri Feb 14 17:52:49 2020] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /var/www/html/ow_plugins/hideadmin/classes/event_handler.php Line:99[Fri Feb 14 17:53:51 2020] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /var/www/html/ow_plugins/hideadmin/classes/event_handler.php Line:99[Fri Feb 14 17:58:27 2020] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /var/www/html/ow_plugins/hideadmin/classes/event_handler.php Line:99[Fri Feb 14 18:01:46 2020] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /var/www/html/ow_plugins/hideadmin/classes/event_handler.php Line:99[Fri Feb 14 18:02:17 2020] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /var/www/html/ow_plugins/hideadmin/classes/event_handler.php Line:99[Fri Feb 14 18:12:09 2020] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /var/www/html/ow_plugins/hideadmin/classes/event_handler.php Line:99[Fri Feb 14 18:12:47 2020] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /var/www/html/ow_plugins/hideadmin/classes/event_handler.php Line:99[Fri Feb 14 18:13:26 2020] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /var/www/html/ow_plugins/hideadmin/classes/event_handler.php Line:99[Fri Feb 14 18:14:44 2020] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /var/www/html/ow_plugins/hideadmin/classes/event_handler.php Line:99[Fri Feb 14 18:18:00 2020] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /var/www/html/ow_plugins/hideadmin/classes/event_handler.php Line:99



Please can you fix it as fast as possible


thanks


Ow_ghost

OW-Ghost
OW-Ghost Feb 16 '20
Here is a temporary fix that remove this notice:


That logs says the profile they tried to navigate to, does not exist.


This may be caused when you delete a user and they try to access to that user's profile. Or when they try to access to an nonexistent profile url.


To fix this replace this line:


$profileUserId = BOL_UserService::getInstance()->findByUsername($profileUserName)->id;


With this 2 lines:

$oUser = BOL_UserService::getInstance()->findByUsername($profileUserName);

$profileUserId = ($oUser) ? $oUser->id : 0;


That should solve the NOTICE.

You do not have permission to reply this topic