Its error coming bacause The “Allowed memory size exhausted” error in PHP indicates that your script has attempted to use more memory than the limit allowed by the PHP configuration. It’s a common issue, and here are several strategies you can use to resolve or mitigate the problem:
Increase Memory Limit:
- You can try increasing the memory limit in your
php.ini
file or in your script usingini_set
. Locate yourphp.ini
file, find thememory_limit
directive, and increase its value. For example:
Go to php.ini file
Just change as do below for unlimited limit
memory_limit=-1
Now error has been solved 👍👍