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
tried to allocate #1578
Comments
Check your php.ini file for memory size. ; Maximum amount of memory a script may consume (128MB) |
I increased it to 15 gigabytes of RAM |
pls update your code - /var/www/web.ru/system/Debug/Exceptions.php on line 195 is not an valid code line, so it looks like your code is outdated. its hard to make any assumptions without knowing your version https://github.com/codeigniter4/CodeIgniter4/blob/v4.0.0-alpha.2/system/Debug/Exceptions.php |
i use the latest version https://github.com/codeigniter4/CodeIgniter4 |
Understood what the problem was, did not pass the parameters in the Services when accessing return static :: getSharedInstance ('Telegram', $ token); Can be closed |
Glad you found the problem! Closing, then. |
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /var/www/web.ru/system/Config/BaseService.php on line 111
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /var/www/web.ru/system/Debug/Exceptions.php on line 195
OR
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in /var/www/web.ru/application/Config/Services.php on line 224
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
The problem appears when the cURL or file_get_contents () method is called in the function, I think it is related to the toolbar when it tries to collect all the data from the variables for the report, and somewhere there is a memory leak. for example, parsing the site is not realistic, it appeared just a couple of months ago, before that, everything was ok, I’ll attach sample code
`<?php namespace App\Controllers;
use CodeIgniter\Controller;
class Update extends Controller {
}`
CodeIgniter 4 version
Last bild
The text was updated successfully, but these errors were encountered: