Getting PHP error after migrating site from one server to another

Started by coorgorg, February 12, 2025, 09:00:18 AM

Previous topic - Next topic

coorgorg

Hello

We have recently migrated our site from one server to another.
I have closely checked all the settings and files.
Even the server configuration are up to date.

But we are getting some error on the new server.

It looks like it is not setting the language correctly.

Can anyone help me to fix the issue?

Thanks

coorgorg

After some debugging, i am able to fix the issue however, on the Admin > Configuration > Theme Settings, It says
Theme directory (templates) : (Warning! this path is not correct.)

See this error: hxxp:app.screencast.com/UI292nDIItEnu [nonactive]

How can i fix the theme directory path?



coorgorg

Hi Doug,

Thanks for your help.

I tried repair tool and save the settings.
I checked and confirmed all Paths & URLs in the settings.

But the error still appear as is.
The default theme's directory is wrong, please correct it by clicking this text.

Doug Heffernan

Quote from: coorgorg on February 13, 2025, 05:19:19 AMHi Doug,

Thanks for your help.

I tried repair tool and save the settings.
I checked and confirmed all Paths & URLs in the settings.

But the error still appear as is.
The default theme's directory is wrong, please correct it by clicking this text.

If the theme's paths and urls point to the right locations then that error shouldn't occur anymore.

Kindred

if you moved servers -- did you move databases?

And if you moved databases, did you change the Settings.php to point to your NEW database?

If not, then your system is still using the OLD database and changes that you are making will be invalid to the NEW server
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Doug Heffernan

Quote from: Kindred on February 13, 2025, 08:59:13 AMIf not, then your system is still using the OLD database and changes that you are making will be invalid to the NEW server

If the Settings.php file is still using the old database info then a Connection Error message would have occured instead, rather than the current message.

Kindred

Quote from: Doug Heffernan on February 13, 2025, 10:17:26 AM
Quote from: Kindred on February 13, 2025, 08:59:13 AMIf not, then your system is still using the OLD database and changes that you are making will be invalid to the NEW server

If the Settings.php file is still using the old database info then a Connection Error message would have occured instead, rather than the current message.

Not if the current server still had some sort of pipeline to the old database.....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Doug Heffernan

Quote from: Kindred on February 13, 2025, 01:46:15 PMNot if the current server still had some sort of pipeline to the old database.....

In the current situaution that is true if those piplines are the themes/sources/attachments etc paths, but according to the OP he has run the repair_settings.php tool which should have corrected that.

But if the database server name, name and user and/or password don't match the database in the new server then the Connection Error message occurs.

But in case I read what you said wrong, can you please provide some details on what you mean by the current server having some pipeline to the old database?

@coorgorg, what is your forum version as this topic needs to be moved to the Support boards instead of this category where you posted it?

Kindred

for example: GoDaddy uses separate servers for their files and their databases...   so, even moving to a new file server, your site COULD be connecting to the OLD database server but may have a different root directory structure for files....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Doug Heffernan

Quote from: Kindred on February 13, 2025, 02:23:15 PMfor example: GoDaddy uses separate servers for their files and their databases...   so, even moving to a new file server, your site COULD be connecting to the OLD database server but may have a different root directory structure for files....

Ah ok. You meant within the server itself. Thanks for the clarification.

coorgorg

Hello

Thanks for your support.

I have moved database and files properly.
And even i have changed the file path and database settings on Settings.php file

Also i have updated the paths on database so that it links properly.

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."


Advertisement: