Hi @colevalleygirl ,
Thanks for reaching out to us.
About the below error:
Namespace declaration statement has to be the very first statement or after any declare call in the script in /home/xxx/xxx/installer.php on line 12
I believe that the below FAQ will help you to fix your issue
Could you please let me know what is the encoding of the installer.php?
I’m looking forward to your reply.
Thanks!
The installer.php encoding is UTF-8
It begins:
<?php
/* ------------------------------ NOTICE ----------------------------------
If you're seeing this text when browsing to the installer, it means your
web server is not set up properly.
Please contact your host and ask them to enable "PHP" processing on your
account.
----------------------------- NOTICE --------------------------------- */
namespace {
use Duplicator\Libs\DupArchive\DupArchiveExpandBasicEngine;
$disabled_dirs = array(
'backups-dup-lite',
'wp-snapshots'
);
if (in_array(basename(dirname(FILE)), $disabled_dirs)) {
die;
}
The white space at the top, plus the entire NOTICE comment must be removed to make the installer work.
It ends:
/* DUPLICATOR_INSTALLER_EO
This comment needs to be terminated properly to make the installer work.
Hi @colevalleygirl ,
Please try to change the installer.php encoding to ANSI.
To do that, open the installer.php in notepad++ , click encoding, and select ANSI
Please let me know if this works.
Thanks!
How is changing the encoding going to fix these error which are identical to what I experienced:
Comment at start of installer resulting in 500 error | ww.wp.xz.cn
Bad Comment at end of installer.php | ww.wp.xz.cn
As that first problem report is 6 months old, I’m somewhat surprised it hasn’t been fixed already.
Hi @colevalleygirl ,
This issue has been fixed already. Are you using the latest Duplicator version?
If you are using the latest Duplicator Lite version, please contact Duplicator Pro support to investigate this issue:
https://duplicator.com/contact/?form=1
Thanks!
I’m using Duplicator Light 1.5.3.1. I will contact Developer Pro support.
Hi @colevalleygirl ,
I’m closing here since you are already in contact with Duplicator Pro support.
Please don’t hesitate to open a new ticket in you need help.
Thanks!