Magento error Class ../validator does not exist

reflectionexception class validator does not exist
laravel validator does not exist
method validate does not exist in macroable php line 74
badmethodcallexception method validate does not exist in laravel
method (validatecaptcha) does not exist
laravel validation

I just installed Magento2 platform. The admin page was blank showing gray screen without anything. I enabled the error to be shown then its displaying this error and I didn't found any solution or reason of it:

There has been an error processing your request

Class Magento\Framework\View\Element\Template\File\Validator does not exist

What is the Magento2 version that you are installing?

Could you set Mode to developer and send me the trace on var/log/system.log?

See how to set Magento2 modes here

Thanks

Magento error Class ../validator does not exist, Magento error Class ../validator does not exist. laravel validator does not exist method validate does not exist in macroable php line 74 badmethodcallexception​  There has been an error processing your request Class Magento\Framework\View\Element\Template\File\Validator does not exist . Error log record number: 1515413036

Magento 2 generates factory class inside generated folder. If generated folder has file write permission or ownership permission it can't generate factory class. For Magento 2, generated folder is in magento root path.

Run following commands and try:

chmod -R 777 generated/ var/
chown -R magento_user:magento_user generated/`

Class validator does not exist · Issue #27804 · laravel/framework , [2019-03-06 22:00:15] local.ERROR: Class validator does not exist {"exception":"[​object] (ReflectionException(code: -1): Class validator does  Re: Class Magento\Framework\View\Element\Template\File\Validator does not exist You should put your complete code here. Seems like some code you are using does not have class

Check the following path. If your magento admin page is blank check the path: magento_root_dir\vendor\magento\framework\View\Element\Template\File\Validator.php

And change the following line:

if (0 === strpos($realPath, $directory)) {
    return true;
}

to:

if (0 === strpos($path, $directory)) {
     return true;
}

If the folder still can't be located, check the path below too: magento_root_dir\lib\internal\Magento\Framework\View\Element\Template\File\Validator.php

ReflectionException: Class validator does not exist, Fatal error: Call to undefined method Illuminate\Support\Facades\Validator::make​() in . I have done composer dump-autoload, I have deleted  Magento 2 generates factory class inside generated folder. If generated folder has file write permission or ownership permission it can't generate factory class. For Magento 2, generated folder is in magento root path. Run following commands and try: chmod -R 777 generated/ var/ chown -R magento_user:magento_user generated/`

Magento 2 Class *Factory does not exist, Magento 2 generates Factory classes inside var/generation directory. So, if there is folder permission issue or folder owner issue with that directory then the  Best, After updating magento 2.2.6 to magento 2.3 i have compilation issues. I had compilation errors with Mageplaza extensions on compilation step 1/7, I removed these extensions. After this problem was resolved compilation hangs again on step 5/7. 1. php bin/magento setup:upgrade Runs well 2

Magento 2 - Form Validation, There are 3 different ways to use form validation in magento 2 <form class="​form" id="custom-form" method="post" autocomplete="off"> <fieldset class="​fieldset"> required-file validate-ajax-error validate-optional-datetime validate-​required-datetime The date is not within the specified range. validate-digits-​range: **[RuntimeException] Source class "\Magento\Payment\Model\Method\Virtual" forMagento\Payment\Model\Method\VirtualLogger" generation does not exist.** I have cleared all cache and removed these folders also

Class Magento\Framework\View\Element\Template\File, Can Anybody help me to resolve this error . Class Magento\Framework\View\​Element\Template\File\Validator does not exist. So i ran the compile command - magento setup:di:compile. but i am getting following error: Area configuration aggregation 5/7 [=====>-----] 71% 35 min s 736.2 MiB [ReflectionException] Class Not_Existing_Class does not exist [ReflectionException] Class Not_Existing_Class does not exist

Comments
  • Did you check if the file is there?
  • Yes its there Actually I only added this code to it to enable displaying errors details Also I try remove it but still same error foreach ($directories as $directory) { // Add this line $realDirectory = $this->fileDriver->getRealPath($directory); // and replace $directory with $realDirectory if (0 === strpos($realPath, $realDirectory)) { return true; }
  • I'm using Magento2 version 2.3.0 I have reinstalled it, The error is same (displaying blank admin page). Convert it to developer mode and showing this error: 1 exception(s): Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'C:/xampp/htdocs/mymagento/vendor/magento/module-backend/view/adminhtml/templates/page/js/require_js.phtml' in module: 'Magento_Backend' block's name: 'require.js' with some other lines....
  • Did you try to find this mymagento/vendor/magento/module-backend/view/adminhtml/templates/page/js/require_js.phtm ? Is it existing?
  • Actually, I deleted the whole project and reinstall it again. the error not appearing to me again. I would like to thank you and appreciate your interesting for help. Because I didn't found a way to delete the question from here so it's still here.