php 5.6 (waiting for IT person to upgrade to 7.3). WP 5.5
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
(@webnus)
Hi @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
Best Regards
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 5 years, 8 months ago by
chrism018.
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
(@webnus)
Hi @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/
In case the issue persists, just let us know.
Best Regards,
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.
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
(@webnus)
Hi @chrism018,
Thanks for reaching out,
I have forwarded it to the developer team to be checked.
Best Regards
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, 6 months ago by
Quebro.