Here is the error details I am getting:
Plugin could not be activated because it triggered a fatal error.
Warning: require_once(/nas/content/live/makefielddev/wp-content/plugins/woocommerce-services/classes/class-wc-connect-extension-compatibility.php): failed to open stream: No such file or directory in /nas/content/live/makefielddev/wp-content/plugins/woocommerce-services/woocommerce-services.php on line 37
Fatal error: require_once(): Failed opening required '/nas/content/live/makefielddev/wp-content/plugins/woocommerce-services/classes/class-wc-connect-extension-compatibility.php' (include_path='.:/usr/share/pear/php:/usr/share/php') in /nas/content/live/makefielddev/wp-content/plugins/woocommerce-services/woocommerce-services.php on line 37
I know there are other threads for this error, but couldn't find a thread with the "couldn't find a directory" error. I am not sure where to look or how to fix this...Can someone help?
NOTE: I have already tried a different theme and tried deactivating all plugins...regardless I am still getting this error.
More info: this error is triggered specifically by the WooCommerce Tax and Shipping plugin.
hi
This problem occurs because php could not find the
class-wc-connect-extension-compatibility.php file.
I'm not aware of your code in the woocommerce-services.php file.I
suggest a general solution, maybe your problem will be solved
First make sure there is such a file in this path
/nas/content/live/makefielddev/wp-content/plugins/woocommerce-
- services/classes/class-wc-connect-extension-compatibility.php'
Next.
Define the following constants in the woocommerce-services.php file
before writing any code
if (!defined('WOOCOMMERCE_SERVICES_BASENAME')) {
defined('WOOCOMMERCE_SERVICES_BASENAME') || define('WOOCOMMERCE_SERVICES_BASENAME',__DIR__);
}
if (!defined('WOOCOMMERCE_SERVICES_DIR')) {
define('WOOCOMMERCE_SERVICES_DIR', WOOCOMMERCE_SERVICES_BASENAME);
}
constant WOOCOMMERCE_SERVICES_DIR path keeper for
Your plugin.
Replace the code below with your code in the woocommerce-services.php file on line 37
require_once WOOCOMMERCE_SERVICES_DIR.'/classes/class-wc-connect-extension-compatibility.php';
Related
I am working on a Joomla site, and just recently updated PHP to 7.2, but my site started throwing errors. I have also updated Joomla to the latest version, but errors still appear. I'm not good in PHP and don't know how to fix it.
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Color has a deprecated constructor in /public_html/templates/jf_social/features/color.php on line 11
Warning: require_once(/public_html/libraries/joomla/document/html/renderer/head.php): failed to open stream: No such file or directory in /public_html/templates/jf_social/error.php on line 52
Fatal error: require_once(): Failed opening required '/public_html/libraries/joomla/document/html/renderer/head.php' (include_path='.:/php:/opt/cpanel/ea-php73/root/usr/share/pear') in /public_html/templates/jf_social/error.php on line 52
I think error comes from my Joomla template, I am using this one https://www.joomforest.com/joomla/templates/jf-social
I can't receive support from that template developers, because my subscription is expired, and changing the template will take a lot of time for me,
can you please anyone advise how to fix it?
Thank you very much!
Try to delete the line 52
require_once(/public_html/libraries/joomla/document/html/renderer/head.php)
from the File
/public_html/templates/jf_social/error.php
The renderer/head.php doesnt be supported any more in your joomla version. If there are no more errors, everything is fine, if not your template is not supported any more.
Then go to the file
/public_html/templates/jf_social/features/color.php
and edit the line
function Color($hex){
to
function __construct($hex){
I have very basic knowledge of coding, I took a copy of our company's website to practice making changes to it.
But when I try to run it I get this error
Warning: require_once(/var/www/html/classes/database_class_pdo.php):
failed to open stream: No such file or directory in
D:\xampp\htdocs\HJ\top.php on line 10
Fatal error: require_once(): Failed opening required
'/var/www/html/classes/database_class_pdo.php'
(include_path='D:\xampp\php\PEAR') in D:\xampp\htdocs\HJ\top.php on
line 10
Please, can someone tell me the issue here?
Thank you.
It's because your php file is trying to open a file named /var/www/html/classes/database_class_pdo.php but cannot find it. Try to see if the path is correct or if the file exists.
I am really new to wordpress environment.
I have the site on https://www.thewebdebug.com which is showing an error like
PHP Error Message
Fatal error: require() [function.require]: Failed opening required '/home/a9739613/public_html/wp-includes/random_compat/random.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a9739613/public_html/wp-includes/compat.php on line 338
can anybody tell me what is going on and how should i fix it.? I had tried on the web but couldnot find a solution that fits my need. I have recently upgraded my wordpress and some plugins failed to do.
I just checked on my website today at (www.mediagrooveltd.com) and the following error below was thrown. The site has been functional for over a month now with no troubles, what could be the cause of this?
Warning:
require_once(/home/oddity/public_html/mediagrooveltd.com/wp-content/plugins/the-events-calendar/vendor/tribe-common-libraries/tribe-common-libraries.class.php):
failed to open stream: No such file or directory in
/home/oddity/public_html/mediagrooveltd.com/wp-content/plugins/the-events-calendar/src/Tribe/Main.php
on line 304
Fatal error: require_once(): Failed opening required
'/home/oddity/public_html/mediagrooveltd.com/wp-content/plugins/the-events-calendar/vendor/tribe-common-libraries/tribe-common-libraries.class.php'
(include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/oddity/public_html/mediagrooveltd.com/wp-content/plugins/the-events-calendar/src/Tribe/Main.php
on line 304
There is something wrong with the events calendar, some of the files are missing. Or might have been over ridden by an update, for a temporary fix Deactivate the event plugin and see if everything works. If the site does work then you can delete and reinstall the plugin again. Make sure to take a backup of the plugin before deleting it.
I recently uninstalled the plugin SEO Facebook Comments
Since then when I click on add new plugin I get this error,
Warning: require_once(D:\Dropbox\htdocs\bcu/wp-admin/includes/class-wp-plugin-install-list-table.php): failed to open stream: No such file or directory in D:\Dropbox\htdocs\bcu\wp-admin\includes\list-table.php on line 42
Fatal error: require_once(): Failed opening required 'D:\Dropbox\htdocs\bcu/wp-admin/includes/class-wp-plugin-install-list-table.php' (include_path='D:\Dropbox\htdocs\bcu\wp-content\plugins\google-analyticator\google-api-php-client\src;.;D:\xampp\php\PEAR') in D:\Dropbox\htdocs\bcu\wp-admin\includes\list-table.php on line 42
I've looked for this error on google and this site although I cannot seem to find anyone else with this error?
Can anyone help me get past this?
I understand it may be a explicit PHP error but I am not too sure on how to fix it,
The error is within another plugin that you have installed.
The second line shows the actual crash
Fatal error: require_once(): Failed opening required 'D:\Dropbox\htdocs\bcu/wp-admin/includes/class-wp-plugin-install-list-table.php' (include_path='D:\Dropbox\htdocs\bcu\wp-content\plugins\google-analyticator\google-api-php-client\src;.;D:\xampp\php\PEAR') in D:\Dropbox\htdocs\bcu\wp-admin\includes\list-table.php on line 42
The plugin is named google analyticator and there is a problem with getting data by the looks of things.
Try de-activating the plugin and seeing if you can then add plugins after.
If that is the problem, try uninstalling the plugin, downloading the latest version and then installing that. If there is still a problem with that plugin, then you will have to report it to the creators and look for an alternative.