Support » Plugin: WP Calendar » support for php ver 5.4

  • Resolved dsg257

    (@dsg257)


    can you update wp-calendar to support php 5.4
    my web host has updated to PHP 5.4 and I had to force a downgrade to 5.2 but this is a temp fix
    need update for 5.4 before there is no option but to use it as it breaks wp-calendar

    https://wordpress.org/plugins/wp-calendar/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, this seems to be connected with

    htmlspecialchars changed default value for encoding in php 5.4 from
    iso-8859-1 to utf-8

    and it now uses some kind of utf-8 quotes in the parameters.

    Simple quick fix is to use parameters without quotes
    {events_print;number=100;categories=24;dateto=now}
    instead
    {events_print;number="100";categories="24";dateto="now"}

    otherwise one needs to fix line 645 in file fsCalendar.php

    // Remove " "
    preg_match('/^\"(.*)\"$/s', $val, $matches);
    if (count($matches) > 0) {
          $val = $matches[1];
    }

    which fails with php >5.4 to remove the quotes.

    Thread Starter dsg257

    (@dsg257)

    thanks a lot that Helps me greatly and fixes my problem

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘support for php ver 5.4’ is closed to new replies.