• Resolved mrdolph

    (@mrdolph)


    Parse error?: syntax error, unexpected ')' in?/home/th40452/public_html/wp-content/plugins/optimole-wp/inc/admin.php?on line?836
    
    Notice?: The is_home function was called?incorrectly?.?Conditional Tags don't work before the query runs.?Before that, they always return false.?Read How to debug WordPress?for more information.?(This message was added in version 3.1.0.) in?/home/th40452/public_html/wp-includes/functions.php?on line?5865
    
    Notice?: The function is_post_type_archive was called?incorrectly?.?Conditional Tags don't work before the query runs.?Before that, they always return false.?Read How to debug WordPress?for more information.?(This message was added in version 3.1.0.) in?/home/th40452/public_html/wp-includes/functions.php?on line?5865
    
    Notice?: The function is_front_page was called?incorrectly?.?Conditional Tags don't work before the query runs.?Before that, they always return false.?Read How to debug WordPress?for more information.?(This message was added in version 3.1.0.) in?/home/th40452/public_html/wp-includes/functions.php?on line?5865
    
    Notice?: The is_home function was?incorrectly called.?Conditional Tags don't work before the query runs.?Before that, they always return false.?Read How to debug WordPress?for more information.?(This message was added in version 3.1.0.) in?/home/th40452/public_html/wp-includes/functions.php?on line?5865
    
    Notice?: The is_singular function was called?incorrectly?.?Conditional Tags don't work before the query runs.?Before that, they always return false.?Read How?to Debug WordPress?for more information.?(This message was added in version 3.1.0.) in?/home/th40452/public_html/wp-includes/functions.php?on line?5865
    
    Notice?: The is_front_page function was calledincorrectly?.?Conditional Tags don't work before the query runs.?Before that, they always return false.?Read How?to Debug WordPress?for more information.?(This message was added in version 3.1.0.) in?/home/th40452/public_html/wp-includes/functions.php?on line?5865
    
    Notice?: The is_home function was?incorrectly?called .?Conditional Tags don't work before the query runs.?Before that, they always return false.?Read How?to Debug WordPress?for more information.?(This message was added in version 3.1.0.) in?/home/th40452/public_html/wp-includes/functions.php?on line?5865
    
    Notice: The is_singular function was?incorrectly?called .?Conditional Tags don't work before the query runs.?Before that, they always return false.?Read How?to Debug WordPress?for more information.?(This message was added in version 3.1.0.) in?/home/th40452/public_html/wp-includes/functions.php?on line?5865?Notice?: The is_embed function was?incorrectly?called .?Conditional Tags don't work before the query runs.?Before that, they always return false.?Read How?to Debug WordPress?for more information.?(This message was added in version 3.1.0.) in?/home/th40452/public_html/wp-includes/functions.php?on line 5865
    
    Notice?: The is_search function was called?incorrectly?.?Conditional Tags don't work before the query runs.?Before that, they always return false.?Read How?to Debug WordPress?for more information.?(This message was added in version 3.1.0.) in?/home/th40452/public_html/wp-includes/functions.php?on line?5865
    
    There is a critical error on your site.
    

    site was working until a few weeks ago and took me this long to find out and try to resolve it, the main error message, as you can see, says about having an unexpected indent but sure enough

    there are both the opening and closing brackets, trying to deactivate all plugins in phpmyadmin with no sucess

    inserting debugging lines of code result in the same dead site but without the specified problems written down

    trying to open the wp-admin page results in fewer “incorrectly called functions” but either way i can’t do anything, thought?

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • I had the same issue.

    The problem is the comma (,) at the end of 835 line, before the bracket. Some versions of php don’t consider it an error, some do.

    Same piece of code is also in dam.php (line 540, I think).

    You can backup files, delete commas, and save changes.

    But I’m sure that Optimol will quickly issue an update.

    Plugin Support iSaumya

    (@isaumya)

    Hi @mrdolph & @dellgirl,
    Are you guys running anything lower that PHP 7.4? If so, please update your PHP as when WP core now recommends to update the PHP. If you don’t want to use the latest PHP 8, then at least update to PHP 7.4

    Thread Starter mrdolph

    (@mrdolph)

    @isaumya hi, thank you, this is indeed an old site that was forgotten in time and unmaintained for quite a while, now under my belt, I requested an update to the hosting service this site is ran on, since manually updating it on my own resulted in critical errors in every single version beyond 4.4 if I recall correctly (yes it’s that long gone) and as far as I’m aware it was updated but to a hardened php. WP control panel says the site needs updating but upon clicking to do so, a new window saying the site is updated and secured by hardened php is presented, so I don’t really know where to go and or what do about it, thank you as well @dellgirl, thought that was a weird comma indeed, will see what I can do about it, turning the plugin off resolved the issue, for the time being at least

    Plugin Support iSaumya

    (@isaumya)

    Hi @mrdolph,
    Please reach out to your host and they will let you know about your current PHP version and if you request, they will also update it to the version you want. In fact now a days lots of hosting companies control panel already shows this data and even give you option to update PHP.

    Thread Starter mrdolph

    (@mrdolph)

    @isaumya will try to do so since I do actually have access to the control panel where I do have the possibility and means to update the site to whatever version I want but, as mentioned, as per the last time I tried, attempting to update to any more recent versions than the current result in a critical error and the death of the site until I get it back to the current version

    Plugin Support iSaumya

    (@isaumya)

    Hi @mrdolph,
    I will suggest you to first update to PHP 7.4 and from there try to update to more updated versions.

    Plugin Author optimole

    (@optimole)

    Hi there,

    We have fixed this in the latest version of the plugin. Thank you for understanding!

    Hi @isaumya, thanks for the advice. I wasn’t even aware of the php version on my site until this problem. Now I see that it is 7.2.something. I have the option to change the php version up to 8.2, but as soon as I change it to 7.4, both the site and the wordpress panel stop working, like @mrdolph said. I will try to contact the provider.

    But at least with the new Optimole update everything works fine.

    • This reply was modified 1 year, 3 months ago by dellgirl.
    • This reply was modified 1 year, 3 months ago by dellgirl.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Parse error : syntax error, unexpected ‘)’ that’s not really unexpected’ is closed to new replies.