CI2 hmvc datamapper

344 Views Asked by At

Fatal error: Allowed memory size of 194217728 bytes exhausted (tried to allocate 261904 bytes) in C:\xampp\htdocs\test\ci\application\libraries\datamapper.php on line 5

What is the problem? It works right but when trying to run any datamapper functions that error comes.

The database config is correct in ../config/database.php

1

There are 1 best solutions below

0
On

This a memory problem. Something in your code is eating memory. You can use memory_get_peak_usage() and memory_get_usage() to better understand what's going on or use a profiler like xdebug+webgrind.

https://www.php.net/manual/en/function.memory-get-usage.php https://www.php.net/manual/en/function.memory-get-peak-usage.php https://github.com/jokkedk/webgrind