• Resolved getampd

    (@getampd)


    This is my first time working with a self hosted wordpress website, I created the site with local by flywheel. I saw there was an update for elementor, I updated the plugin and it broke the site creating a fatal error.

    ( ! ) Fatal error: Uncaught TypeError: Cannot access offset of type string on string in C:\Users\angel\Local Sites\greerstep-dev\app\public\wp-content\plugins\elementor\core\page-assets\data-managers\base.php on line 242
    ( ! ) TypeError: Cannot access offset of type string on string in C:\Users\angel\Local Sites\greerstep-dev\app\public\wp-content\plugins\elementor\core\page-assets\data-managers\base.php on line 242

    I tried to roll back elementor to the previous version and it still has this error.

    Can someone direct me how to fix this?

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter getampd

    (@getampd)

    The elementor editor has the site saved. I just need advice on how to fix this error so the site shows up instead of the errors.

    Hi,

    Do you have Elementor pro on our site?

    Thread Starter getampd

    (@getampd)

    Hi @ozyeger, currently just elementor.

    • This reply was modified 1 year, 6 months ago by getampd.
    Thread Starter getampd

    (@getampd)

    @ozyeger

    I have tried deactivating elementor and reactivating, still recieve errors.

    I rolled back elementor to 3.13.0 and 3.12.2, still recieve errors.

    I tried to roll back php from 8.1 to 8.0, still recieve errors.

    I tried deleting elementor completely and then reinstalling it, still recieve errors.

    Switched to the vanilla hello theme in elementor, still recieve errors.

    To rule out the possibility of a plugin or theme conflict, please deactivate all your plugins (besides Elementor and Elementor Pro) and then update to the newest version If it solves the issue reactivate them one by one to find the culprit. If it didn’t help, switch your theme (temporarily) to a default WP theme such as Twenty Nineteen and see if it makes any difference.
    Also, this could happen due to our Elementor performance experiments you can try to deactivate them. To deactivate them you can go to Elementor > settings > features
    Performance features currently in the experimental stage are:

    • Optimized DOM Output -This experiment is designed to improve performance by decreasing the number of wrapper elements present in the HTML generated by Elementor.
    • Improved Asset Loading – Should improve page speed by only loading the functionalities needed by that page. This experiment reduces the amount of code loaded by default, which translates to significantly faster page load times and better page speed scores.
    • Improved CSS Loading – An experiment that only loads the CSS of widgets on a page once, in order to prevent multiple requests to the server. With this experiment, CSS files are loaded as inline style tags.
    • Inline Font Icons – This experiment renders icons as SVGs without loading the Font-Awesome and eicons libraries. Since SVGs are vector-based images which are rendered using the browser’s engine, they do not increase server requests which improves performance

    I’m getting this error when going to the dashboard using PHP 8.0
    If I go to an earlier version of PHP it is ok. Is this the Elementor Pro that is the problem or another plugin?

    Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /var/www/wp-content/plugins/elementor-pro/license/api.php:174 Stack trace: #0 /var/www/wp-content/plugins/elementor-pro/license/api.php(238): ElementorPro\License\API::is_request_running(‘get_version’) #1 /var/www/wp-content/plugins/elementor-pro/license/updater.php(60): ElementorPro\License\API::get_version(false) #2 /var/www/wp-content/plugins/elementor-pro/license/updater.php(130): ElementorPro\License\Updater->check_transient_data(Object(stdClass)) #3 /var/www/wp-includes/class-wp-hook.php(310): ElementorPro\License\Updater->check_update(Object(stdClass)) #4 /var/www/wp-includes/plugin.php(205): WP_Hook->apply_filters(Object(stdClass), Array) #5 /var/www/wp-includes/option.php(2036): apply_filters(‘pre_set_site_tr…’, Object(stdClass), ‘update_plugins’) #6 /var/www/wp-includes/update.php(391): set_site_transient(‘update_plugins’, Object(stdClass)) #7 /var/www/wp-includes/update.php(1020): wp_update_plugins() #8 /var/www/wp-includes/class-wp-hook.php(308): _maybe_update_plugins(”) #9 /var/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #10 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #11 /var/www/wp-admin/admin.php(175): do_action(‘admin_init’) #12 /var/www/wp-admin/index.php(10): require_once(‘/var/www/wp-adm…’) #13 {main} thrown in?/var/www/wp-content/plugins/elementor-pro/license/api.php?on line?174

    I’m getting the exact same error as @salesscottbevis when switching to php 8.0. I do not have an issue with php 7.4.

    I isolated the issue to Elementor Pro by turning off all plugins and turning them back on one by one. All of my plugins, WP and theme have been updated. Site crashes when I try to add a new plugin to the site.

    WP: 6.2.2
    Theme: Hello Elementor 2.8.1
    Elementor Pro: 3.14.1

    Any suggestions as to a possible solution for this.

    Thread Starter getampd

    (@getampd)

    @salesscottbevis & @ipanasian

    Hi Guys,

    Sorry I didn’t come back with an update. I was able to get it working again by rolling it back Elementor to version 3.9 and then upgraded to the most recent one and everything worked.?

    • This reply was modified 1 year, 4 months ago by getampd.

    I’ve tried to restore to a previous version as mentioned then update to the latest version but the website still has the same issue, nothing is better. What do I do next. This is so frustrating that getting help is so slow.

    @salesscottbevis I added the following “if” statement around line 174 and 175 of the file /wp-content/plugins/elementor-pro/license/api.php and it seems to have solved the issue in PHP 8.0. I was having the same exact problem as you after upgrading. I realize it’s not ideal to edit plugin files, but when the vendor response is lagging, bandaids like that can help get the site up, at least.

    if (is_array($requests_lock)):
        $requests_lock[ $name ] = time();
        update_option( self::REQUEST_LOCK_OPTION_NAME, $requests_lock );
    endif;
    

    @dimchik How to add the code if I cannot go through my WordPress dashboard? Because when I logged in in shows Fatal Error so I cannot access the code inside of it.

    There are many ways, sftp etc, depending on your hosting. But the easiest probably to first lower your PHP version to 7.4 so you can access the CMS. Once back in CMS, go to Plugins-> Plugin File Editor. Make the update then change the PHP version back to 8.0.

    I found this thread, with a better solution than mine, which worked for me. Basically open phpmyadmin and delete a row with option name ‘_elementor_pro_api_requests_lock’ from the _options table.

    • This reply was modified 1 year, 3 months ago by Dmitriy.
Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Fatal Error After Updating Elementor Plugin’ is closed to new replies.