• Hi Anmari,

    Longtime no hit you up for support.

    Still loving your plugin, but debug keeps nagging me about a couple things, and I’m sure you probably have an easy answer for them.

    From the debug log:

    [30-Dec-2021 14:04:08 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 16777216 bytes) in /home/…/wilmingtonguitar.org/wp-content/plugins/amr-ical-events-list/includes/amr-rrule.php on line 56

    [30-Dec-2021 14:26:33 UTC] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/…/wilmingtonguitar.org/wp-content/plugins/amr-ical-events-list/includes/amr-rrule.php on line 446

    Memory limit is currently 512 mb. I’ve increased the memory a couple times and I’m not calling that many events. How much memory do you think it should take, and do you think there’s something else going on? I suspect I’m just hitting a wall with other things taking up memory, but thought I’d ask you first.

    Thanks,
    Matthew

    The page I need help with: [log in to see the link]

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

    (@anmari)

    This may help https://icalevents.com/5142-memory-problems-or-timeouts/. Seeing that your messages on happening in the ‘rrule’, it may be the effort in processing recurring events thats too great. Read the link, try tweak your parameters and clean up your google calendar. You’ve been a long term user, possibly your google calendar has a lot of old stuff in that has to be checked.

    Thread Starter mlavanish

    (@mlavanish)

    Thanks Anmari. I think you’re exactly right. I have a lot of old events, as well as a recurring event. I’ll see if I can clean up the calendar and see if that solves my problems.

    Cheers!

    Plugin Author anmari

    (@anmari)

    If you dom’t have that many current events, consider maybe just setting up a new calendar. Or creating your events in wordpress ??

    Thread Starter mlavanish

    (@mlavanish)

    Unfortunately we have many events, and hosting them in an external ics also allows others to contribute to the calendar without needing to monkey around with privileges in WordPress. Your plugin is great for that.

    I ended up creating a new calendar for the website, and keeping the old one as an archive. I’ll just migrate everything in the new calendar over to the archive at the end of the season, and keep things working more smoothly that way. ??

    I did run across an error: [03-Jan-2022 21:07:44 UTC] PHP Warning: checkdate() expects parameter 2 to be int, string given in /home/…/wp-content/plugins/amr-ical-events-list/includes/amr-ical-events-list-main.php on line 2055

    Not sure if it’s related. I’m guessing something new. Shall I start a new subject for that one?

    Plugin Author anmari

    (@anmari)

    It looks like that code is complaining about either a start or end limit, either from a shortcode parameter or if there weren’t any, then defaulted from ‘now’, but ONLY when the limit is not already a date object.
    On my test system with no parameters the defaulted ‘start’ is always a date object, so I am not getting that message.

    Do you have a start= or end= in the shortcode parameters?
    Is there a further message that says what the invalid date is?

    Thread Starter mlavanish

    (@mlavanish)

    Hmm. Not sure I understand that completely, but I’ll try to. ??

    Here is the shortcode I’m using, followed by the Defined maximums. I’m pulling the calendar in 3 places:

    [iCal https://calendar.google.com/calendar/ical/q9ir4qaa0nksnbunaru3vs9je4%40group.calendar.google.com/public/basic.ics listtype=1]

    Define maximums:
    events 6
    days 120
    cache 24
    eventscache 0.5

    [iCal https://calendar.google.com/calendar/ical/q9ir4qaa0nksnbunaru3vs9je4%40group.calendar.google.com/public/basic.ics listtype=4]

    Define maximums:
    events 20
    days 90
    cache 24

    [iCal https://calendar.google.com/calendar/ical/q9ir4qaa0nksnbunaru3vs9je4%40group.calendar.google.com/public/basic.ics listtype=5]

    Define maximums:
    events 100
    days 200
    cache 24
    eventscache 0.5

    I found some other errors that have cropped up, and I’m still getting memory errors even after creating a new calendar with only a dozen or so events listed (although there aren’t as many errors). Here’s what I’m seeing (without the repeats).

    [05-Jan-2022 07:38:59 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) in /home/…/wilmingtonguitar.org/wp-content/plugins/amr-ical-events-list/includes/amr-rrule.php on line 55

    [05-Jan-2022 11:22:13 UTC] PHP Warning: checkdate() expects parameter 2 to be int, string given in /home/…/wilmingtonguitar.org/wp-content/plugins/amr-ical-events-list/includes/amr-ical-events-list-main.php on line 2055

    [06-Jan-2022 07:33:56 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/…/wilmingtonguitar.org/wp-content/plugins/amr-ical-events-list/includes/amr-ical-events-list-main.php on line 1456

    Let me know if there’s any other info I can give you that might help.

    Also, what’s the best way to offer you some support for your help? I don’t see a donation button on your website, but I could purchase AMR Events if that’s best.

    Thanks again!

    Plugin Author anmari

    (@anmari)

    Re latest memory message https://www.google.com.au/search?q=134217728+bytes is only 134MB? Investigate the memory separately – there are several places where a memory limit could be being applied. Also the 4096 bytes it is trying to allocate is only 4Mb. My tests with your ics link and your larger parameters on my local site (fairly clean setup) show a peak memory of between 6 and 8Mb needed, so raising your memory limits in the right place may fix that (or find out what else is a memory hog).

    Re the count one. Don’t worry about that. It’s a debug line, shouldn’t reoccur.

    Re checkdate: very hard to debug as I can’t create the problem on my side. I’ve tried with your link & parameters, dropping my php version to various 7 versions, removing the timezone (some old systems still have GMT offset) etc. What I’ll have to do is add some more debugs in preceding code (they only show up if requested via url by admin) and see if we identify WHY your system does not have a date object at that point, and/or what it does have. I’ll push a new version up with that soon.

    Donate link (thanks!) https://www.paypal.com/donate/?hosted_button_id=CBMU66PJ88XKE

    Plugin Author anmari

    (@anmari)

    V6.6 uploaded, it has a bunch of debug statements around that code to try work out what is happening on your system. To make the debugs show one must be logged in as admin, and add ?debug to your calendar page URLs. Hopefully your theme will let them show well enough, the debugs are just echoed statements not formatted html. The page will look awful but only you see that.

    The info for the problem should be in the first few lines after the page heading.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘a couple chronic issues (probably my own)’ is closed to new replies.