-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
php fatal erorr #1152
Comments
I've seen other people report similar issues when they had misconfigurations with their PHP versions, specifically if they have different versions used by the php in the console, composer, or the webserver. Can you post the specific error you get when running |
WARN PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in D:\myproject\vendor\laravel\framework\src\Illuminate\Database\Connection.php on line 760. WARN PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in D:\myproject\vendor\laravel\framework\src\Illuminate\Database\Connection.php on line 760. This error appears, but I searched. It seems that I must make modifications within the php.ini file, but when I increase the memory value (memory-limit=512M), the error appears again and the values shown in the error increase. |
increasing the memory limit rarely actually solves the problem. It sounds like it's being caused by an infinite loop, possibly by an error being triggered when attempting to connect to the database and then it attempting to connect to the database again to log the error endlessly. Do you have the correct database credentials configured? |
Yes, it is correct. I deleted xampp and downloaded it again. It worked, but after a day the error appeared again. I think it has something to do with composer. |
We'll close this for now, as there's been no follow up. If the issue persists and you can provide us more info on how to replicate the issue, we'll be happy to re-open. |
Winter CMS Build
dev-develop
PHP Version
8.1
Database engine
MySQL/MariaDB
Plugins installed
No response
Issue description
Winter CMS Forum.*** Detecting Winter CMS build...
PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 2113536 bytes)
Steps to replicate
when i run
php artisan serve
or
php artisan winter:version
and
composer update
Workaround
No response
The text was updated successfully, but these errors were encountered: