Unable to view Wordpress site - wordpress

I had created a wordpress site close to 6 months back. Everything was fine till a few days back when we started to see the Wordpress "White Screen of Death" both at the front and back end.
After a lot of debug attempts, we decided to re-install wordpress and keep the old wp-content file.
Now this is visible on trying to access the site(wp_debug is set to false, so ideally it shouldn't be happening) -
Warning: require(/home/vaidya/public_html/wp-includes/class-wp-error.php) [function.require]: failed to open stream: No such file or directory in /home/vaidya/public_html/wp-settings.php on line 74
Fatal error: require() [function.require]: Failed opening required '/home/vaidya/public_html/wp-includes/class-wp-error.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/vaidya/public_html/wp-settings.php on line 74
Line 74 on wp-settings -
require( ABSPATH . WPINC . '/class-wp-error.php' );
Any suggestions?

The error message says, the the file "class-wp-error.php" is missing.
It should be located in the folder "'/home/vaidya/public_html/wp-includes/". It seems that you did not copy all required files.

Related

Wordpress Hosting Import Error Conflit Plugin Dokan

I went to import the site from another Wordpress hosting, and it is giving this error. The files are in the folder even though they are not. And every part of the plugin doesn't work.
Everything seems to work except this plugin. But in the other hosting without touching anything it works normally.
me/u905569257/domains/smeh.com.br/public_html/wp-content/plugins/woocommerce/includes/libraries/class-emogrifier.php): failed to open stream: No such file or directory in /home/u905569257/domains/smeh.com.br/public_html/wp-content/plugins/dokan-pro/includes/admin/announcement-background-process.php on line 14
Warning: include_once(): Failed opening '/home/u905569257/domains/smeh.com.br/public_html/wp-content/plugins/woocommerce/includes/libraries/class-emogrifier.php' for inclusion (include_path='.:/opt/alt/php74/usr/share/pear') in /home/u905569257/domains/smeh.com.br/public_html/wp-content/plugins/dokan-pro/includes/admin/announcement-background-process.php on line 14
Warning: include_once(/home/u905569257/domains/smeh.com.br/public_html/wp-content/plugins/dokan-pro/includes/modules/rma): failed to open stream: No such file or directory in /home/u905569257/domains/smeh.com.br/public_html/wp-content/plugins/dokan-pro/dokan-pro.php on line 286
Warning: include_once(): Failed opening '/home/u905569257/domains/smeh.com.br/public_html/wp-content/plugins/dokan-pro/includes/modules/rma' for inclusion (include_path='.:/opt/alt/php74/usr/share/pear') in /home/u905569257/domains/smeh.com.br/public_html/wp-content/plugins/dokan-pro/dokan-pro.php on line 286

PHP: Error using include_once function. Failed opening 'mysiteURL' for inclusion

I have never used PHP and need it just to build my WordPress site with an installed theme.
Every time when I open any pages under my wp-admin, I'm getting a warning:
Warning: include_once(): Failed opening
‘/myURL/public_html/wp-content/plugins/dsidxpress/admin.php’
for inclusion (include_path=’.:/usr/local/php56/pear’) in
/myURL/public_html/wp-content/plugins/dsidxpress123/dsidxpress.php
on line 90
When opening .php, I see the following code on line 90:
include_once(str_replace("\\", "/", WP_PLUGIN_DIR) . "/dsidxpress/admin.php");
After changing it per the instrucions:
include_once(include_path='.:/usr/local/php56/pear' . “/dsidxpress/admin.php”);
I'm getting new error:
Parse error: syntax error, unexpected ‘=’ in /myURL/public_html/wp-content/plugins/dsidxpress123/dsidxpress.php on line 90
How exactly do I need to change it?

Suddely files started missing from Wordpress and showing errors

My domain: bharahobe.info
I have installed WordPress in main domain and sydney theme. Everything was okay. Suddenly when I visit my site it shows error messages. Like this:
Warning: require(/home/bharahob/public_html/wp-includes/pomo/mo.php):
failed to open stream: No such file or directory in
/home/bharahob/public_html/wp-settings.php on line 102
Fatal error: require(): Failed opening required
'/home/bharahob/public_html/wp-includes/pomo/mo.php'
(include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/bharahob/public_html/wp-settings.php on line 102
What should I do now?
If you have access through FTP or SSH, you should log into the server and verify that those files exist. The files may have been deleted by a bot or botched upgrade. The permissions may have changed as well.
If the files are actually missing, you can probably get away with downloading the version of WP you're currently running and replace the missing files.

WordPress error with require_once

I have this error in my wordpress, on frontend and dashboard:
Warning: require_once(includes/theme-widgets.php) [function.require-once]: failed to open stream: No such file or directory in /home/masqueci/public_html/functions.php on line 2
Fatal error: require_once() [function.require]: Failed opening required 'includes/theme-widgets.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/masqueci/public_html/functions.php on line 2
The problem is that I try to delete this line, rename the file, delete the all theme and delete wp-admin and wp-include and upload it again. But the error continue. How can I fix this problem?
Your problem is that you are using a worng reletive path to the file wanted.
Try on using:
$filePath = get_bloginfo('template_url'); // this line gets you the path to the current theme.
$filePath .= 'includes/theme-widgets.php'; // now we add the relative path to your file
require_once($filePath); // now we place the hole thing inside the 'require_once' function.
now you can minimize the code by:
require_once(get_bloginfo('template_url').'includes/theme-widgets.php');
what was originally responded by the function was that it was trying on going to:
public_html/includes/theme-widgets.php which did not exist while your path was:
public_html/wp-content/themes/{theme_name}/includes/theme-widgets.php
The code i have provided before should do the job for you :)

Body and Footer gone on homepage and error message after clearing cache Drupal 7

I recently was working on my website and decided to clear all caches and now the homepage only shows the header and nothing else. All the other pages work fine but i do get this error:
Warning: include(page-front.php) [function.include]: failed to open
stream: No such file or directory in include() (line 14 of
/home/anthonyd/public_html/graphicimpress/sites/all/themes/gi_0612/page.tpl.php).
Warning: include(page-front.php) [function.include]: failed to open
stream: No such file or directory in include() (line 14 of
/home/anthonyd/public_html/graphicimpress/sites/all/themes/gi_0612/page.tpl.php).
Warning: include() [function.include]: Failed opening 'page-front.php'
for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in
include() (line 14 of
/home/anthonyd/public_html/graphicimpress/sites/all/themes/gi_0612/page.tpl.php).
I did see a very similar problem someone else posted but it was for drupal 6 and the fix was to rebuild the modules by visiting admin/build/modules
and rebuild themes by visiting admin/build/themes. Unfortunately D7 does not have the same menu options.
Does anyone have an idea how to fix this?
In your file /home/anthonyd/public_html/graphicimpress/sites/all/themes/gi_0612/page.tpl.php on line 14, function include('page-front.php') trying to include file page-front.php into your page.tpl.php, but there's no such file as page-front.php.
Make sure that this file (page-front.php) exist, or remove include('page-front.php') from page.tpl.php.

Resources