Wordpress - PHP Fatal error: Interface 'Requests_Hooker' not found? - php

i am not able to access my wordpress frontend. After uploading the 'understrap' theme my backend and frontend throw an http 500 exception.
In order to debug the issue, i've set 'WP_DEBUG' to 'true' and receive the following exception:
PHP Fatal error: Interface 'Requests_Hooker' not found in /var/www/html/wp-includes/Requests/Hooks.php on line 15
Next, i've overwrite the complete "wp-includes" folder with an initial "wp-includes" from a new wordpess and now am able to access my backend again. Unfortunately, my frontend is still empty and in wp-content/debug.log is still the same exception.
Plugins, Themes and Uploads are not affecting the issue - that is sure (the first thing i did is to remove the uploaded theme - understrap).
Wp-uploads folder has been completely initialized.
Does anyone had this issue before and might know how to fix it? Any advice is highly appreciated.

I know this is an old request, but in case others have this issue, I found a solution today. It looks like someone deleted or renamed "Hooker.php" in "webroot/wp-includes/Requests". If you are able, I would recommend restoring a previous version of that file using whatever kind of control panel you are using to administrate your site.

Related

Wordpress displaying old PHP errors

I have a WooCommerce website that has been created by other party. When I was editing a template file and checking a minor change, a PHP error appeared on top of the page (literally the first line in the document, above )
[12-Jun-2017 19:08:58 UTC] PHP Fatal error: Call to undefined function add_action() in /home/SITENAME/public_html/wp-content/themes/booklovers/widgets/top10.php on line 8
I do know what it means, but it appears that the error itself is not the issue. The time does not change, it constantly displays 19:08:58. I've also tried renaming/moving the file to see what happens - and nothing happens at all. It is being executed, because the page results with a white screen when I put exit; in it. Renaming made no difference. Checking this path by file_exists() called in index results with false. In my opinion it has something to do with Wordpress, because if I put exit; on top of the index.php the page is totally blank, without error, so it is not being merged with the response by Apache or something. Also setting the error reporting in index/config has no effect (I realize that this is generally a bad idea, and would not leave production with a workaround like this).
My guess is that the error might be some kind of a cached artifact. But this WooCommerce has no cache plugins installed so far... I have only a minor experience with Wordpress, I do know the basics, but debugging this type of issues is a terrible pain. I would appreciate any tips suggesting where should I look.
Additional information worth mentioning: shared hosting on GoDaddy (not my choice...), php 5.6.
Resolved. A theme's error_log file was being prepended to the response.

openshift - php error 404 when accessing image asset

Installed the PHP cartridge and processwire over that cartridge.
Made some changes to the stylesheet. This sheet needs files in the folder site/templates/imgs/. (backgrounds and others).
Unfortunately, I'm unable to see these images in my site because there's a 404 error whenever I try to load them.
I've tried several changes to the file app-root/runtime/repo/php/.htaccess, but without success.
Can anybody help me, please?
Solved: I had a mistake in my stylesheet, referencing the image as "/naeg/site/templates/imgs...", instead of "/site/templates/imgs...". In my development environment, I had the app in the context "/naeg". I'll leave this here, hoping will be useful for anyone.

issue with wordpress Fatal error: Cannot redeclare frm_dl

I got this issue with my website using wordpress
I don't know what's the issue, could someone help us out please.
Fatal error: Cannot redeclare frm_dl() (
You seem to have duplicate function definitions of the function rm_dl() in wp-settings.php. Please review that file so there is only one definition.
It is also not a good idea to post links to your website and ask "please have a look". Much better and easier for us to help if you post the specific error together with the affected files (without passwords of course!).
If there is nothing wrong with your file the error is most likely caused by some newly installed or updated theme or plugin. In worst case it's some automated hack. In both cases you should reverse to a working backup and make sure you update carefully any plugins and base installations with security updates.
This issue is by cause of virus. It is one type of script when this run this create code in each php file like followuing.
.
the solution is that download your live project file and remove this code and upload again all file on live.
you can replace all that code one time replace all with blank cursor only.
Shiv

Broke PHP and caused Wordpress white-screen on Admin

I was doing some work on a wordpress site and another programmer had also been working on it. I was doing the design work, he was doing some custom PHP scripts. (we don't know each other.)
Some of his code was inserted in the wrong place and I made a few changes that I was confident I could undo if they broke the site. 5 hours later I go to log in and all admin screens are blank white. The site is still up and running though.
I tried to switch out the files I altered via ftp, but I must be forgetting something because it is still not working.
I checked the error log on the server and found one fatal error:
[01-Mar-2012 11:25:34] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home5/bestbik1/public_html/silvertoday/wp-content/themes/genesis/lib/init.php' (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home5/bestbik1/public_html/silvertoday/wp-content/themes/streamline/functions.php on line 3
I am not experienced enough at PHP to know how to proceed to get the admin back up and working.
What does each part of this error mean specifically?
and
What steps do I take to correct or troubleshoot?
UPDATE
Finally gave in and did a fresh install of the most recent version of the Genesis theme framework. Everything works again. Wanted to find the bug, but sometimes you gotta move on. Thanks everybody!
It looks to me like you're using a child theme of the Genesis theme framework. Certainly, you've got a functions.php file in your "streamline" theme that's trying to include Genesis's init.php, which is normally the first line of any Genesis child theme's functions.php.
Assuming that your theme is a Genesis child theme, it looks like your Genesis theme install has become corrupt, with its lib/init.php missing or having the wrong permissions. I'd try removing the Genesis theme and reinstalling it (which may mean deleting and re-uploading the wp-content/themes/genesis folder.)
(You didn't uninstall the Genesis theme, did you? If you're using a Genesis child, Genesis has to be installed even if it's not the "active" theme.)
The error means that a required file :
/home5/bestbik1/public_html/silvertoday/wp-content/themes/genesis/lib/init.php
Could be not opened - there could be a number of reasons
The file is not present
The webserver does not have the correct permissions to read the file
I would first check that the file is present on the server in question.
Using the require_once() or require function in PHP means that is a required file cannot be opened the script is halted - this is the reason for the white screen.

Wordpress php fatal error: Call to undefined function language_attributes()?

How do I fix the following error.
Fatal error: Call to undefined function language_attributes()
It looks as if your theme either did not upload correctly, or it is not compatible with the version of wordpress that you are using.
This can happen if you have no wp-config.php file. Rename the wp-config-sample.php file to wp-config.php, edit the db-settings and try again.
What version of WP are you using? From my research I found that the language_attributes() function is a new feature as of WP 2.1. If you are using a version of Wordpress older than 2.1 then you can either remove the function call from your header.php file or upgrade your wordpress installation.
This error occurs because the function language_attributes() is unavailable. If you are seeing it in the logs but your site is working fine, it might just be that someone tried to access a file in your theme directly.
Files in the theme directory are normally accessed after WordPress has loaded (making a bunch of functions available, like language_attributes()). If you try to access them directly, for instance by visiting yoursite.com/wp-content/themes/yourtheme/header.php in your web browser, you should see an empty page, and an error should be logged (e.g. in the error_log file).
Other files will trigger slightly different errors, depending of what functions these documents are calling. On a site I just tested, if I hit mytheme/index.php a Call to undefined function get_header()... error is logged.
If you see this error in the logs but are not experiencing any issues, it's probably due to some bot or indelicate user snooping around. You can ignore the error (unless you have a ton of them, in which case you might want to install a security plugin just in case...)

Categories