Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Namespace declaration statement has to be the very first statement

$
0
0

Replies: 0

I’m getting this
Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /home/mydomain/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-settings-general.php on line 2

And it happened just today which nothing was done on the site. It was working fine previously.

It cause the site to not work and wp-admin is not accessible. I had to rename the plugin to _old and the website came back up.

Any advise how I can fix this?


Viewing all articles
Browse latest Browse all 59525

Trending Articles