Fatal Error while setting up site on local - php

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.

Related

My dynamic site is not loading when the site is online but works well in localhost

I'm getting this error when my site is online
[host www.sitename.com] Backend fatal error: PHP Fatal error: require_once() [function.require]: Failed opening required 'admin/config/connection.php' (include_path='.:/opt/cpanel/ea-php53/root/usr/share/pear:/opt/cpanel/ea-php53/root/usr/share/php') in /home/mistrybu/public_html/index.php on line 373\n
The site works well in localhost but when its put online , the dynamic part is not showing.
I changed the php version from php7 to php5 in cpanel. Now the front end is working but the backend is not.
Can someone help me solve this error?
PHP version
Definitely do not go back to PHP5. Keep it to 7. If that means rewriting some of the existing code, so be it, it will make your site more secure and more future proof.
Error Message
Your require_once() method cannot find or access a particular file. This is most probably because:
File missing
The file (connection.php) doesn't exist in the given location (admin/config). Now keep in mind that as the location doesn't start with a /, it's going to be relative to where the require_once() method is being run from.
Since you're running require_once() from:
home/mistrybu/public_html/
it's going to look for the file here:
/home/mistrybu/public_html/admin/config/.
Does that location exist? Does the connection.php reside in the folder?
Folder mismatch
Try adding the following prefix to your path, and see if that makes a difference:
require_once $_SERVER['DOCUMENT_ROOT'].'/admin/config/connection.php';
File errors
Maybe the file exists, but for some reason, gives an error. Try running the following from your command line and see if you get any errors:
php -f admin/config/connection.php

WordPress crashing on PHP 7 IIS Server

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.

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?

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

Installing PEAR in Windows Server 2008, PLESK

I'm not one to normally reach out but I've found myself completely stumped by this one.
I have a new server and chose to go with Windows Server 2008 and Plesk. After importing my site, I find that my includes no longer work, coming up with this error message:
require_once(include/online_class.php) [function.require-once]: failed to open stream: Operation not permitted
Fatal error: require_once() [function.require]: Failed opening required 'include/online_class.php
I have disabled open_basedir to make sure that it isn't conflicting but I am still getting this message. I have tried doing a fresh install of PEAR via command line and have made sure include_path points to the correct directory -> C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\PEAR
I have switched between both PHP 5.2 and 5.3 - 5.3 will just display a 500 error message without even reaching the php include errors.
Is there something I'm missing here? This is an issue I've never had with linux / cpanel builds and it's leaving a sour taste in my mouth with regards to Windows servers. What can I do to fix this problem?
Any help would be appreciated. Cheers!

Categories