Log1x / acf-composer

Compose ACF Fields, Blocks, Widgets, and Option Pages with ACF Builder on Sage 10.
https://github.com/Log1x/acf-composer
MIT License
419 stars 57 forks source link

Error: Class "Log1x\AcfComposer\Exception" not found #205

Closed pauguri closed 7 months ago

pauguri commented 7 months ago

ACF Composer is throwing the following error:

Class "Log1x\AcfComposer\Exception" not found

  at /app/vendor/log1x/acf-composer/src/Composer.php:100
  at Log1x\AcfComposer\Composer->getFields()
     (/app/vendor/log1x/acf-composer/src/Composer.php:53)
  at Log1x\AcfComposer\Composer->__construct(object(AcfComposer))
     (/app/vendor/log1x/acf-composer/src/Composer.php:61)
  at Log1x\AcfComposer\Composer::make(object(AcfComposer))
     (/app/vendor/log1x/acf-composer/src/AcfComposer.php:169)
  at Log1x\AcfComposer\AcfComposer->register('App\\Fields\\HoroscopoChino', 'App\\')
     (/app/vendor/log1x/acf-composer/src/AcfComposer.php:150)
  at Log1x\AcfComposer\AcfComposer->registerPath('/app/web/app/themes/tarotorula/app')
     (/app/vendor/log1x/acf-composer/src/AcfComposer.php:109)
  at Log1x\AcfComposer\AcfComposer->registerDefaultPath()
     (/app/vendor/log1x/acf-composer/src/AcfComposer.php:87)
  at Log1x\AcfComposer\AcfComposer->boot()
     (/app/vendor/log1x/acf-composer/src/AcfComposer.php:79)
  at Log1x\AcfComposer\AcfComposer->Log1x\AcfComposer\{closure}(6)
     (/app/web/wp/wp-includes/class-wp-hook.php:324)
  at WP_Hook->apply_filters(null, array(6))
     (/app/web/wp/wp-includes/class-wp-hook.php:348)
  at WP_Hook->do_action(array(6))
     (/app/web/wp/wp-includes/plugin.php:517)
  at do_action('acf/init', 6)
     (/app/web/app/plugins/advanced-custom-fields-pro/acf.php:397)
  at ACF->init('')
     (/app/web/wp/wp-includes/class-wp-hook.php:324)
  at WP_Hook->apply_filters(null, array(''))
     (/app/web/wp/wp-includes/class-wp-hook.php:348)
  at WP_Hook->do_action(array(''))
     (/app/web/wp/wp-includes/plugin.php:517)
  at do_action('init')
     (/app/web/wp/wp-settings.php:643)
  at require_once('/app/web/wp/wp-settings.php')
     (/app/web/wp-config.php:9)
  at require_once('/app/web/wp-config.php')
     (/app/web/wp/wp-load.php:55)
  at require_once('/app/web/wp/wp-load.php')
     (/app/web/wp/wp-blog-header.php:13)
  at require('/app/web/wp/wp-blog-header.php')
     (/app/web/index.php:6) 

It happens right after installing the following composer dependencies using composer update:

"require": {
    "php": "^8.1",
    "composer/installers": "^2.2",
    "vlucas/phpdotenv": "^5.5",
    "oscarotero/env": "^2.1",
    "roots/bedrock-autoloader": "^1.0",
    "roots/bedrock-disallow-indexing": "^2.0",
    "roots/wordpress": "*",
    "roots/wp-config": "1.0.0",
    "roots/wp-password-bcrypt": "1.1.0",
    "roots/acorn": "^4",
    "wpackagist-plugin/disable-welcome-messages-and-tips": "*",
    "wpackagist-plugin/acf-content-analysis-for-yoast-seo": "*",
    "wpackagist-plugin/duplicate-post": "*",
    "wpackagist-plugin/ewww-image-optimizer": "*",
    "wpackagist-plugin/wordpress-seo": "*",
    "wpackagist-plugin/so-clean-up-wp-seo": "*",
    "wpackagist-plugin/simple-custom-post-order": "*",
    "wpackagist-plugin/wp-mail-smtp": "*",
    "wpackagist-plugin/cookiebot": "*",
    "wpackagist-plugin/password-protected": "*",
    "wpackagist-plugin/limit-login-attempts-reloaded": "*",
    "wpackagist-plugin/spinupwp": "*",
    "wpackagist-plugin/worker": "*",
    "wpackagist-plugin/woocommerce": "*",
    "wpackagist-plugin/woocommerce-product-price-based-on-countries": "*",
    "wpackagist-plugin/woocommerce-gateway-stripe": "*",
    "wpackagist-plugin/woocommerce-paypal-payments": "*",
    "wpackagist-plugin/woo-redsys-gateway-light": "*",
    "johnbillion/extended-cpts": "^5.0",
    "stoutlogic/acf-builder": "^1.12",
    "log1x/acf-composer": "^3.0",
    "wpackagist-plugin/theme-my-login": "^7.1"
  },
  "require-dev": {
    "squizlabs/php_codesniffer": "3.*",
    "roave/security-advisories": "dev-latest"
  },

And I also have the advanced-custom-fields-pro plugin (version 6.2.6.1) added without composer.