• Resolved polyfade

    (@polyfade)


    I’m getting this error which is prohibiting any events being displayed. My server is running php v7.4, mysql v5.6.x on WP 5.7.2, amr event lists with ical files 6.3.

    
    Notice: Undefined index: QUERY_STRING in /mysite/path/wp-content/plugins/amr-ical-events-list/includes/amr-ical-events-list-main.php on line 1874
    
    Fatal error: Uncaught Error: Call to undefined function gregoriantojd() in /mysite/path/wp-content/plugins/amr-ical-events-list/includes/amr-ical-events-list-main.php:476 Stack trace: #0 /mysite/path/wp-content/plugins/amr-ical-events-list/includes/amr-ical-events-list-main.php(514): amr_daysDifference(Object(DateTime), Object(DateTime)) #1 /mysite/path/wp-content/plugins/amr-ical-events-list/includes/amr-ical-events-list-main.php(652): amr_calc_duration(Object(DateTime), Object(DateTime)) #2 /mysite/path/wp-content/plugins/amr-ical-events-list/includes/amr-ical-events-list-main.php(1455): amr_derive_dates(Array) #3 /mysite/path/wp-content/plugins/amr-ical-events-list/includes/amr-ical-events-list-main.php(1702): amr_process_icalevents(Array, in /mysite/path/wp-content/plugins/amr-ical-events-list/includes/amr-ical-events-list-main.php on line 476
    
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author anmari

    (@anmari)

    gregoriantojd is a php function, part of the calendar functions extension. It is being used to calculate daysdifference
    https://www.php.net/manual/en/function.gregoriantojd.php

    Calendar functions are needed. You may want to ask your host to look into why they are not there. last time this came up the original person said it just ‘magically’ resolved on their system. https://www.ads-software.com/support/topic/unable-to-load-calendar/#post-11703730

    According to this site, that function should be in core in php 7 https://www.tutorialrepublic.com/php-reference/php-calendar-functions.php
    HOWEVER the php manual https://www.php.net/manual/en/calendar.installation.php says compile PHP with –enable-calendar.
    Perhaps your host has not?

    Thread Starter polyfade

    (@polyfade)

    Hey @anmari, thanks so much for your response. Yep, I’m working on behalf of someone else’s hosting provider, and this has been yet another obstacle. They’re running PHP v7.4, to which I thought, “This hosting might not be so bad.”

    • This reply was modified 3 years, 5 months ago by polyfade.
    Thread Starter polyfade

    (@polyfade)

    @anmari other than relying on the host’s word stating that gregoriantojd was compiled into their PHP version. Is there any way to find out for sure?

    Running phpinfo() on a page to list server details doesn’t tell me much regarding it.

    I tested your plugin running locally and remotely on different servers running PHPv4, and there are no issues. This host is awful.

    Plugin Author anmari

    (@anmari)

    My php info says in the Calender section:

    Calendar support enabled

    Does yours?

    Thread Starter polyfade

    (@polyfade)

    @anmari thanks again. Here I was looking for some cryptic PHP function, but it’s that obvious. Yes, it seems the Calendar support was not rolled into their PHP build.

    I can clearly see it on my personal, local and remote sites/servers.

    Hmm, I wonder why the PHP team decided to make this optional? They include it automatically on the Windows version of PHP according to the docs.

    • This reply was modified 3 years, 5 months ago by polyfade.
    Plugin Author anmari

    (@anmari)

    good luck informing the host that actually no it was not compiled. If you looking for a new host, we’ve been using icdsoft for well over a decade.

    Thread Starter polyfade

    (@polyfade)

    Yes, this will mostly fall on deaf ears.

    Another thing to add to my growing laundry list against them.

    – Still using http/1.1 protocol, not even http/2; forget about http/3
    – No Imagick support. (Now required by WordPress). The GD Images module is old and I don’t think there’s a way to properly transform transparent pngs to webp.
    – No ability to enable other PHP modules.
    – No database access other than PHPMyAdmin.
    – Hard query limit per hour. Then, the site goes dark.
    – Extremely antiquated CPanel.
    – No SSH support.
    – Host uses antiquated HDD instead of SSD storage.
    – No PHP calendar support.

    Thanks for the hosting recommendation. I’ve used shared hosting like FastComet for clients sites for ~8 years. I’m pretty satisfied (but not married to them) because I know they check against all the pain points above.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Query String Error’ is closed to new replies.