Knowledge Base

Fatal Error - Knowledge Base

Fatal Error

by Shywing » Fri Oct 04, 2019 1:41 am

Fatal error: Cannot redeclare generate_smilies() (previously declared in /srv/disk1/2575031/www/manganimeverse.com/includes/functions_posting.php:25) in /srv/disk1/2575031/www/manganimeverse.com/includes/functions_posting.php on line 167
Getting this message whenever I try to create a new article.
Shywing
Registered User
Posts: 8
Joined: Sat Jan 19, 2019 7:45 pm
Contact:

Re: Fatal Error

by kinerity » Fri Oct 04, 2019 11:27 am

Hmm, never ran into that issue. What happens if you replace the generate_smilies('inline', 0); line in /controller/main_controller.php with the code below?

Code: Select all

if (!function_exists('generate_smilies'))
{
    include($this->root_path . 'includes/functions_user.'.$this->php_ext);
    generate_smilies('inline', 0);
}
Kailey Truscott - Community Team
User avatar
kinerity
Community Team Member
Community Team Member
Posts: 2557
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: Fatal Error

by Shywing » Sat Oct 05, 2019 4:40 am

Unfortunately I still get the same error.

Edit: After a bit more looking around, it seems to be an issue caused by another extension. Specifically "Contact Admin" and has since been disabled. This appears to have resolved the issue completely. Thanks for your help regardless!
Shywing
Registered User
Posts: 8
Joined: Sat Jan 19, 2019 7:45 pm
Contact: