Error LSM - Call to undefined function cal_days_in_month() - Forum | JoomShaper
Awaiting an answer Extensions

Error LSM - Call to undefined function cal_days_in_month()

Asked by Esteban 4 years ago Last activity 4 years ago

Hi, it is giving me an error when I try to access the LSM component from the control panel.
Call to undefined function cal_days_in_month ()

Could you help me?

tanks

3 replies

Ariba Staff

Hello

Thank you for your query. Have you tried turning on the php module 'calendar' ?

Esteban Asked this

No, but I can test, is that from the hosting?
How do I enable that?

Rafael Alvarez

Hi Esteban,

Is PHP function. Depends on your PHP version. We installed today on docker with Joomla4 and PHP8.

In our case we went into the docker container with "docker exec -it containername /bin/bash" and executed:

docker-php-ext-configure calendar && docker-php-ext-install calendar

Made it work, cause our docker PHP was not having calendar function enabled

If you have this hosted you will need to ask your hosting provider to add the calendar function to your PHP

Log in to reply.