ibloodheuer
New member
- Aug 30, 2020
- 22
- 8
- 3
Why? Because of breaking changes in PHP?(php 8.2 is a pain in the ass for WP)
Why? Because of breaking changes in PHP?
is not even released yet... so how can u expect devs to update their stuff to newest php if its not even released?Most likely a problem related to my php version (8.2).
here's the fix
There has been a critical error on this website. Please check your site admin email inbox for instructions.
I had a problem like this too. The site is not working. Anyone else alive?
Or how can I fix it.
Parse error: syntax error, unexpected token "return", expecting "function" or "const" in /var/www/example.com/wp-content/plugins/wp-smush-pro/core/external/dash-notice/wpmudev-dash-notification.php on line 7
Thank you very much for sharing and contribution.
@purity @Tomz
<?php
/////////////////////////////////////////////////////////////////////////
/* -------- WPMU DEV Dashboard Notice - Aaron Edwards (Incsub) ------- */
/* This provides notices of available updates for our premium products */
if ( ! class_exists( 'WPMUDEV_Dashboard_Notice4' ) ) {
class WPMUDEV_Dashboard_Notice4 {
return;
<?php
/////////////////////////////////////////////////////////////////////////
/* -------- WPMU DEV Dashboard Notice - Aaron Edwards (Incsub) ------- */
/* This provides notices of available updates for our premium products */
if ( ! class_exists( 'WPMUDEV_Dashboard_Notice4' ) ) {
return;
class WPMUDEV_Dashboard_Notice4 {
if you scroll through the post, there's one i posted with the fix.Hello,
Change
PHP:<?php ///////////////////////////////////////////////////////////////////////// /* -------- WPMU DEV Dashboard Notice - Aaron Edwards (Incsub) ------- */ /* This provides notices of available updates for our premium products */ if ( ! class_exists( 'WPMUDEV_Dashboard_Notice4' ) ) { class WPMUDEV_Dashboard_Notice4 { return;
for
PHP:<?php ///////////////////////////////////////////////////////////////////////// /* -------- WPMU DEV Dashboard Notice - Aaron Edwards (Incsub) ------- */ /* This provides notices of available updates for our premium products */ if ( ! class_exists( 'WPMUDEV_Dashboard_Notice4' ) ) { return; class WPMUDEV_Dashboard_Notice4 {
the return; must be before class WPMU DEV Dashboard Notice 4
/example.com/wp-content/plugins/wp-smush-pro/core/external/dash-notice/wpmudev-dash-notification.php on line 7
I think original resource should be updated with the latest fix.if you scroll through the post, there's one i posted with the fix.
Same here!After installation website goes to ciritial error mode!
thank you so muchHello,
Change
PHP:<?php ///////////////////////////////////////////////////////////////////////// /* -------- WPMU DEV Dashboard Notice - Aaron Edwards (Incsub) ------- */ /* This provides notices of available updates for our premium products */ if ( ! class_exists( 'WPMUDEV_Dashboard_Notice4' ) ) { class WPMUDEV_Dashboard_Notice4 { return;
for
PHP:<?php ///////////////////////////////////////////////////////////////////////// /* -------- WPMU DEV Dashboard Notice - Aaron Edwards (Incsub) ------- */ /* This provides notices of available updates for our premium products */ if ( ! class_exists( 'WPMUDEV_Dashboard_Notice4' ) ) { return; class WPMUDEV_Dashboard_Notice4 {
the return; must be before class WPMU DEV Dashboard Notice 4
/example.com/wp-content/plugins/wp-smush-pro/core/external/dash-notice/wpmudev-dash-notification.php on line 7