When using the Publish feature in SiteBuilder you might receive a error after hitting the publish button for the first time.
In addition you might see a 500 error when visiting the URL for your website. This can be caused by a couple things. Please try the resolutions below to fix the error.
Error messages:
- The site cannot be published to the specified location error
or
The site cannot be published to the specified location error
If the error reads (or something similar.):
The site cannot be published to the specified location. Internal server error has occurred on the remote server. Please contact the server administrator.
Please follow these steps for a potential solution:
- Log into Cpanel
- Click on File Manager (select the option "Show Hidden Files (dotfiles).")
- Navigate to the public_html directory (or the root directory of the site being published)
- Right click on the .htaccess file and select "Code Edit"
At this point you will likely see just a single line of code but sometimes the htaccess file can contain other lines. Look for a line that reads:
php_value mbstring.func_overload 4
Deleting/Renaming the htaccess file will correct the issue UNTIL the next time the site is published at which point it will present itself again.
Instead of deleting the line please comment it out in the .htaccess file as shown below using the # character.
# php_value mbstring.func_overload 4
Reason: SiteBuilder searches for that line; if it's not there, it adds it, so if you remove it, it will simply continue adding it back. Commenting it out disables that line and SiteBuilder can then still see the line so it won't add it again. - After commenting the line out, click Save Changes and republish/view the website.
If this does not solve your problem or if you have any issues, please contact support for further assistance.
Google Analytics Plugin Incompatibility
If you have our Google Analytics Plugin in enabled, you may get an error that reads:
Cannot update modules data.
or something similar.
If you are using the Google Analytics plugin in the HostGator control panel, this will break the ability to publish your site in SiteBuilder because of the way the substitution engine works.
The fix is to comment out the Google Analytics integration in the .htaccess file or to disable it in the cPanel, publish the website, and re-enable it again.
To allow you to publish, please do the following:
- Login to cPanel.
- Click on Google Analytics Integration icon in the Logs section.
- Write down or record the Analytics Account ID somewhere. You will need it again in a later step.
- Click on Un-Install next to the domain or subdomain you are trying to publish with SiteBuilder and are getting the error.
- Login to SiteBuilder and try to republish the site.
- Once published via SiteBuilder, follow the procedures in the Google Analytics Integration article for re-enabling it. You will need the Analytics Account ID you recorded in the previous step to re-enable it.
If this does not solve your problem or if you have any issues, please contact support for further assistance.