Okay
  Public Ticket #3642413
Theme not working with php 8.1 or above
Closed

Comments

  • Jayp07 started the conversation

    Hi , I use your theme for my portfolio website and had to update my host php to version 8.1 or above.

    In doing so this caused a critical error on my wordpress website and I can not longer access it.

    The error maybe with Bakery builder or the theme files. Once in recovery mode the message says: One or more themes failed to load properly.
    You can find more details and make changes on the Themes screen.

    Before I changed my php version with my host I updated both the theme and the builder to the latest version.  Please can you help me as a matter of urgency as I use this website daily. I appreciate your help with this matter.

    The WP error message is:

    Error Details
    =============
    An error of type E_COMPILE_ERROR was caused in line 646 of the file /home/domains/vol4/860/2874860/user/htdocs/wp-content/plugins/wp-bakery/include/classes/editors/class-vc-frontend-editor.php. Error message: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

    Kind regards

    Jason

  •  933
    Neuron replied

    Hi,

    Please make sure that you're running the latest version of the Dendrite theme.

    Dendrite Theme Version 1.3.0
    

    You can update the theme directly on your dashboard, via the plugin below: 

    https://envato.com/market-plugin/

    Feel free to ask for anything you need.

    Kind Regards


  • Jayp07 replied

    Hi Team,

    Thank you for your reply although your advice wasn't very helpful as I already mentioned that I had downloaded the latest version of the theme (1.3.0) before I upgraded my php version.

    Regardless, as suggested, I downloaded the market plugin and that confirmed I have the latest version. 

    I have to phone my host customer service to change the php back to 7.4 each time my website fails to load so should this fail again I would really appreciate some more detailed advice. I will change the php version now to 8.1 and let you know if this worked.

  • Jayp07 replied

    Hi Team, as suspected, after checking the latest version of the theme and upgrading my php to 8.1 again my website has crashed displaying the same error - There has been a critical error on this website.

    The error information from WP is below:


    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.5.2
    Active theme: Dendrite (version 1.3.0)
    Current plugin:  (version )
    PHP version 8.1.28



    Error Details
    =============
    An error of type E_ERROR was caused in line 29 of the file /home/domains/vol4/860/2874860/user/htdocs/wp-content/themes/dendrite/includes/redux-framework/reduxcore/inc/class.redux_filesystem.php. Error message: Uncaught Error: Attempt to modify property "admin_notices" on null in /home/domains/vol4/860/2874860/user/htdocs/wp-content/themes/dendrite/includes/redux-framework/reduxcore/inc/class.redux_filesystem.php:29
    Stack trace:
    #0 /home/domains/vol4/860/2874860/user/htdocs/wp-content/themes/dendrite/includes/redux-framework/reduxcore/inc/class.redux_filesystem.php(47): Redux_Filesystem->__construct()
    #1 /home/domains/vol4/860/2874860/user/htdocs/wp-content/themes/dendrite/includes/redux-framework/reduxcore/inc/class.redux_filesystem.php(286): Redux_Filesystem::get_instance()
    #2 /home/domains/vol4/860/2874860/user/htdocs/wp-content/themes/dendrite/includes/redux-framework/reduxcore/framework.php(51): require_once('/home/domains/v...')
    #3 /home/domains/vol4/860/2874860/user/htdocs/wp-content/themes/dendrite/functions.php(99): require_once('/home/domains/v...')
    #4 /home/domains/vol4/860/2874860/user/htdocs/wp-includes/class-wp-hook.php(324): dendrite_setup('')
    #5 /home/domains/vol4/860/2874860/user/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #6 /home/domains/vol4/860/2874860/user/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #7 /home/domains/vol4/860/2874860/user/htdocs/wp-settings.php(673): do_action('after_setup_the...')
    #8 /home/domains/vol4/860/2874860/user/htdocs/wp-config.php(90): require_once('/home/domains/v...')
    #9 /home/domains/vol4/860/2874860/user/htdocs/wp-load.php(50): require_once('/home/domains/v...')
    #10 /home/domains/vol4/860/2874860/user/htdocs/wp-admin/admin-ajax.php(22): require_once('/home/domains/v...')
    #11 {main}
      thrown


    I would appreciate your urgent assistance with this matter. Thank you!

  •  933
    Neuron replied

    Hi,

    The theme is fully compatible with PHP 8.1, but it seems that you're missing one of the theme's required plugins which is Redux Framework, so please install it from the link below and let me know if that solves the issue.

    - https://wordpress.org/plugins/redux-framework/

    Feel free to ask for anything you need.

    Kind Regards


  • Jayp07 replied

    Luckily, WP has an automatic fail safe to get me back into my dashboard.

    I additional to the error message below here is a screen grab indicating that there are problems with the theme files. 

    Attached files:  Screenshot 2024-05-07 at 11.39.23.png

  • Jayp07 replied

    Hi mate, in all the years I've been using Dendrite, this is the first time I've heard of the required Redux plugin. I have installed this and confirm that my website seems to be loading fine. Big Thank you!

    Unfortunately, with the update I have lost some of my formatting and my page is no longer in the centre of the screen. If you know why it has become left justified that would be helpful? 

    Thank again for your help! :)

  •  933
    Neuron replied

    Hi,

    Can you please provide me with your wp-admin, I will have a quick look to see what's going on.

    Feel free to ask for anything you need.

    Kind Regards


  • Jayp07 replied

    Hi mate, don't worry about it. I noticed that some of the rows were displaying fine which means that its a setting that is causing me problems. I'm happy to figure this out myself. Thanks again for your help today.

  •  933
    Neuron replied

    You are welcome anytime, feel free to ask for anything you need

    If you like our theme or the support, please leave us a rate of 5 stars at ThemeForest, that would help us a lot.

    Kind Regards,
    NeuronThemes