0

Getting following error,

Running Magento Commands return : Class Magento\Framework\App\ResourceConnection\Proxy does not exist

enter image description here

How to install Magento 2 on xampp windows 10.

1 Answer 1

0

Have you tried any of the following steps?

  1. Go to the file in this path

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

and change the line 138 with

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

  1. search for a file called

gd2.php

go to line 100 and replace it with this line

if ($url && isset($url['scheme']) && !in_array($url['scheme'], $allowed_schemes) && !is_file($filename)) {
            return false;
        }
  1. go to the Database that houses your Magento tables and run this SQL query

    INSERT INTO core_config_data (path, value) VALUES ('dev/static/sign', 0) ON DUPLICATE KEY UPDATE value = 0;

  2. Composer install

  3. If none of the above steps work then you should probably check this issue thread out and it might be of some use https://github.com/magento/magento2/issues/29197. From what I gathered, the issue may be that the permissions of some of your folders aren't correct or are placed in the wrong folder causing Magento to fail because it can't find or read the files that it needs to run properly.

6
  • Still not working
    – zus
    Dec 1, 2020 at 13:23
  • @zus is the error showing any different? or is it the same error?
    – Zyzzx
    Dec 1, 2020 at 13:30
  • same error, justpaste.it/63hoa
    – zus
    Dec 1, 2020 at 13:31
  • @zus What command were you running before you got this error?
    – Zyzzx
    Dec 1, 2020 at 13:35
  • no, just try to install magento on localhost, localhost/magento getting the above error.
    – zus
    Dec 1, 2020 at 13:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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