Bhaveshpp

Professional Magento Developr - Healp eachother to grow

How to error in install magento in windows?

22 May 2021 » magento2, windows

Change upload_file_size to 720MB in php.ini file

\setup\src\Magento\Setup\Module.php

remove coma(,) from line no 81

vendor/magento/framework/View/Element/Template/File/Validator.php

Find function public function isValid($filename)

Replace

    $filename = str_replace('\\', '/', $filename); 

To

	$filename = str_replace('\\', '/', $this->fileDriver->getRealPath($filename));

Find function protected function isPathInDirectories($path, $directories)

Add line

$realPath = str_replace('\\', '/', $realPath);  after $realPath = $this->fileDriver->getRealPath($path); 

\vendor\magento\framework\Image\Adapter\Gd2.php Line number 100

Replace this function

    /**
     * Checks for invalid URL schema if it exists
     *
     * @param string $filename
     * @return bool
     */
    private function validateURLScheme(string $filename) : bool
    {
        $allowed_schemes = ['ftp', 'ftps', 'http', 'https'];
        $url = parse_url($filename);
        if ($url && isset($url['scheme']) && !in_array($url['scheme'], $allowed_schemes) && !file_exists($filename)) {
            return false;
        }

        return true;
    }
	

https://magento.stackexchange.com/questions/97209/magento-2-css-and-javascript-not-loading-from-correct-folder

  • Change baseUrl from core_config_data - localhost to 127.0.0.1
  • delete all files
    • ROOT > var > cache > DELETE ALL
    • ROOT > var > page_cache > DELETE ALL
    • ROOT > var > session > DELETE ALL
  • edit ROOT > app > etc > di.xml file. Open up di.xml, find the virtualType name="developerMaterialization" section. In that section below, you will find an item <item name="view_preprocessed" xsi:type="object"> which needs to be modified. You can modify it by changing the following content:
    Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink
    

To:

Magento\Framework\App\View\Asset\MaterializationStrategy\Copy