In prestashop it show blank page both side fron end and backend some time show following error:
[PrestaShop] Fatal error in module smarty_internal_write_file:
Uncaught --> Smarty: unable to write file D:\Hosting\11513307\html\Shop/cache/smarty/compile\50\d0\37\wrt547ffab5121125_65960237
<-- thrown
Your Smarty Cache directory either does not exist or it does not have write permissions.
please provide write permission to the directory.
D:\Hosting\11513307\html\Shop/cache/smarty/compile\50\d0\37\
Related
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';
Currently trying to login to the Magento backend panel (version 2.2.7) but whenever I try to access the admin panel, I'm getting an error reading:
This page isn’t working www.websitename.com is currently unable to
handle this request.
HTTP ERROR 500
I've looked in the logs and there seems to be the following Apache error in them.
Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a
member function getNext() on null in
/var/www/vhosts/websitename.com/httpdocs/generated/code/Magento/User/Model/User/Interceptor.php:529\nStack
trace:\n#0
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/module-backend/Model/Locale/Manager.php(96):
Magento\User\Model\User\Interceptor->getInterfaceLocale()\n#1
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/module-backend/Model/Locale/Resolver.php(77):
Magento\Backend\Model\Locale\Manager->getUserInterfaceLocale()\n#2
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/framework/Locale/Resolver.php(65):
Magento\Backend\Model\Locale\Resolver->setLocale(NULL)\n#3
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/module-backend/Model/Locale/Resolver.php(60):
Magento\Framework\Locale\Resolver->__construct(Object(Magento\Framework\App\Config\Interceptor),
'general/locale/...', 'store', NULL)\n#4
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/Abst...\n'
Can anyone suggest a way to resolve this as I cannot currently get into the backend of My site.
It seems that this was being caused by a vendor extenion called "Moogento Pickpack". Disabling this extension seems to have caused the issue to stop for the moment.
I will get in touch with the extension vendor and try to find out exactly what was causing the problem.
Update:
We have now updated Moogento Pickpack to a new version and upgraded to Magento 2.3.2. The error here is no longer occuring.
i am facing this problem in magento site:
Magento website suddenly has 'No data received' Error code: ERR_EMPTY_RESPONSE
so i tried solution provided by #Larzen in that link
but i am getting following error at the end of the frontend and backend :
Fatal error: Call to undefined function apc_clear_cache() in /var/www/html/site/index.php on line 92
so is there any way to clear APC cache through index.php file or how we can do this from server side.
When I open backend of opencart it returns
Fatal error: Cannot redeclare ModelSaleCustomer::getNewsletterSubscribers() in
/home/eshopnsa/public_html/vqmod/vqcache/vq2-admin_model_sale_customer.php on line 515
I don't understand this. Please help me.
This error beacuse of any previous free version of newsletter by other developer installed on your store... reason: wither u have a vqmod from that module or done manuall changes in files... please remove the other vqmod u already had, and just use the mod xml supplied with this mod...or if u did manually changes in past for free newsletter module, replace original files or undo changes by that mod..
I have had been doing same with previous smarty versions... Like loading a TPL file outside of specified templates folder, like this:
$smarty->display("../admin/bin/tpl/default.tpl");
exit();
however since upgrade, I receive following errors:
[12-Jun-2013 11:40:12 UTC] PHP Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file '../admin/bin/header.tpl' in '../admin/bin/tpl/default.tpl'' in
Have you tried an absolute path? i.e.
$smarty->display("/var/www/mywebsite.com/templates/admin/bin/tpl/default.tpl");
That should work according to the manual (and it does for me)