• Resolved kavoo

    (@kavoo)


    Hello guys!

    I have installed the WP-Statistics plugin yesterday and everything went crazy rught after that. Website works, but I cannot login to the admin panel. When I try I get the following error:

    Parse error: syntax error, unexpected ‘?’ in /wp-content/plugins/wp-statistics/includes/admin/pages/class-wp-statistics-admin-page-pages.php on line 104

    Anyone knows what went wrong and how to fix it?

    Much obliged for any help, thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mostafa Soufi

    (@mostafas1990)

    Hello,

    Thank you for reporting the issue, can you please tell me what is your version of WP Statistics?

    However we’ve had an improvement for that section.

    https://github.com/wp-statistics/wp-statistics/commit/f662f6b4ffff006dec3eb9317256592115330e4d

    Thread Starter kavoo

    (@kavoo)

    Thanks for your feedback. Unfortunately didn’t helped, now I get the following error:

    Parse error: syntax error, unexpected ‘?’ in /wp-content/plugins/wp-statistics/includes/admin/pages/class-wp-statistics-admin-page-pages.php on line 149

    Another error related to a question mark 😉

    I have no idea what version of WP Statistics I’m using – I have installed the plugin from the admin panel and it stopped working as soon as I activated it.

    Hoping for more suggestions and solutions 🙂

    Plugin Author Mostafa Soufi

    (@mostafas1990)

    Thank you for reporting, we highly recommend upgrading your PHP version for better performance and security to 7.4 or 8.1

    However we made that code block compatible with the old PHP versions.

    https://github.com/wp-statistics/wp-statistics/commit/57baae16dd8fd2ad90038ca5d8e6b1120dc5c7dd

    Cheers

    Plugin Author Mostafa Soufi

    (@mostafas1990)

    I have no idea what version of WP Statistics I’m using – I have installed the plugin from the admin panel and it stopped working as soon as I activated it.

    For getting the server and WordPress information, please go to Tools → Site Health → Site Info, this give you all information about the PHP, MySQL, etc

    Best

    Thread Starter kavoo

    (@kavoo)

    Thank you so much, it worked! 🙂 I have the access to the admin panel restored. I will check what’s the PHP version and upgradeit. I hope there will be no issues with the modified code after the update? 😉

    Best regards!

    Plugin Author Mostafa Soufi

    (@mostafas1990)

    Good to hear!

    I’ll try to release the new version most-likely this week.

    Best

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Parse error, cannot login to admin panel (site works though)’ is closed to new replies.