AndyB
Well-known member
I'm getting the following error message in my Server Error Logs:
XenForo_Exception: No controller response from Andy_SimilarThreads_ControllerPublic_Abstract::actionIndex - library/XenForo/FrontController.php:455
In my Similar Threads add-on I have an option to show similar threads when a new thread is being created. If this feature is disabled (un-checked) the code bypasses the main part of the function. Here's a link to the code:
http://xenforo.com/community/threads/similar-threads-v1-4.62374/#post-661591
In this situation I can't just add the following code:
because there's no actionIndex() parent in the default ControllerPublic_Abstract file.
What is the correct code to avoid the error message?
Thank you.
XenForo_Exception: No controller response from Andy_SimilarThreads_ControllerPublic_Abstract::actionIndex - library/XenForo/FrontController.php:455
In my Similar Threads add-on I have an option to show similar threads when a new thread is being created. If this feature is disabled (un-checked) the code bypasses the main part of the function. Here's a link to the code:
http://xenforo.com/community/threads/similar-threads-v1-4.62374/#post-661591
In this situation I can't just add the following code:
PHP:
//option not set return parent action
return parent::actionIndex();
because there's no actionIndex() parent in the default ControllerPublic_Abstract file.
What is the correct code to avoid the error message?
Thank you.