I have a strange problem.

When I am logged and try to add an item to the cart I receive an error message (We can't add this item to your shopping cart right now. logged).

if i try when unlogged it work perfectly.

and edit the file.php

Search for

'cache_dir' => null,
 and replace it with
'cache_dir' => 'var/cache',

Not work after replace this code

How can i solve the problem?

  • Can you please check your var/log/exception.log file and check there is there any errors related to database Query or any third party extension ? – Kishan Savaliya Nov 4 '19 at 5:56
  • @Kishan Savaliya Ok Wait – Dinesh Thakur Nov 4 '19 at 6:00
  • @Kishan Savaliya [2019-11-04 05:25:30] main.CRITICAL: Validate class not found from basename 'Magento\Framework\Validator\EmailAddress' {"exception":"[object] (Zend_Validate_Exception(code: 0): Validate class not found from basename 'Magento\\Framework\\Validator\\EmailAddress' at /var/www/vhosts/harryepstein.com/staging.harryepstein.com/defaultmag/vendor/magento/zendframework1/library/Zend/Validate.php:244)"} [] – Dinesh Thakur Nov 4 '19 at 6:05
  • Which magento version you're using ? – Kishan Savaliya Nov 4 '19 at 6:08
  • Magento ver. 2.3.0 – Dinesh Thakur Nov 4 '19 at 6:19

If you're using PLESK PHP then you need to change this settings.

Plesk includes per default some wired zend directories .. In the option "include_path"

enter image description here

enter image description here

enter image description here

Here you need to change include path.

Ref : https://github.com/magento/magento2/issues/10821#issuecomment-334525946

Hope this will work for you!

|improve this answer|||||
  • 1
    Thank you so much its working – Dinesh Thakur Nov 9 '19 at 7:46
  • Can i do same thing to any other way likewise through .htaccess – Vinit Kumar Feb 10 at 11:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.