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://ww.wp.xz.cn/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?
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 4 years, 12 months ago by
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?
@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 4 years, 12 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.
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.