HTTP error 500 after restore WordPresss

I have uploaded a backup of a WordPress Site, including DB, but now the site will not load.

I get a HTTP-error 500

In the logfile I get:
AH01071: Got error 'PHP message: PHP Fatal error: Class 'Requests_Hooks' not found in /var/www/vhosts/domain.tld/httpdocs/wp-includes/class-wp-http-requests-hooks.php on line 17\n', referer: http://domain.tld/?page_id=1776.

Any Idea?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sam Simon NasserIT Support ProfessionalCommented:
usually error 500 consist of:
  • incorrect php version, you need to change it in your hosting
  • plugin error, rename plugin folder in wp-contents to plugin1 and refresh
  • theme error, try the orional built in themes and check
  • corrupted htaccess file
dk_jbAuthor Commented:
Thanks LVL11,

The Plugins folder are empty.
How do I change the theme, without access to backend?
It.s WP 7.2 what PHP-version is the best for that? (I did not change version).

.htsccess is OK

Julian HansenCommented:
An error 500 means a server error. In this case there is an error in your script

The error is saying it cannot find the class Request_Hooks.

This is defined in wp_includes/Requests/Hooks.php

There are a couple things that can have gone wrong here

1. The files did not copy across correctly and this one is missing - check to see if the file exists

2. You moved the site from a windows system to a linux system and in the process the case of the files got changed. On the new system it is looking for a file called Hooks.php but it exists as hooks.php or vice versa.

Check those and report back.
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

Sam Simon NasserIT Support ProfessionalCommented:
you need to use FTP client like file zilla .
dk_jbAuthor Commented:
I Restore from Linux to the same Linux (and same domian etc.) with FTP

I don't have any folder called  wp_includes/Requests

Julian HansenCommented:
I don't have any folder called  wp_includes/Requests
Well that seems to be the problem then, as that is where the Hook.php file is located that is referenced in the error.
dk_jbAuthor Commented:
I have downloaded a fresh copy af Wordpress 7.2, and uploaded that´.

Now I get this in the log:
AH01071: Got error 'PHP message: PHP Fatal error: Class 'Requests_Hooks' not found in /var/www/vhosts/domain.tld/httpdocs/wp-includes/class-wp-http-requests-hooks.php on line 17\n'

BTW. I am running PHP 7.2.2

Julian HansenCommented:
Have you checked that wp-includes/Requests/Hooks.php exists?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dk_jbAuthor Commented:
Hi LVL61

Yes, that file do exist.

dk_jbAuthor Commented:
After reuploading the db, the sites went rigth up again.

Now I just have to figure out, to enable the rigt plugins etc.

dk_jbAuthor Commented:
Not one single person gave the right solution, be several gave me qualified hints.
If it was possible, I would share the "Best solution".
dk_jbAuthor Commented:
Hi Julian,

Yes, please do that

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.