WordPress All in one events calendar Warning: Call-time pass-by-reference has been deprecated in class-ai1ec-events-helper.php
I have All in one events calendar Version 1.2.4, I love this plugin and it may be the best events calendar plugin for Wordpress.
However, It did not work properly in my site.
The warnings I received when I create a new event and publish it.
On the wordpress admin:
all-in-one-event-calendar/app/helper/class-ai1ec-events-helper.php on line 851
Warning: Cannot modify header information – headers already sent by
(output started at /usr/local/pem/vhosts/113072/webspace/httpdocs/wp-
helper.php:851) in /usr/local/pem/vhosts/113072/webspace/httpdocs/wp-
includes/pluggable.php on line 866
My events page kept on showing a loader.
The following warning was on the Browser on every page of my site:
one-event-calendar/app/helper/class-ai1ec-events-helper.php on line 851
As of PHP 5.3.0 call-time pass-by-reference has been deprecated.
Open the file : Plugins/all-in-one-events-calendar/app/helper/class-ai1ec-events-helper.php in a editor.
Locate line 851
Change the line 851 in class-ai1ec-events-helper.php to:
it will start working again (note the ampersand is gone)