All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Error when parsing the calendar tag

Michel 17 Mar 2018 15:03 question, complete

Hi,

I have this error below, can anyone help me please?

Best,
M

A PHP Error was encountered
Severity: Notice

Message: Array to string conversion

Filename: low_events/mod.low_events.php

Line Number: 772

A PHP Error was encountered
Severity: Notice

Message: Undefined variable: Array

Filename: low_events/mod.low_events.php

Line Number: 772

Fatal error: Uncaught Error: Call to a member function ee_format() on null in /home/bsbb6230/public_html/system/expressionengine/third_party/low_events/mod.low_events.php:772 Stack trace: #0 /home/bsbb6230/public_html/system/expressionengine/libraries/Template.php(1653): Low_events->calendar() #1 /home/bsbb6230/public_html/system/expressionengine/libraries/Template.php(1248): EE_Template->process_tags() #2 /home/bsbb6230/public_html/system/expressionengine/libraries/Template.php(523): EE_Template->tags() #3 /home/bsbb6230/public_html/system/expressionengine/libraries/Template.php(226): EE_Template->parse('{!-- ra:0000000...', false, '1', false) #4 /home/bsbb6230/public_html/system/expressionengine/libraries/Template.php(164): EE_Template->fetch_and_parse('', '', false) #5 /home/bsbb6230/public_html/system/expressionengine/libraries/Core.php(719): EE_Template->run_template_engine('', '') #6 /home/bsbb6230/public_html/system/expressionengine/controllers/ee.php(68): EE_Core->generate_page() #7 /home/bsbb6230/public_html/syst in /home/bsbb6230/public_html/system/expressionengine/third_party/low_events/mod.low_events.php on line 772

Replies

  1. Low 17 Mar 2018 15:19

    What version of PHP, EE and Low Events are you running? Also, what's the template that's causing the error? You can use http://pastie.org/ or http://pastebin.com/ for large chunks of code.

  2. Michel 17 Mar 2018 15:23

    Hi Low,

    thx for helping!

    PHP: 5.6.34
    EE: 2.11.2
    Events: 1.5.1

    <!DOCTYPE html SYSTEM>

    Kalender
    {embed="includes/_css"}

    <!-- Main Wrap -->

    {embed="includes/_header"}
    <!-- Page Content, class footer-fixed if footer is fixed -->

    <!-- Slider -->




    • Kalender Cursussen




    <!-- END Slider -->

    {exp:low_events:calendar channel="cursussen" date="{segment_2}"}


    {this_month format="%F %Y"}


    {weekdays}{weekday_1}{/weekdays}

    {weeks}

    {days}

    {if events_on_day}
    {day_number}
    {if:else}
    {day_number}
    {/if}

    {/days}

    {/weeks}

    {/exp:low_events:calendar}

    {embed="includes/_footer"}

  3. Low 17 Mar 2018 15:36

    Might be related to a fix in a newer (non EE2-compatible) version. Open up mod.low_events.php and look up line 772, which reads:

    $month = $$match[1]->ee_format($format, $lang);


    Change that to

    $month = ${$match[1]}->ee_format($format, $lang);


    and see if the problem persists.

  4. Michel 17 Mar 2018 15:43

    Yes, great, that fixes the erro, thx!

    Michel