Fixing "Fatal error: Allowed memory size . . ."
If you are seeing an error that looks like this:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 151 bytes) in /home/yoursite/public_html/wp-content/plugins/pretty-link/app/models/PrliUtils.php on line 230
Then this means that your PHP
memory_limit is being exhausted. You have the following options to resolve this:
- Disable any unused plugins (which take up space).
- Ask your webhost to increase your PHP memory_limit to 256M.
- Change your tracking method in Pretty Links Options to “Normal” instead of “Extended”. Note:
If you switch off of “Extended” tracking, you will lose the ability to do conversion reports/split test reports.
- Clear old hits with the Pretty Links -> Options -> Trim Hits feature. Trimming old hits can free up some resources.
Doing any one of those things has the potential to fix this error, but please note numbers one and two may still require you to ask your webhost to increase your PHP memory_limit to 256M.
If you've upped your sites
memory_limit and are still getting this error then it is not a Pretty Links issue. You may have too many plugins or an inefficient theme installed.