The site cannot be published to the specified location error

The site cannot be published to the specified location error

If the error reads:

The site cannot be published to the specified location. Internal server error has occurred on the remote server. Please contact the server administrator.

or something similar.

Please follow these steps for a potential solution:

1. Log into Cpanel
2. Click on File Manager (select the option “Show Hidden Files (dotfiles).”)
3. Navigate to the public_html directory (or the root directory of the site being published)
4. 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.

5. After commenting the line out, click Save Changes and republish/view the website.

 

Bookmark the permalink.

Comments are closed.