Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #174

Open
jtphelan opened this issue Jan 27, 2023 · 4 comments

Comments

@jtphelan
Copy link

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

@colinmollenhour
Copy link
Owner

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

@jtphelan
Copy link
Author

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"
    }
}```

@colinmollenhour
Copy link
Owner

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?

@jtphelan
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants