Service Unavailable After Moving To Another Hosting

Just moved 4.3.4 to another hosting, all parameters is the same but one - old hosting was with Redis as session handler but new is SSH and faster and I didn’t install Redis.

config.local.php was altered from Redis → database as session handler.

But site is not working and this is the line from error.log:

[Tue Oct 02 10:38:34.543594 2018] [fcgid:warn] [pid 27973] [client 109.252.69.142:60126] mod_fcgid: stderr: PHP Fatal error: Class ‘\Tygh\Backend\Session\`database’ not found in /home/other/web/diapaint.ru/public_html/app/Tygh/Session.php on line 509

Please assist what to do…

New hosting initially was with PHP7 and I was thinking that it is a problem, but I switched it to PHP5.6 with no results…

Thanks!

Make sure /app/Tygh/Backend/Session/Database.php exists and has correct permissions.

It would be best to use file instead of database anyway.

Make sure /app/Tygh/Backend/Session/Database.php exists and has correct permissions.

It would be best to use file instead of database anyway.


Thanks, will try... Regarding files as session handler - the choice offered by config.local is only Redis or database!

It was 644 as rights, changed to 777... No results...

My bad...I was thinking backend not session.

Now that I have looked closer at your error (with my magnifying glasses), it looks like your apostrophe before database is not the correct character.

The Tool is right, it looks like there is an apostrophe instead of the quotation mark in the following line in config.local.php file:

$config['session_backend'] = 'database';

Thanks guys. Sorry, I’m too stupid. Do not know why but indeed it was ‘`database’ there!!!

But now another problem - it seems that fancy URK not working anymore… 404 on every pages I’ve trying to reach…

Database was loaded on the new hosting not from admin of the website but from MySQL…

I’m so sad to be a stupid… Just lost htaccess while moving! Turned it back and everything works.

Don't beat yourself up. We all overlook things from time to time. Not sure how you moved your site, but using builtin cpanel tools works pretty well on getting everything over from the cpanel account (db, files, email, etc.). Cpanel uses RSYNC which does a really good job.