• Resolved Thomas

    (@enungman)


    I suddenly got an error when saving an existing table (i just made one small edit in it)..
    Saving failed: AJAX call failed: parsererror - SyntaxError: JSON.parse: unexpected character. Try again while holding down the “Shift” key.

    When doing that (holding shift) i get..
    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 30720 bytes) in /public_html/wp-admin/includes/template.php on line 549

    Any ideas on how to fix this?!

    http://ww.wp.xz.cn/extend/plugins/tablepress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Thomas,

    thanks for your post, and sorry for the trouble.

    My assumption here is that, due to the number of plugins and the probable high amount and big size of tables on your site, the PHP memory limit is reached. This is also indicated by that error message that you get.

    The best fix going forward might be to increase the memory limit, by increasing the value of the WP_MEMORY_LIMIT constant to something like 256M, with the help of http://codex.ww.wp.xz.cn/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    Regards,
    Tobias

    Thread Starter Thomas

    (@enungman)

    Well, the table is 885 rows and 7 columns, so yeah.. quite big 🙂
    The PHP-memory was my first obvious thought too but since i hadn’t done any other changes on the site since my last table-edit (and i just changed one value today) i wouldn’t really believe that..

    But yes again.. i deactivated one other plugin and now i’m ok. Must be sitting just on the PHP-limit here 😛
    Thank you for fast respons to this!

    Regards,
    Thomas

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Thomas,

    yes, your server is probably operating close to the limit, and it was this small change that pushed it over the limit.
    Good to hear that deactivating a plugin fixed it. In the long shot, you should also consider increasing the limit as mentioned above.

    Best wishes,
    Tobias

    Thread Starter Thomas

    (@enungman)

    Can’t do that..
    My webhost won’t allow me to go above 64MB. I tried the wp-config solution but they keep limiting it down.
    Guess my table can’t be much bigger at the moment without disabling more plugins.

    // Thomas

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Thomas,

    ah, that’s unfortunate 🙁 I hate webhosts who are that restrictive…
    Yes, then that means that you’ll have to be careful about more large tables and more other plugins.
    (I’m of course trying to keep the memory consumption low in TablePress, but it won’t work with memory, obviously…)

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Saving failed: AJAX call failed’ is closed to new replies.