Fatal Errors: Allowed memory size of 134217728 bytes exhausted

Hi,

I am using Cakephp 3.4, and I am having an issue getting past these fatal errors:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in /var/www/html/Sequencer/vendor/cakephp/cakephp/src/ORM/Locator/TableLocator.php on line 238

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in /var/www/html/Sequencer/vendor/cakephp/cakephp/src/Error/BaseErrorHandler.php on line 81

These are not the only fatal errors that occur though. If I were to reload the page, other fatal errors appear:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/Sequencer/vendor/cakephp/cakephp/src/ORM/Locator/TableLocator.php on line 183

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/Sequencer/vendor/cakephp/cakephp/src/Utility/Hash.php on line 61

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in /var/www/html/Sequencer/vendor/cakephp/cakephp/src/Core/Configure.php on line 126

After isolating each line of code, I found that the issue occurs when I use loadModel(‘Users’); in my controller and when I have the namespace App\Model\Table in the Users Table model.

Can anyone help me with this issue?

hope this stackoverflow could help you :