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

Compile Error #97

Closed
musabatas opened this issue Aug 16, 2022 · 10 comments
Closed

Compile Error #97

musabatas opened this issue Aug 16, 2022 · 10 comments

Comments

@musabatas
Copy link

musabatas commented Aug 16, 2022

There is an error when running compile.

"Class "Magento\AdminAdobeIms\Service\ImsConfig" does not exist."

@magenx
Copy link
Owner

magenx commented Aug 17, 2022

adobe services removed now,
you can remove it too, it should work then

        "magento/module-adobe-ims": "*",
        "magento/module-adobe-ims-api": "*",
        "magento/module-admin-adobe-ims": "*",

@musabatas
Copy link
Author

musabatas commented Aug 20, 2022

When I install 2.4.5 it returns 503 Backend fetch failed, but with 2.4.3-p2 and php 7.4 return 200 OK.
How to debug and solve it?

@magenx
Copy link
Owner

magenx commented Aug 20, 2022

check varnish log, and magento/php log
also restart varnish

@musabatas
Copy link
Author

Tried restarting varnish, nginx and even server completely.

Now found the following PHP fatal error:

PHP Fatal error: Uncaught TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, bool given in vendor/magento/framework/Filesystem/DirectoryList.php:137 Stack trace: #0 vendor/magento/framework/Filesystem/DirectoryList.php(137): str_replace() #1 vendor/magento/framework/Filesystem/DirectoryList.php(117): Magento\Framework\Filesystem\DirectoryList->normalizePath() #2 vendor/magento/framework/App/Filesystem/DirectoryList.php(193): Magento\Framework\Filesystem\DirectoryList->__construct() #3 vendor/magento/framework/App/Bootstrap.php(172): Magento\Framework\App\Filesystem\DirectoryList->__construct() #4 vendor/magento/framework/App/Bootstrap.php(139): Magento\Framework\App\Bootstrap::createFilesystemDirectoryList() #5 app/bootstrap.php(45): Magento\Framework\App\Bootstrap::populateAutoloader() #6 pub/health_check.php(18): require('...') #7 {main}

@gfxguru
Copy link

gfxguru commented Aug 24, 2022

I got the same error.

Class "Magento\AdminAdobeIms\Service\ImsConfig" does not exist
Class Magento\TwoFactorAuth\Observer\ControllerActionPredispatch\Interceptor generation error: The requ
ested class did not generate properly, because the 'generated' directory permission is read-only. If --

  • after running the 'bin/magento setup:di:compile' CLI command when the 'generated' directory permissio
    n is set to write --- the requested class did not generate properly, then you must add the generated cl
    ass object to the signature of the related construct method, only.

    "magento/module-adobe-ims": "*",
    "magento/module-adobe-ims-api": "*",
    "magento/module-admin-adobe-ims": "*",
    

is included in composer.json

@Amadeco
Copy link

Amadeco commented Aug 25, 2022

It is an issue introduced in Magento 2.4.5 :
You can refer to :
Hard dependency on magento/module-admin-adobe-ims in magento/module-two-factor-auth #35962

@corpsysgit
Copy link

Remove all Ims quotes from this file:
TwoFactorAuth/Observer/ControllerActionPredispatch.php

should compile.

@artmouse
Copy link

artmouse commented Sep 2, 2022

Tried restarting varnish, nginx and even server completely.

Now found the following PHP fatal error:

PHP Fatal error: Uncaught TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, bool given in vendor/magento/framework/Filesystem/DirectoryList.php:137 Stack trace: #0 vendor/magento/framework/Filesystem/DirectoryList.php(137): str_replace() #1 vendor/magento/framework/Filesystem/DirectoryList.php(117): Magento\Framework\Filesystem\DirectoryList->normalizePath() #2 vendor/magento/framework/App/Filesystem/DirectoryList.php(193): Magento\Framework\Filesystem\DirectoryList->__construct() #3 vendor/magento/framework/App/Bootstrap.php(172): Magento\Framework\App\Filesystem\DirectoryList->__construct() #4 vendor/magento/framework/App/Bootstrap.php(139): Magento\Framework\App\Bootstrap::createFilesystemDirectoryList() #5 app/bootstrap.php(45): Magento\Framework\App\Bootstrap::populateAutoloader() #6 pub/health_check.php(18): require('...') #7 {main}

Have you solved this problem?

@musabatas
Copy link
Author

PHP Fatal error: Uncaught TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, bool given in vendor/magento/framework/Filesystem/DirectoryList.php:137

Have you solved this problem?

Unfortunately, I haven't look for the solution yet.

For now, I am using m2 version 2.4.3-p2 with php 7.4 because of most of extensions not really work with php8.1

@magenx
Copy link
Owner

magenx commented Oct 8, 2022

magento always change some modules and its dependency requirements.
so you need to adjust your composer config file for every new version

@magenx magenx closed this as completed Oct 8, 2022
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

6 participants