Cm_Cache_Backend_Redis icon indicating copy to clipboard operation
Cm_Cache_Backend_Redis copied to clipboard

Could not scan for classes inside "/app/vendor/colinmollenhour/cache-backend-redis/Cm/Cache/Backend/Redis.php" which does not appear to be a file nor a folder

Open jtphelan opened this issue 2 years ago • 4 comments

I'm getting this error during composer install.

Could not scan for classes inside "/app/vendor/colinmollenhour/cache-backend-redis/Cm/Cache/Backend/Redis.php" which does not appear to be a file nor a folder

jtphelan avatar Jan 27 '23 16:01 jtphelan

I don't know, not much info to go on here...

colinmollenhour avatar Jan 27 '23 21:01 colinmollenhour

It's a Magento/Adobe Commerce site. Here's my composer.json. I'm getting the error locally, on Platform.sh when I try to deploy and on a Vultr VPS. So it seem to not be environmental.

    "name": "magento/project-enterprise-edition",
    "description": "eCommerce Platform for Growth (Enterprise Edition)",
    "type": "project",
    "license": [
        "proprietary"
    ],
    "config": {
        "allow-plugins": {
            "dealerdirect/phpcodesniffer-composer-installer": true,
            "laminas/laminas-dependency-plugin": true,
            "magento/*": true
        },
        "preferred-install": "dist",
        "sort-packages": true
    },
    "version": "2.4.5-p1",
    "require": {
        "blackbird/contentmanager": "v100.4.75",
        "magefan/module-blog-extra": "^2.10.10",
        "magefan/module-secondblog-extra": "^2.10.10",
        "mageme/module-webforms-3": "3.0.17",
        "mageme/module-webforms-3-page-builder": "^3.0",
        "mageme/module-webforms-3-print": "^3.0",
        "magento/composer-dependency-version-audit-plugin": "~0.1",
        "magento/composer-root-update-plugin": "~2.0",
        "magento/product-enterprise-edition": "2.4.5-p1",
        "magepal/magento2-gmailsmtpapp": "^2.9",
        "mageworx/module-deliverydatemeta": "^1.17",
        "mageworx/module-nocontactdeliverymeta": "^1.1",
        "mageworx/module-storelocatormeta": "^1.12"
    },
    "autoload": {
        "exclude-from-classmap": [
            "**/dev/**",
            "**/update/**",
            "**/Test/**"
        ],
        "files": [
            "app/etc/NonComposerComponentRegistration.php"
        ],
        "psr-0": {
            "": [
                "app/code/",
                "generated/code/"
            ]
        },
        "psr-4": {
            "Magento\\": "app/code/Magento/",
            "Magento\\Framework\\": "lib/internal/Magento/Framework/",
            "Magento\\Setup\\": "setup/src/Magento/Setup/"
        }
    },
    "require-dev": {
        "allure-framework/allure-phpunit": "~1.5.0",
        "dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
        "friendsofphp/php-cs-fixer": "~3.4.0",
        "lusitanian/oauth": "~0.8.10",
        "magento/magento-coding-standard": "*",
        "magento/magento2-functional-testing-framework": "^3.7",
        "pdepend/pdepend": "~2.10.0",
        "phpmd/phpmd": "^2.12.0",
        "phpstan/phpstan": "^1.6.8",
        "phpunit/phpunit": "~9.5.20",
        "sebastian/phpcpd": "^6.0.3",
        "squizlabs/php_codesniffer": "~3.6.0",
        "symfony/finder": "^5.2"
    },
    "conflict": {
        "gene/bluefoot": "*"
    },
    "autoload-dev": {
        "psr-4": {
            "Magento\\PhpStan\\": "dev/tests/static/framework/Magento/PhpStan/",
            "Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
            "Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
            "Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/",
            "Magento\\Tools\\": "dev/tools/Magento/Tools/",
            "Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/"
        }
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "repositories": {
        "magefan-blog-plus-extra-m2": {
            "type": "composer",
            "url": "https://magefan.com/repo/"
        },
        "magefan-sc-blog-extra-m2": {
            "type": "composer",
            "url": "https://magefan.com/repo/"
        },
        "mageworx_packages": {
            "type": "composer",
            "url": "https://packages.mageworx.com/"
        },
        "mageme": {
            "type": "composer",
            "url": "https://repo.mageme.com"
        },
        "0": {
            "type": "composer",
            "url": "https://repo.magento.com/"
        }
    },
    "extra": {
        "magento-force": "override"
    }
}```

jtphelan avatar Jan 27 '23 21:01 jtphelan

That's quite a composer file! I just tested the latest with composer require colinmollenhour/cache-backend-redis and it worked without error so I think this is possibly more of a composer issue,the composer.json file for this repo is pretty simple. Sounds like it could be some sort of file permission or symlink issue. Are you running the latest version of composer?

colinmollenhour avatar Jan 27 '23 22:01 colinmollenhour

Unfortunately, I'm still using composer 1 because Magento does not support version 2.

jtphelan avatar Jan 30 '23 02:01 jtphelan