Fatal error: Uncaught Error: Class 'Zend\Validator\Hostname' not found in /home/apartsau/public_html/maplegolddubai/vendor/zendframework/zend-http/src/PhpEnvironment/Request.php:279 Stack trace: #0 /home/apartsau/public_html/maplegolddubai/vendor/zendframework/zend-http/src/PhpEnvironment/Request.php(84): Zend\Http\PhpEnvironment\Request->setServer(Object(Zend\Stdlib\Parameters)) #1 /home/apartsau/public_html/maplegolddubai/vendor/magento/framework/HTTP/PhpEnvironment/Request.php(136): Zend\Http\PhpEnvironment\Request->__construct() #2 /home/apartsau/public_html/maplegolddubai/vendor/magento/framework/App/Request/Http.php(123): Magento\Framework\HTTP\PhpEnvironment\Request->__construct(Object(Magento\Framework\Stdlib\Cookie\PhpCookieReader), Object(Magento\Framework\Stdlib\StringUtils), NULL) #3 /home/apartsau/public_html/maplegolddubai/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(116): Magento\Framework\App\Request\Http->__construct(Object(Magento\Framework\Stdlib\Cookie\PhpCookieReader), Object(Mag in /home/apartsau/public_html/maplegolddubai/vendor/zendframework/zend-http/src/PhpEnvironment/Request.php on line 279
How to resolve this?
Hello @AlokBhandari
Please set the permissions to the Magento directory as below.
Here’s what that means:
775 for directories, which means full control by the user, full control by the group, and enables everyone to traverse the directory. These permissions are typically required by shared hosting providers.
664 for files, which means writable by the user, writable by the group, and read-only for everyone else.
For that, you can follow the below link
https://devdocs.magento.com/guides/v2.3/install-gde/prereq/file-system-perms.html
Regards,
Deep
Still facing the same issue after changed the permissions.