fatal error from namespace declaration
-
Hi, when I enable Block Visibility I get a fatal error:
An error of type E_COMPILE_ERROR was caused in line 89 of the file /[path to plugin]/block-visibility/includes/utils/user-functions.php. Error message: Namespace declaration statement has to be the very first statement or after any declare call in the script
I’ve disabled *all* plugins and reverted to the Twenty Twenty Five theme, and as soon as I activate the plugin, I get this error. We’re running PHP version 8.2 and WordPress 6.8.1.
I’m seeing this error from other plugins as well, and I’ve already contacted the other devs; two have issued updates that fix the error, it seems to be a matter of removing whitespace before the namespace declaration.
Thanks.
The topic ‘fatal error from namespace declaration’ is closed to new replies.