Several of my sites showing critical error this morning:
PHP Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /wp-content/plugins/mainwp-child-reports/connectors/class-connector-users.php on line 4
I just re-tested the MainWP Child Reports 2.0.5 on our test sites (PHP 7.4.8) along with both MainWP Child 4.0.7.2 and 4.1-beta3 on WP 5.5 and 5.5.1 and I couldn’t duplicate the problem.
It’s strange that this error shows only several child site, PHP syntax errors would affect all site in most cases (depending on PHP setup).
Can you please check what is in common for all sites that are affected but different from the rest of your sites? PHP version, same host, server,…
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
WordPress® is a registered trademark of the WordPress Foundation, and WooCommerce® is a registered trademark of WooCommerce, Inc. MainWP is an independent product and is not affiliated, associated, or endorsed by the WordPress Foundation, WooCommerce, Inc., or Automattic Inc., except where noted under the Jetpack® API and Trademark License Agreement. All product names, logos, and brands are property of their respective owners and are used for identification purposes only.