WordPress crashing on PHP 7 IIS Server - php

I have an IIS 7 server setup with numerous domains. I'm testing PHP 7 on one of the domains. It works perfectly and the speed of this version is amazing. However, it tends to crash usually after half an hour or after a couple of hours showing the following browser error:
URL is currently unable to handle this request.
HTTP ERROR 500
I have enabled PHP errors logging and manage to pinpoint the error:
PHP Fatal error: require_once(): Failed opening required '/wp-
admin/includes/class-wp-site-icon.php' (include_path='.;C:\php\pear') in
\wp-admin\includes\admin.php on line 74
No idea what I can do here as it is a file within Wordpress.

Related

Configure error logging - path broken

Configure error logging.
I'm working with PHP, and I'm on the support side, but I do not know the error system. Is there any material I can read to help me?
My biggest problem is this, many errors are written to the log this way:
PHP Fatal error: require_once(): Failed opening required 'vc-icon-element.php' (include_path='.;C:\php\pear') in D:\home\site\wwwroot\wp-content\plugins\js_composer\config\conte on line 6
But it seems the path is not complete and I do not know which file made the request for vc-icon-element.php. How would I do to find out which file or page that generated this log? Is it normal that the path does not reach a .php file?

Fatal Error while setting up site on local

I have Drupal 7 Site. I am setting up a remote site on my local.
While setting up the site, getting the following error from Apache
Fatal error: require_once(): Failed opening required
'C:\wamp\www\mySite\mySite-website\usr\share\drupal7/sites/all/modules/isotope/plugins/export_ui/isotope_ctools_export_ui.inc'
(include_path='.;C:\wamp\bin\php\php5.5.12\PEAR') in
C:\wamp\www\mySite\mySite-website\usr\share\drupal7\sites\all\modules\ctools\includes\plugins.inc
on line 477-
I am definitely not an expert of Apache. I also tried navigating to a test.html page I placed in common/configs/ so I assume there are no rights issues going on.
PEAR is successfully installed.
Not sure what to do at this point
Any help highly appreciated.

Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in ......?

I moved wordpress from one server to other...home page is running fine but when I click to category pages/links it shows these errors
Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/server/public_html/index.php on line 17
Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/server/public_html/index.php on line 17
Fatal error: require() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/server/public_html/index.php on line 17
I searched on google and tried accordingly but not solved. I tried wp-codex tech like http://codex.wordpress.org/Changing_The_Site_URL but also failed. I have the wp-blog-header file in my directory but still not working....any help ...thanx in advance
Change php version for 7. My tech.support make this and problem was done
I had a similar issue and the problem was with the PHP version used which in my case by default was PHP 5.2 and it was throwing the 500 status code error.
When upgrading the PHP version to 5.3 the 500 status code was gone but Wordpress returned this error:
Your server is running PHP version 5.3.29 but WordPress 5.4.2 requires at least 5.6.20.
Note to myself (and everyone else with this error): When moving Wordpress websites between different servers make sure you are running the minimum required PHP version.
Also remember:
Note: If you are in a legacy environment where you only have older PHP or MySQL versions, WordPress also works with PHP 5.6.20+ and MySQL 5.0+, but these versions have reached official End Of Life and as such may expose your site to security vulnerabilities.
According to WP docs the recommended PHP is version 7.3.
Try the default theme and see if you still have the error. If so the theme you are using is causing the error - as in my case. The page that had an error was calling a file in "pages" that was not there. When I changed what is to show on that page to something current - the error went

Warning: require(__DIR__/warp.php) - Switching Site from one server to another

I am switching over a website that was built on Wordpress from one HostGator server to another HostGator server. I have successfully transferred over the files via FTP, and migrated the MySQL database over and have both connected successfully.
I am running into an issue when I view the site in the browser and I receive this following error message:
Warning: require(DIR/warp.php) [function.require]: failed to open stream: No such file or directory in /home/abcworld/public_html/new2/wp-content/themes/yoo_moustache_wp1/index.php on line 10
Warning: require(DIR/warp.php) [function.require]: failed to open stream: No such file or directory in /home/abcworld/public_html/new2/wp-content/themes/yoo_moustache_wp1/index.php on line 10
Fatal error: require() [function.require]: Failed opening required 'DIR/warp.php' (include_path='.:/opt/php52/lib/php') in /home/abcworld/public_html/new2/wp-content/themes/yoo_moustache_wp1/index.php on line 10
When I switch to the themes that comes with Wordpress, the site is displayed with the data that is in the MySQL database, so it seems that the Template is what's causing the error. I am using a Yootheme Template called 'Moustache' and have downloaded the latest version and uploaded it to Wordpress and the error message is still there.
The site I am working on is: http://abcworldwidestone.com/new2/
I am unsure what's causing this and would love some assistance - Any thoughts?
Your server must still be using PHP 5.2 , use 5.3.3 or higher at least.
As per the documentation;
5.3.0 Added DIR and NAMESPACE constants
You are more than likely running PHP version < 5.3.0.

phpMyAdmin: PHP fatal error - Cannot redeclare PMA_checkLink()

I have recently started encountering issues when trying to access my hosted phpMyAdmin. I am getting a 500 inernal server error when trying to access it and as expected getting nothing but a blank page in my browser.
I have had a look at the error log for phpMyAdmin and noticed the following error is being raised:
PHP Fatal error: Call to undefined function PMA_sanitize() in /usr/share/phpMyAdmin/libraries/Message.class.php on line 541
Firstly, I reinstalled phpMyAdmin and after this, was able to access it fine for a while before I began experiencing the same issue again.
I had a look around the web and came across the following blog here with a potential fix for this problem. I did what the blog suggested and added the following:
require_once('./libraries/sanitizing.lib.php');
at the top of the following file:
/usr/share/phpMyAdmin/libraries/Message.class.php
this worked for a while but then got another 500 internal server error. So again I checked the error log and got the following error message:
PHP Fatal error: Cannot redeclare PMA_checkLink() (previously declared in /usr/share/phpMyAdmin/libraries/sanitizing.lib.php:15) in /usr/share/phpMyAdmin/libraries/sanitizing.lib.php on line 35
As well as these fatal errors I am getting the following warning messages but not sure if these have anything to do with the issue:
PHP Warning: Unknown: Unable to allocate memory for pool. in Unknown on line 0
PHP Warning: require_once(): Unable to allocate memory for pool. in /usr/share/phpMyAdmin/index.php on line 13
PHP Warning: require(): Unable to allocate memory for pool. in /usr/share/phpMyAdmin/libraries/common.inc.php on line 52
PHP Warning: require_once(): Unable to allocate memory for pool. in /usr/share/phpMyAdmin/libraries/Error_Handler.class.php on line 12
PHP Warning: require_once(): Unable to allocate memory for pool. in /usr/share/phpMyAdmin/libraries/Error.class.php on line 12
I am running a dedicated Centos 6 server with PHP version 5.3.3, Apache version 2.2.15, mysql version 5.1.61 & phpMyAdmin version 3.5.7
If anyone can shed some light on this, that would be excellent!
require_once(): Unable to allocate memory for pool. means there was not enough memory to include some of the declaration files from PhpMyAdmin.
These files having not been included, the definitions they contain were not loaded. Hence your first errors Call to undefined function PMA_sanitize().
The blog post you linked to advises adding an inclusion at a dubious location, leading you to include some definition files where it shouldn't. Hence your second error Cannot redeclare PMA_checkLink().
If I were you I would rollback all changes in the PhpMyAdmin code and try to address the first problem. This question will probably provide you with the right procedure.

Categories