Site logo

Archived topic

Error when navigating to /wp-admin

6 replies · Started by Brian on April 18, 2019

Viewing posts 1–7 of 7

The site is still up I just can't get into the admin (I could disable gp-premium but I would like to troubleshoot the issue).

Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /home/thegroo3/public_html/sites/tgl/wp-content/plugins/gp-premium/sites/libs/wxr-importer/WPImporterLogger.php on line 3

Spoke to Siteground support and they determined the reason was an empty space before the <?php in WPImporterLogger.php.

One of the senior techs said it was possible the space got added as a result of a core update.

I tested the theory and dropped that space back in, the same error came back. I removed the space, and the error was gone.

Any other thoughts as to a cause?

Hmm, never heard of an update adding an extra space in a plugin, that would be strange.

Not possible the file could have been altered at any point?

It's definitely not something I intentionally modified.

The last login was April 8.

The only thing related to GP I did that day was add a css value in the customizer:

.mc-main button.close { left: 8px; top: 7px; vertical-align: middle; } button.mc-toggle.close:after { content: 'Close'; position: absolute; top: 3px; left: 25px; }

and updated it in the same session to:

.mc-main button.close { left: 8px; top: 7px; vertical-align: middle; } button.mc-toggle.close:after { content: 'Close'; top: 7px; left: 35px; vertical-align: middle; }

and then:

.mc-main button.close { left: 8px; top: 7px; vertical-align: middle; outline: none; } button.mc-toggle.close:after { content: 'Close'; position: absolute; top: -3px; left: 25px; }

There were plugin updates via ManageWP:

2019-04-08: BB Pro 2.2.2.2 to 2.2.2.3
2019-04-10: Constant Contact 1.4.5 to 1.5.1
2019-04-10: My Calendar 3.1.7 to 3.1.8
2019-04-10: BB Pro 2.2.2.3 to 2.2.2.4
2019-04-10: PowerPack for BB 2.6.9.6 to 2.6.9.7
2019-04-10: UpdraftPlus 2.16.10.24 to 2.16.11.24
2019-04-10: Forminator Pro 1.6.2 to 1.6.3
2019-04-12: Constant Contact 1.5.1 to 1.5.2
2019-04-12: Ultimate Addons for BB 1.16.3 to 1.16.4
2019-04-12: Defender Pro 2.1.1.1 to 2.1.2
2019-04-13: My Calendar 3.1.8 to 3.1.9

Super strange. The only thing I can think of would be Defender Pro altering files, as security plugins tend to do that sometimes.

It only happened on one site, and I typically use the same plugins on all my sites.

I double checked the admin URL from every site and it isn't an issue anywhere else.

I will update the thread if I come across the issue again.

Thanks as always.

No problem - hopefully, it was just a one-time thing (likely).

This archived topic is closed to new replies.