• My isp recently upgraded PHP on my domain from 5.6 to 7.2. Everything worked EXCEPT the calendar. I don’t know if this is specific to the calendar, or a more general problem related to changes between the PHP versions. Has anyone else encountered this and/or can point me to a general guide on changes to apply to make this (or other code) PHP 7.2 compatible?

    (Meanwhile, I’ve downgraded this site back to 5.6 while looking into solutions, so it works for the moment. I just want to be prepared when I “pull the switch” again).

    Thanx, Ric

    • This topic was modified 4 years, 7 months ago by ricgoldman.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • To upgrade to PHP7.4 try commenting out the function at the bottom of widget-contributors.php in the inc folder

    function form () {
    _e(‘No options available.’, AEC_NAME);
    }

    same problem. calendar (previously running) fails with php7 with
    /var/log/apache2/xxx.com.error.log:
    [Wed Oct 07 16:54:39.383002 2020] [php7:warn] [pid 26716] [client xxx:20124] PHP Warning: Declaration of aec_contributor_list::form() should be compatible with WP_Widget::form($instance) in /home/xxx/www.xxx.com/htdocs/wp-content/plugins/ajax-event-calendar/inc/widget-contributors.php on line 64, referer: https://xxx.com/wp-admin/admin.php?page=ajax-event-calendar.php

    when commenting output function form() the error becomes:
    [Wed Oct 07 16:53:09.914898 2020] [access_compat:error] [pid 26675] [client xxx:::40820] AH01797: client denied by server configuration: /home/xxx/www.xxx.com/htdocs/xmlrpc.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Calendar can’t add event after PHP 5.6 to 7.2 upgrade’ is closed to new replies.