• Resolved michalrama

    (@michalrama)


    Hello,

    After upgrading to PHP 8, the site does not work and only displays this error

    Fatal error: Array and string offset access syntax with curly braces is no longer supported in /www/doc/www.mj-servis.cz/www/wp-includes/script-loader.php on line 706

    ( '{' == $value{0} && '}' == $value{strlen( $value ) - 1} ) || // line 706
    ( '[' == $value{0} && ']' == $value{strlen( $value ) - 1} ) || // line 707

    I found here that there will probably be a problem in parentheses. However, if I change them

    ( '{' == $value{0} && '}' == $value[strlen( $value ) - 1] ) ||
    ( '[' == $value{0} && ']' == $value[strlen( $value ) - 1] ) ||

    the error message will not change at all.

    And if I change it that way

    ( '{' == $value[0] && '}' == $value[strlen( $value ) - 1] ) ||
    ( '[' == $value[0] && ']' == $value[strlen( $value ) - 1] ) ||

    the error message will change.

    Fatal error: Unparenthesizeda ? b : c ? d : eis not supported. Use either(a ? b : c) ? d : eora ? b : (c ? d : e)in /www/doc/www.mj-servis.cz/www/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_admin/package.module.nextgen_admin.php on line 368

    I tried to deactivate this plugin, but it caused a completely different error.

    Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /www/doc/www.mj-servis.cz/www/wp-includes/load.php:760 Stack trace: #0 /www/doc/www.mj-servis.cz/www/wp-settings.php(380): wp_magic_quotes() #1 /www/doc/www.mj-servis.cz/www/wp-config.php(96): require_once('/www/doc/www.mj...') #2 /www/doc/www.mj-servis.cz/www/wp-load.php(37): require_once('/www/doc/www.mj...') #3 /www/doc/www.mj-servis.cz/www/wp-blog-header.php(13): require_once('/www/doc/www.mj...') #4 /www/doc/www.mj-servis.cz/www/index.php(17): require('/www/doc/www.mj...') #5 {main} thrown in /www/doc/www.mj-servis.cz/www/wp-includes/load.php on line 760

    I have absolutely no idea what to do.

    Please help

    Thank you

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Mihai Ceban

    (@mihaiimagely)

    Hi @michalrama,

    As long as I remember, this issue got resolved a while ago within a NextGen Gallery plugin’s update so we hope that you wouldn’t mind deleting /nextgen-gallery/ plugin’s folder by FTP then install the latest version of it new to see if that will resolve the problem.

    Thread Starter michalrama

    (@michalrama)

    Hello @mihaiimagely

    I’m sorry, I don’t know who thought of moving this topic here. I already found out what happened.

    To make you understand, I don’t have access to all websites. And some sites weren’t updated.
    Nevertheless, it was decided that all sites will be updated to PHP 8. And the site contains only version 5.1.1 (and probably the plugin versions are out of date), which PHP 8 does not support.

    So there are two solutions.

    1. Go back to PHP 7, perform the update and switch to PHP 8 again.

    2. Try to perform a manual WordPress update, which is quite risky.

    Anyway, it has nothing to do with this plugin.

    Hi @michalrama,

    I experience the same problem now:

    Fatal error: Array and string offset access syntax with curly braces is no longer supported in /customers/9/1/7/nadjakuschel.com/httpd.www/wordpress/wp-includes/script-loader.php on line 757

    Although you mentioned two solutions already, can you explain how to actually do your 1. solution? How do go back to PHP 7? Or do you have a Link where it is explained?

    I had my automated WordPress update to WordPress 5.2.13 on Nov 11, but that’s all. I haven’t updated my PHP recently. I just changed some text and rearranged my menu within an already existing theme last week, no plugins were installed…

    Would much appreciate your help!

    • This reply was modified 3 years, 3 months ago by nadjakuschel.
    Thread Starter michalrama

    (@michalrama)

    Hello,

    How do go back to PHP 7? Or do you have a Link where it is explained?

    I would rather ask the author of the plugin about your problem. My site just wasn’t updated before the PHP version was changed.

    I did this through our provider (Active24)

    I had my automated WordPress update to WordPress 5.2.13 on Nov 11

    Have you tried updating WordPress? This is a very old version.

    Thank you @michalrama for your reply!

    I would rather ask the author of the plugin about your problem. My site just wasn’t updated before the PHP version was changed.

    You mean the author of the theme? I don’t know which plugin is causing the problem ??

    Have you tried updating WordPress? This is a very old version.

    No, I was afraid my site would stop working after updating (“never change a running system”). But oh well, I might do that now… ??

    I think I’ll try contacting the theme author and update the theme. Then try updating wordpress… :-/

    Thread Starter michalrama

    (@michalrama)

    Hello @pinkerstern

    No, I was afraid my site would stop working after updating (“never change a running system”). But oh well, I might do that now

    WordPress always offers to create a backup before updating. I would try to update wordpress first and then update all themes/plugins.

    You mean the author of the theme? I don’t know which plugin is causing the problem ??

    If the problem persists, try using Health Check. This allows you to activate a mode in which all plugins are deactivated and the default theme is used. And you can freely activate/deactivate themes/plugins, so you can easily find out where the problem is and what is causing it, without “damaging” the site itself. Anyway, I wouldn’t do that until the full update.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Array and string offset access syntax with curly braces is no longer supported’ is closed to new replies.