• Resolved mattce

    (@mattce)


    Hi,

    I’m using a shortcode for listing around 130 posts on my frontpage in a comparison with some meta-data. To improve the performance, I was trying to save this data in a transient, so that the query will not be executed each time.

    In this comparison each post has also an affiliate-link masked with your plugin.

    If I’m loading the page for the first time, it’s working fine, but reloading it (after the first time he should use the transient instead), it’s broken because auf memory exhausting:

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 521153 bytes) in xxxxx/wp-content/plugins/pretty-link/pro/app/controllers/PlpKeywordsController.php on line 255

    After deactivating the pretty link plugin it’s working fine, so the problem seems to be based in interaction with this plugin.

    I was also trying to raise the memory limit via wp-config, but this didn’t seem to fix anything.

    Is the plugin not able to deal with such big transients or is there an option I need to deactivate, that it will work properly?

    Thanks a lot!

    • This topic was modified 7 years, 9 months ago by mattce.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author cartpauj

    (@cartpauj)

    Try setting your tracking method in Pretty Link Options to “Normal” instead of “Extended”. Let me know if that helps.

    You can also contact your webhost and see if they’d increase your PHP memory_limit to 384M or 512M – it looks like something on that page is using a LOT of PHP memory. Pretty Link is trying to add only about another 0.5M (1/2 Megabyte) of memory according to the error.

    Thread Starter mattce

    (@mattce)

    Thanks for your quick response.

    Unfortunately, none of your suggestions worked yet.

    – I’ve increased php memory limit up to 1024M, but the error still occured (I’m developing on a private server, so there should be plenty of resources available).
    – I’ve also deactivated every plugin except pretty link – with the same result.
    – Tracking style is set on “normal” already, I’ve also tried “simple click count”, but also with no result.

    Furthermore I’ve tried some different values for posts_per_page within the query, 126 seems the maximum value, it can handle. But page-loading-time takes up to 9 seconds then, after deactivating the pretty link plugin it only takes 0,6 secs. So, I don’t know why, but it seems that there is some correlation between this issue and the plugin. The transient is ~ 450kb data, because it’s storing the whole content of the queried posts. Is pretty link trying to filter it anyway and its simple too big to handle? Or any further ideas? Thanks a lot!

    Plugin Author cartpauj

    (@cartpauj)

    If the first part of the error doesn’t change (Allowed memory size of 268435456) then the memory_limit increase didn’t work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: Allowed memory size exhausted while using transients’ is closed to new replies.