You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I required jgrossi/corcel on a fresh install of CakePHP. I didn't even get to actually using any of the corcel classes. The base application stopped working throwing the below error:
It appears that you are encountering class not found errors when trying to use the "jgrossi/corcel" package in a fresh install of CakePHP. The error messages indicate that certain classes like "PhpOption\Option" and "Dotenv\Repository\RepositoryBuilder" are not being found.
Based on your description and the steps you've mentioned, it seems that the dependencies required by the "jgrossi/corcel" package are not being automatically loaded by Composer.
To resolve this issue, you can try the following steps:
Clear the Composer cache by running the command: composer clear-cache.
Run composer install to ensure that all the required dependencies are installed properly.
Since you mentioned that the error changes when you require "phpoption/phpoption", it seems that package might be a missing dependency. Try running composer require phpoption/phpoption to install it.
If the above steps don't resolve the issue, it's possible that there might be a compatibility issue between the "jgrossi/corcel" package and the CakePHP version or other dependencies. In such cases, it's worth checking the documentation or support channels for the "jgrossi/corcel" package to see if there are any known issues or specific requirements.
Remember to ensure that you are using compatible versions of packages and that your CakePHP installation meets the requirements specified by the "jgrossi/corcel" package.
Description:
I required
jgrossi/corcel
on a fresh install of CakePHP. I didn't even get to actually using any of the corcel classes. The base application stopped working throwing the below error:Steps To Reproduce:
What I tried
Ideas from https://laracasts.com/discuss/channels/testing/class-phpoptionoption-not-found-when-running-phpunit:
composer clear-cache
- no effectcomposer install
- no effectcomposer require 'phpoption/phpoption'
- the error changes to:One would think the dependencies should have been loaded automatically?
The text was updated successfully, but these errors were encountered: