Child Reports Breaking Sites

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

Disabling Child Reports fixes the problem short term

Hi Greg, thanks for reaching out.

I just re-tested the MainWP Child Reports 2.0.5 on our test sites (PHP 7.4.8) along with both MainWP Child 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.