• Resolved MacDoodle

    (@macdoodle)


    Critical error when updating from 1.14 to 2.0.2. This was the only plug-in being updated at the time. Dashboard inaccessible. WordPress critical error notification on screen. Site return to normal when reverting back to previous version.

    Error log message: PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 2621440 bytes) in /****/wp-content/plugins/tablepress/libraries/freemius/includes/class-freemius.php on line 23704

    Running WordPress version 6.1.1, PHP version 7.4.33. Memory limit for this site is 128 MB.

    • This topic was modified 1 year, 10 months ago by MacDoodle.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    It actually looks like the memory limit of 128 MB is not being applied. That 41943040 indicates that it’s actually (still?) the default of 42 MB.

    How are you increasing it to 128 MB? Are you setting the WP_MEMORY_LIMIT constant in the wp-config.php file?

    Can you maybe try updating to PHP 8.0 on the server? That should be happy with much less RAM.

    Note that while TablePress 2.0.2 might be using more PHP memory than version 1.14, it’s not by itself responsible for the limit being reached. If, as an example, the sum of the PHP memory used by all other plugins is already at 40 MB, an increase of the PHP memory used by TablePress from 1 MB to 2 MB would result in the limit being reached. It just so happens that TablePress is loaded much later than many other plugins, as its name starts with a “T”, and plugins are loaded in alphabetical order, and therefore this error message just happens while the TablePress code is being run.

    So, long story short: You will need to make sure that the PHP limit is properly increased on the server and that maybe a newer version of PHP is used.

    Best wishes,
    Tobias

    Thread Starter MacDoodle

    (@macdoodle)

    The default memory in this shared environment was 64MB. The max allowable by the system is 256MB. I was adjusting the memory via the site’s cPanel php ini editor to 128MB. Trying to up it with the WP_MEMORY_LIMIT won’t exceed those limits.

    However, now it looks like it was reset to 32MB possibly during a server software update middle of last year and I never noticed it & didn’t think to check it because it should be a constant. That site isn’t very active & doesn’t run any “heavy” plugins, nothing caught my attention before this.

    Regardless, the memory has been bumped up to the max allowed, PHP switched to vs 8.1, every thing seems to be working well now. Thank you for pointing me in the right direction!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Critical Error w/ 2.x update’ is closed to new replies.