Fixing \”Allowed Memory Size\” Error

If you see an error 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/src/Redirect/Engine.php on line 230

Then your PHP memory_limit is being exhausted. You have the following options to resolve this:

  1. Disable any unused plugins, which take up space.
  2. Ask your web host to increase your PHP memory_limit to 256M.
  3. Change your tracking method in Pretty Links Options from Extended to Normal.
  4. Clear old hits with the Pretty Links Trim Hits feature, under Dashboard > Pretty Links > Options. Trimming old hits can free resources.

Important: If you switch off Extended tracking, you lose the ability to run conversion reports and split test reports.

Any one of these may fix the error, but options one and two may still require asking your web host to increase your PHP memory_limit to 256M.

If you’ve increased your site’s memory_limit and still get this error, it is not a Pretty Links issue. You may have too many plugins or an inefficient theme installed.

Table of Contents

    Docs Didn’t Solve It?

    Send us a message and someone from our Support Team will be in touch shortly.