Elxis CMS Forum

Support => General => Topic started by: bledi on July 26, 2016, 19:43:34

Title: Event calendar not working properly after upgrading to 4.5
Post by: bledi on July 26, 2016, 19:43:34
Event calendar not working properly after upgrading to 4.5
When i click the arrow of next month or a date with custom events the link goes to: www.domain.com/#

regards
Title: Re: Event calendar not working properly after upgrading to 4.5
Post by: datahell on July 26, 2016, 23:15:09
Elxis 4.5 uses the brand new jQuery v3. Although it also ads the migration plugin there might be problem with some extensions. Give us a link to your site to see the problem and propose you a solution.
Title: Re: Event calendar not working properly after upgrading to 4.5
Post by: bledi on July 26, 2016, 23:40:59
Ok  thanks, http://mtitravel.al
Title: Re: Event calendar not working properly after upgrading to 4.5
Post by: datahell on July 27, 2016, 22:42:19
I spent some time but didn't manage to find the problem. Needs extended check and this time which I haven't. Most probably the problem has to do with jQuery 3. Elxis 4.5 has also the old jQuery 1.11, switch to that version and I believe the problem will be solved.

Open this file: includes/libraries/elxis/document.class.php
go to lines 307-314 and change them to this:
public function addJQuery() {
   $jqpath = eFactory::getElxis()->secureBase().'/includes/js/jquery/';
   //$this->addLibrary('jquery', $jqpath.'jquery-3.0.0.min.js', '3.0.0');
   //$this->addLibrary('jquery-migrate', $jqpath.'jquery-migrate-1.4.1.min.js', '1.4.1');
   //If you face problems with jQuery 3 comment the 2 lines above and uncomment the 2 lines below
   $this->addLibrary('jquery', $jqpath.'jquery-1.11.1.min.js', '1.11.1');
   $this->addLibrary('jquery-migrate', $jqpath.'jquery-migrate-1.2.1.min.js', '1.2.1');
}
Title: Re: Event calendar not working properly after upgrading to 4.5
Post by: bledi on July 28, 2016, 10:43:45
OK, many thanks, now it works properly.

regards

Title: Re: Event calendar not working properly after upgrading to 4.5
Post by: datahell on July 31, 2016, 19:49:12
Since Elxis 4.5 rev1876 (July 31, 2016) there is a new configuration option that controls the jQuery version to use. Update to that version in order not to require to hack Elxis for this. You will be able to set jQuery to v1.x+Migrate from the administration console.  For more read this (https://forum.elxis.org/index.php?topic=8707.msg55740#msg55740).