• Resolved rominatrix

    (@rominatrix)


    After the last upgrade (April 11th), a website that has this plugin stopped working showing the critical error page. I had to move the plugin somewhere else in the server for the site to load. I tried deactivating it using wp-cli but it didn’t work:

    $ wp plugin deactivate wp-statistics --allow-root
    PHP Parse error:  syntax error, unexpected ')' in /var/www/..../wp-content/plugins/wp-statistics/includes/admin/meta-box/wp-statistics-meta-box-hitsmap.php on line 50
    Parse error: syntax error, unexpected ')' in /var/www/.../wp-content/plugins/wp-statistics/includes/admin/meta-box/wp-statistics-meta-box-hitsmap.php on line 50
    
    Error: Ha habido un error crítico en esta web.Aprende más sobre el diagnóstico de WordPress. Ha habido un error crítico en esta web.
    

    I’ve activated WP debug mode and this is the message I’m getting (either on the page or debug.log):

    Parse error: syntax error, unexpected '?' in /var/www/.../wp-content/plugins/wp-statistics/includes/class-wp-statistics-option.php on line 268
    
    Notice: La función is_embed ha sido llamada de forma incorrecta. Las etiquetas de las consultas condicionales no funcionan antes de ejecutar la consulta. Haciéndolo antes, siempre devuelven falso. Por favor, ve depuración en WordPress para más información. (Este mensaje fue a?adido en la versión 3.1.0). in /var/www/.../wp-includes/functions.php on line 5866
    
    Notice: La función is_search ha sido llamada de forma incorrecta. Las etiquetas de las consultas condicionales no funcionan antes de ejecutar la consulta. Haciéndolo antes, siempre devuelven falso. Por favor, ve depuración en WordPress para más información. (Este mensaje fue a?adido en la versión 3.1.0). in /var/www/.../wp-includes/functions.php on line 5866

    Can someone tell me what could be happening and (preferably) how to fix it? I will definitely be deactivating automatic updates after this but I haven’t seen this message in the forum.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Amir

    (@amirfallah)

    Hi,

    We apologize for the issue.

    Regarding the first error codes:
    The issue occurred in version 14.6, which we immediately addressed and released version 14.6.1 to resolve the problem.
    Please proceed to update the plugin to the latest version, which is 14.6.1. If you are unable to update it through the website, you can download the version from the?WordPress repository?and replace the wp-statistics folder in the wp-content/plugins directory on your host to resolve the issue.

    Regarding the second error:
    It appears the problem is due to the incompatibility of your PHP version. We recommend updating your PHP version to 7.4 or higher to resolve the issue. However, we have already resolved this compatibility issue in the?development?version, which will be released soon.

    Regards

    Thread Starter rominatrix

    (@rominatrix)

    Thank you very much for your reply! I guess I will have to wait until we can update our php version then. I tried manually updating the plugin but it’s giving me the same error that you mentioned is related with our outdated php version. It’s something we’re working on but still haven’t been able to do.

    Thanks again!

    Plugin Support Amir

    (@amirfallah)

    Hi,

    We’ve resolved the compatibility issue with PHP 5.6 in version 14.6.3 of our plugin. Now, by updating to the latest version, you can use our plugin with older PHP versions as well.

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error after 14.6 automatic upgrade’ is closed to new replies.