Fatal Error

Home Forums Jevelin Theme Fatal Error

Home Forums Jevelin Theme Fatal Error

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    RESOLVED Posts
  • wsjiii
    Participant

    Hello,

     

    I’m making a new site and switched to a different theme. I changed my mind and went back to the Jevelin (child theme) and now some of the pages show the following error:

    <b>”Fatal error</b>: Cannot redeclare jevelin_render_google_analytics_js() (previously declared in /home4/wsjiii/public_html/AndroHQ.com/wp-content/themes/jevelin/inc/static.php:93) in <b>/home4/wsjiii/public_html/AndroHQ.com/wp-content/themes/jevelin/inc/static.php</b> on line <b>109″</b>

     

    Any suggestions? Thank you.

    Hi @wsjiii,

     

    I hope you are well today and thank you for your question.

     

    Please make sure you are not redeclaring function jevelin_render_google_analytics_js in the child theme and If you want to change code of this function then you can do so using below hook.

     

    remove_action( 'wp_head', 'jevelin_render_google_analytics_js' , 100);

     

    Best regards,
    Shufflehound team

    wsjiii
    Participant

    I don’t see where the error is. Could you look at the static.php file I have uploaded please?

    wsjiii
    Participant

    I changed the line

    add_action( ‘wp_head’, ‘jevelin_render_google_analytics_js’ , 100);

     

    to

     

    remove_action( ‘wp_head’, ‘jevelin_render_google_analytics_js’ , 100);

     

    but nothing changes.

    I don’t see where the error is. Could you look at the static.php file I have uploaded please?

    Could you please tell me where you have uploaded it?

     

    I changed the line

    but nothing changes.

    Would you mind if i log in to your site and do some troubleshooting? If this is ok then could you please share me your site log in details privately by adding them in the box having text “Click here to share private content. Only you and forum moderators will be able to see it.”?

    wsjiii
    Participant

    I wasn’t able to upload the file to the forum:
    <h6>Upload Errors:</h6>

    1. static.php: Sorry, this file type is not permitted for security reasons

    Yes I need WordPress login details.

    wsjiii
    Participant

    OK

    I logged into your site and saw the child theme is active but didn’t get error message anywhere on the site.

     

    Could you please share me the page URL from your site where it is displaying so that I can troubleshoot it?

     

    Also I can see on your site you are using outdated version of PHP as shown in the attached screenshot so please update it to the latest version by contacting your web host.

    Attachments:
    You must be logged in to view attached files.

    wsjiii
    Participant

    Hello,

     

    Most of the pages linked to from the main menu show the error when you click on them.

     

    I’ll definitely contact my hosting provider about getting the PHP updated.

     

    Thanks.

    wsjiii
    Participant

    The php was updated. Did you see the pages I was talking about?

    Solution for this topic

    I logged into your site and resolve the issue by deactivating Table of Contents Plus plugin that you were using and causing this issue.

     

    Please contact Table of Contents Plus plugin developer to resolve it.

    wsjiii
    Participant

    Will do. Thanks very much for your help. 🙂

    You are most welcome here 🙂

Viewing 14 posts - 1 through 14 (of 14 total)