I have an MSM site setup but need to change the domain name. I have the new domain name setup and moved the site files to the new domain directory.
I also updated the URLs in the control panel & in the admin.php & index.php files but it does not work. When I visit the new URL, I get the following message: Site Error: Unable to Load Site Preferences; No Preferences Found
What am I missing?
Thanks for any help.
Hi,
That error usually happens when your database configuration is missing or incorrect.
First, you should check that all of the permissions for your site files are set correctly on the new server. Then make sure the values in your system/user/config/config.php are set correctly.
Ok, are you sure that your new domain is pointing to where you think it is? I’d try placing a new static file in the same folder as your new Site’s index.php file (like an image file) and trying to access it from your browser. Also set $debug
to 1
in that Site’s index.php file to force any potential errors to be visible.
I am able to view static files in the browser.
When I turn debugging on, I get the following messages:
A PHP Error was encountered Severity: Notice
Message: Only variable references should be returned by reference
Filename: core/Common.php
Line Number: 242
A PHP Error was encountered Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 408
A Database Error Occurred Unable to connect to your database server using the provided settings.
Filename: core/EE_Config.php
Line Number: 207
What version of ExpressionEngine are you running? Those first two errors indicate that you’re running something very, very old. The last error indicates that the database config isn’t correct. If the other index.php/admin.php files on this install don’t throw that same error, then dynamic config or an improper system path really are the only two logical causes.
You can put in a support ticket if you’d like for us to troubleshoot it for you. There really isn’t any other way than the options I mentioned. The index.php file is the only file or code that differs from one MSM site to the next, and config.php/database.php are the only files under user-control that could impact database credentials.
Well v2 stopped receiving support back in April of last year, so just extending an offer. You might also try in Slack, but ultimately it’s probably going to require someone logging in to your environment and giving you a second set of eyeballs.
> Just grasping at straws here, but could it have anything to do with EE thinking I’m adding a 4th site but only have a license for 3?
No, you create new sites in the control panel, and you either have 3 or your have 4. Putting a new index.php endpoint doesn’t affect how many sites you are running, since your index.php file has to reference a valid Site shortname, that you have already made in the control panel.
Or are you saying that you tried to manually hack this in your database to get around your license limitation?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.