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

php fatal erorr #1152

Closed
mostafaabdo22 opened this issue Jun 25, 2024 · 5 comments
Closed

php fatal erorr #1152

mostafaabdo22 opened this issue Jun 25, 2024 · 5 comments

Comments

@mostafaabdo22
Copy link

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

@LukeTowers
Copy link
Member

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 php artisan serve? I haven't seen out of memory issues with that command before.

@mostafaabdo22
Copy link
Author

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.

@LukeTowers
Copy link
Member

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?

@mostafaabdo22
Copy link
Author

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.

@bennothommo
Copy link
Member

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.

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

3 participants