• Hello – I keep getting the following error in my logs:

    PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in /var/www/wordpress/wp-content/plugins/amr-ical-events-list/includes/amr-rrule.php on line 96

    also here /amr-ical-events-list-main.php on line 0
    & here: /amr-ical-events-list-main.php(903) : runtime-created function on line 1
    & here: /amr-rrule.php on line 823

    512MB is a huge memory allocation for this to e exhausting – any idea what might be causing this?

    Thanks – James

    https://wordpress.org/plugins/amr-ical-events-list/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author anmari

    (@anmari)

    Hi very much depends on the calendar file you are trying to load. If there are lots of events? perhaps some ‘old’ recurring events – plugin has to parse all the events (and recur any rrecuring events) and hold them in memory initially in case there are adjustments records further in the file.

    There are some ‘debug’ features, add ?memdebug to your calendar url and it will list php mem at various stages.

    eg: http://test.icalevents.com/agenda/ics-tes/?memdebug
    gives:
    memory: 20.25 mb peak:20.25 mb Before Process ical url
    memory: 20.25 mb peak:20.25 mb Before parse ical url
    memory: 21 mb peak:21.25 mb Before process
    memory: 21 mb peak:21.25 mb Before constrain
    memory: 21 mb peak:21.25 mb Before listing
    memory: 21 mb peak:21.25 mb After generating listing

    If it is the calendar pics url parsing etc that needs the memory, then Open the ics file in notepad to see what’s in it.

    Alternatively could be that something else is pushing wp close to the limit and then the ics event handling is the ‘last straw’ that pushes it over.

    Plugin Author anmari

    (@anmari)

    Oh and if you post the public ics url you are using, I can drop it into my site and see what happens there.

    Plugin Author anmari

    (@anmari)

    also maybe have a look at your theme and other plugin support forums to see if they are having memory issues, especially if your site shows a high memory before the parsing of the ical url

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP fatal error reported – insane memory requirements’ is closed to new replies.