WordPress.org

Ready to get started?Download WordPress

Forums

Availability Calendar
[resolved] Fatal error (2 posts)

  1. TONYBRIAN1979
    Member
    Posted 1 year ago #

    When I install this plugin on my website http://www.richardperryment I get the following error Fatal error: Call to undefined function cal_days_in_month() in /home/p/e/perryment/public_html/wp-content/plugins/availability/manage.php on line 44

    Any idea how to fix this?

    http://wordpress.org/extend/plugins/availability/

  2. Steve
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    This can be fixed by modifying the manage.php file and replacing:

    <?php $total = cal_days_in_month(CAL_GREGORIAN, $month, $this->year); ?>

    with:

    <?php $total = intval( date( 't', mktime( 0, 0, 0, $month, 1, $this->year ) ) ); ?>

    This will be modified when 0.2.3 is released.

    Thanks for notifying me of this issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.