2017-03-27, 01:52 PM
Fatal error: Uncaught Error: Call to a member function getByCode() on boolean in /customers/a/4/e/ontic-philosophy.com/httpd.www/inc/plugins/myalerts.php:891 Stack trace: #0 /customers/a/4/e/ontic-philosophy.com/httpd.www/inc/class_plugins.php(139): myalerts_alert_post_threadauthor(Object(PostDataHandler)) #1 /customers/a/4/e/ontic-philosophy.com/httpd.www/inc/datahandlers/post.php(1078): pluginSystem->run_hooks(Array, Object(PostDataHandler)) #2 /customers/a/4/e/ontic-philosophy.com/httpd.www/newreply.php(518): PostDataHandler->insert_post() #3 {main} thrown in /customers/a/4/e/ontic-philosophy.com/httpd.www/inc/plugins/myalerts.php on line 891
I get this error message when a guest comments.
Here is line 891 of myalerts php:
139 of class_plugins.php
1078 of post.php
518 of newreply.php
891 of myalerts.php
Do I have to add any @ symbols or a 'return false' somewhere?
Clearly, the issue is with my alerts, maybe I should disable it and try commenting as a guest.
Yep, if I disabled myalerts, a guest can comment.
I will leave it disabled until hopefully one of the geniuses of mybb community forums can point me towards a fix!
Is there a simple way to give guests a user ID?
I get this error message when a guest comments.
Here is line 891 of myalerts php:
889 if (!$post->data['savedraft']) {
890 /** @var MybbStuff_MyAlerts_Entity_AlertType $alertType */
891 $alertType = MybbStuff_MyAlerts_AlertTypeManager::getInstance()->getByCode('post_threadauthor');
139 of class_plugins.php
$return_args = $func($arguments);
}
1078 of post.php
$plugins->run_hooks("datahandler_post_insert_post", $this);
518 of newreply.php
$postinfo = $posthandler->insert_post();
$pid = $postinfo['pid'];
$visible = $postinfo['visible'];
$closed = $postinfo['closed'];
891 of myalerts.php
$alertType = MybbStuff_MyAlerts_AlertTypeManager::getInstance()->getByCode('post_threadauthor');
Do I have to add any @ symbols or a 'return false' somewhere?
Clearly, the issue is with my alerts, maybe I should disable it and try commenting as a guest.
Yep, if I disabled myalerts, a guest can comment.
I will leave it disabled until hopefully one of the geniuses of mybb community forums can point me towards a fix!
Is there a simple way to give guests a user ID?