3

I've moved my Magento 2.3.2 website from Shared Hosting where I developed it to a VPS. Everything on the Shared Hosting was working fine on checkout but right now, when a customer login and tries to Checkout this error message appears:

 Validate class not found from basename
 Magento\Framework\Validator\EmailAddress

I've tried and followed this: the Same issue reported.

With what is suggested adding include_path "." to my php.ini file, the result is, the error message no longer is showing but the delivery methods are not showing.

As it looks it feels like this stops the validation process for the address of the customer. Has anyone found a fix for this?

Edit: I am not using Plesk.

3

1 Answer 1

18

You can add this in your php.ini file

include_path = ".:/yourpathtomagento/vendor/magento/zendframework1/library"

Add your Magento Root directory path where I have mentioned yourpathtomagento in the above path and then check.

  • Note: Go to your console and move into your Magento installation directory and then run PWD command there and copy the whole path and paste there instead of this text yourpathtomagento.

Hope this will help you!

5
  • 1
    Thank you, your solution fixed the issue.
    – h3k
    Commented Nov 21, 2019 at 12:08
  • You're welcome buddy :) Commented Nov 21, 2019 at 12:08
  • How can i add this path in htaccess Commented Feb 3, 2020 at 9:53
  • Vinit, php.ini not htaccess Commented Apr 5, 2020 at 21:26
  • @KishanSavaliya I am not a root user so I do not have access to php.ini then how I can go on achieving this. Commented Oct 16, 2021 at 8:42

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