By mconverti on Thursday, 05 December 2019
Replies 6
Likes 0
Views 645
Votes 0
Hello! After upgrading to Joomla 3.9.13 and Jevents to 3.4.50 when I want to see the Month View, I get the following error:

[Thu Dec 05 13:04:06.479369 2019] [:error] [pid 15004] [client 190.124.1.21:63482] PHP Fatal error: Can't use method return value in write context in /var/www/html/intranet/components/com_jevents/views/default/helpers/defaultloadedfromtemplate.php on line 1612

Any ideas on what the problem could be?

Best regards!

Martin
Hello Martin,

Can you provide your JEvents Support Information from the backend please? That's an interesting error message for that version of JEvents.

Many thanks
Tony
·
Friday, 06 December 2019 09:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello! I send you the information


PHP Version : 5.4.16
MySQL Version : 5.7.20
Server Information : Linux srv-web01.tcba.local 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Jan 4 01:06:37 UTC 2018 x86_64
Fix jQuery? : Yes
Load JEvents Bootstrap CSS? : Yes
Max Input Vars ? : 1000
Club code set? : No
User Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
Joomla : 3.9.13
component_com_jevents : 3.4.50
component_com_jce : 2.6.9
module_mod_jevents_cal : 3.4.50
module_mod_jevents_custom : 3.4.50
module_mod_jevents_filter : 3.4.50
module_mod_jevents_latest : 3.4.50
module_mod_jevents_legend : 3.4.50
module_mod_jevents_switchview : 3.4.50
plugin_content_jevents : 3.4.50
plugin_finder_jevents : 3.4.50 (not enabled)
plugin_installer_jeventsinstaller : 3.4.50
plugin_search_eventsearch : 3.4.50 (not enabled)
plugin_system_gwejson : 3.4.50
·
Friday, 06 December 2019 13:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Ahh php 5.4, that's going back some and likely the issue. I'll try to re-work it back. In the meantime as a fix can you try to update php to 7.0 or ideally 7.2. This will have a drastic performance improvement too on your site.

Many thanks
Tony
·
Tuesday, 10 December 2019 05:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Please see:
https://github.com/JEvents/JEvents/pull/460/files

Last file:
component/site/views/default/helpers/defaultloadedfromtemplate.php

Should be changed to match the green version. Location on your site would be:

/components/com_jevents/views/default/helpers/defaultloadedfromtemplate.php

Many thanks
Tony
·
Tuesday, 10 December 2019 09:40
·
0 Likes
·
0 Votes
·
0 Comments
·
It worked perfectly.

Thanks for your time!

Best regards
·
Friday, 13 December 2019 12:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Great to hear!
·
Friday, 13 December 2019 13:38
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post