Title: Fatal error
Last modified: September 5, 2020

---

# Fatal error

 *  Resolved [chrism018](https://wordpress.org/support/users/chrism018/)
 * (@chrism018)
 * [6 years ago](https://wordpress.org/support/topic/fatal-error-3615/)
 * This plugin was working fine until I updated to WP 5.5. Now I get the following
   message:
 * Parse error: syntax error, unexpected ‘->’ (T_OBJECT_OPERATOR) in /home/weddingsteps/
   public_html/wp-content/plugins/modern-events-calendar-lite/app/libraries/render.
   php on line 1063. I tried deleting the folder from my plugins folder and reinstalling
   it, but I just get the same message. Now my calendar has disappeared as the plugin
   won’t run.
    When I view the line 1063, I don’t see anything that looks wrong.
 * Please Help!!
 * The calendar should appear on the page:
 * [https://www.weddingsteps.com/bridal-shows/](https://www.weddingsteps.com/bridal-shows/)
 * Thank you,
    Christian
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-3615%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Thread Starter [chrism018](https://wordpress.org/support/users/chrism018/)
 * (@chrism018)
 * [6 years ago](https://wordpress.org/support/topic/fatal-error-3615/#post-13366340)
 * php 5.6 (waiting for IT person to upgrade to 7.3). WP 5.5
 *  Thread Starter [chrism018](https://wordpress.org/support/users/chrism018/)
 * (@chrism018)
 * [6 years ago](https://wordpress.org/support/topic/fatal-error-3615/#post-13368697)
 * I tried disabling all other plugins, no success. I tried changing my php.ini 
   an have equal or exceeded the values in each field according to your specifications.
   My business is suffering enough from covid and now I have no calendar. Please
   help. Thank you.
 *  Plugin Contributor [webnus](https://wordpress.org/support/users/webnus/)
 * (@webnus)
 * [6 years ago](https://wordpress.org/support/topic/fatal-error-3615/#post-13369672)
 * Hi [@chrism018](https://wordpress.org/support/users/chrism018/),
 * Please update the PHP version to the latest version or using PHP version 7.3.
   x.
    Also this issue regarding “syntax error, unexpected ‘->’ (T_OBJECT_OPERATOR)”
   has been fixed in version 5.10.5.
 * [WordPress Requirements](https://wordpress.org/about/requirements/)
 * Best Regards
 *  Thread Starter [chrism018](https://wordpress.org/support/users/chrism018/)
 * (@chrism018)
 * [6 years ago](https://wordpress.org/support/topic/fatal-error-3615/#post-13371333)
 * This problem happened after updating to 5.10.5! It is not fixed. I tired rolling
   back WP with no success. Is there an older version of MEC I can try to restore
   my calendars?
    -  This reply was modified 6 years ago by [chrism018](https://wordpress.org/support/users/chrism018/).
 *  Thread Starter [chrism018](https://wordpress.org/support/users/chrism018/)
 * (@chrism018)
 * [6 years ago](https://wordpress.org/support/topic/fatal-error-3615/#post-13378190)
 * Solution: After studying the error:
 * Parse error: syntax error, unexpected ‘->’ (T_OBJECT_OPERATOR) in /home/weddingsteps/
   public_html/wp-content/plugins/modern-events-calendar-lite/app/libraries/render.
   php on line 1063
 * Using my ftp, I edited the render.php file line 1063
 * $event_period_days = ($this->main->date_diff($start_date[‘date’], $end_date[‘
   date’]))->days;
 * and removed the 2nd set of parenthesis:
 * $event_period_days = $this->main->date_diff($start_date[‘date’], $end_date[‘date’])-
   >days;
 * and it worked. My calendars are now back. Please let others know!!
 *  Plugin Contributor [webnus](https://wordpress.org/support/users/webnus/)
 * (@webnus)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/fatal-error-3615/#post-13385576)
 * Hi [@chrism018](https://wordpress.org/support/users/chrism018/),
 * Regarding the issue in this topic,
    We worked on MEC and we fixed it so we want
   you to kindly update MEC to its latest version (5.11.5) and then try again. MEC
   Changelog: [https://webnus.net/modern-events-calendar/change-log/](https://webnus.net/modern-events-calendar/change-log/)
   In case the issue persists, just let us know.
 * Best Regards,
 *  Thread Starter [chrism018](https://wordpress.org/support/users/chrism018/)
 * (@chrism018)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/fatal-error-3615/#post-13387544)
 * Well as I fixed the parsing problem in 5.10.5, it updated to 5.11.5 without a
   problem. If I loaded the render.php file that originally had the parse problem
   line of code at 1063 written as it originally was – $event_period_days = ($this-
   >main->date_diff($start_date[‘date’], $end_date[‘date’]))->days; – then trying
   to update again to 5.11.5 failed for the same line of code.
 *  Thread Starter [chrism018](https://wordpress.org/support/users/chrism018/)
 * (@chrism018)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/fatal-error-3615/#post-13387574)
 * I just downloaded mec lite (not into wordpress), and looked at the render.php
   code and sure enough line 1063 is still unchanged from 5.10.5 – $event_period_days
   = ($this->main->date_diff($start_date[‘date’], $end_date[‘date’]))->days; – notice
   the parenthesis before ($this …. and double parenthesis after [‘date’])). For
   this plugin to work for our site this line of code needed to be rewritten with
   single parenthesis like this:
 * $event_period_days = $this->main->date_diff($start_date[‘date’], $end_date[‘date’])-
   >days;
 * Christian
 *  Plugin Contributor [webnus](https://wordpress.org/support/users/webnus/)
 * (@webnus)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/fatal-error-3615/#post-13404759)
 * Hi [@chrism018](https://wordpress.org/support/users/chrism018/),
 * Thanks for reaching out,
 * I have forwarded it to the developer team to be checked.
 * Best Regards
 *  [Quebro](https://wordpress.org/support/users/quebro/)
 * (@quebro)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-3615/#post-13647321)
 * Unfortunately I am experiencing the same problem with your plugin, and I don’t
   know what to do 🙁
    I urgently need this plugin, both free and pro version. But
   I tried to activate the version Version 5.13.5 it gives me the following error:
 * Fatal error: Uncaught Error: Call to undefined function get_the_post_thumbnail_url()
   in /…/wp-content/plugins/modern-events-calendar-lite/app/libraries/render.php:
   599 Stack trace: #0 /…/wp-content/plugins/modern-events-calendar-lite/app/libraries/
   render.php(885): MEC_render->data(8725) #1 /…/wp-content/plugins/modern-events-
   calendar-lite/app/libraries/schedule.php(61): MEC_render->dates(8725, NULL, 50,‘
   2020-11-15’) #2 /…/wp-content/plugins/modern-events-calendar-lite/app/libraries/
   schedule.php(43): MEC_schedule->schedule(8725, ‘2020-11-15’, 50) #3 /…/wp-content/
   plugins/modern-events-calendar-lite/app/libraries/main.php(5172): MEC_schedule-
   >reschedule(8725, 50) #4 /…/public_htm in /…/wp-content/plugins/modern-events-
   calendar-lite/app/libraries/render.php on line 599
 * Is there anything you can do?
    I am Using PHP Version: 7.2.34 and MySQL Database
   Server Version: 5.7.23-23. THANK YOU SO MUCH!
    -  This reply was modified 5 years, 10 months ago by [Quebro](https://wordpress.org/support/users/quebro/).

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Fatal error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/modern-events-calendar-lite_e2f4ff.
   svg)
 * [Modern Events Calendar Lite](https://wordpress.org/plugins/modern-events-calendar-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/modern-events-calendar-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/modern-events-calendar-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/modern-events-calendar-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/modern-events-calendar-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/modern-events-calendar-lite/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * 10 replies
 * 3 participants
 * Last reply from: [Quebro](https://wordpress.org/support/users/quebro/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-3615/#post-13647321)
 * Status: resolved