By craigh123 on Friday, 04 November 2016
Replies 5
Likes 0
Views 1.5K
Votes 0
I have just updated from JEvents 3.4.23 to 3.4.24 and can no longer edit events from the front end. The edit button is missing. Actually not only the edit button, but also some of the event fields like who created the event and the date of the event.

<code>
PHP Version : 5.6.27
MySQL Version : 5.5.52-0+deb7u1-log
Server Information : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
Fix jQuery? : Yes
Load JEvents Bootstrap CSS? : Yes
Max Input Vars ? : 1000
Club code set? : Yes
User Agent : Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36
Joomla : 3.6.4
component_com_jevents : 3.4.24
component_com_jevpeople : 3.0.35
component_com_jce : 2.5.31
module_mod_jevents_cal : 3.4.24
module_mod_jevents_custom : 3.4.24
module_mod_jevents_filter : 3.4.24
module_mod_jevents_latest : 3.4.24
module_mod_jevents_legend : 3.4.24
module_mod_jevents_switchview : 3.4.24
plugin_content_jevents : 3.4.24
plugin_content_jevpeople : 3.0.35 (not enabled)
plugin_finder_jevents : 3.4.24 (not enabled)
plugin_installer_jeventsinstaller : 3.4.24 (not enabled)
plugin_jevents_jevpeople : 3.0.35
plugin_search_eventsearch : 3.4.24 (not enabled)
plugin_search_jevpeoplesearch : 3.0.35 (not enabled)
plugin_system_gwejson : 3.4.24
</code>
Just downloaded and installed 3.4.25, problem is fixed many thanks.
·
Saturday, 05 November 2016 13:58
·
0 Likes
·
0 Votes
·
0 Comments
·
I compared differences between 3.4.23 and 3.4.24. One of the files that differs is:


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


I found that if I changed line ~479 (case statement from:


  • case "{{CATEGORYLNK}}" || "{{CATEGORYLINK_RAW}}":


back to


  • case "{{CATEGORYLNK}}":


The event detailed displayed as expected and with the edit button. So I figured maybe the system does not like going through this switch case code twice, so I left it with the original case statement as it was but further down the file around line ~535, I changed:


$search[] = "{{CATEGORYLNK_RAW}}";
$replace[] = implode(", ", $catlinks_raw);

$search[] = "{{CATEGORYLNK}}";
$replace[] = implode(", ", $catlinks);


to


if($strippedmatch=="{{CATEGORYLNK_RAW}}")
{
$search[] = "{{CATEGORYLNK_RAW}}";
$replace[] = implode(", ", $catlinks_raw);
}
else
{
$search[] = "{{CATEGORYLNK}}";
$replace[] = implode(", ", $catlinks);
}


Website seems ok for me now. Please advise if this is a bug or something wrong with the way I am using jevents.
·
Saturday, 05 November 2016 11:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you re-download and install JEvents 3.2.24 again - there was a problem in the intial package which I fixed after a few minutes. I'd hoped no-one had downloaded the bad version before I corrected it.
·
Saturday, 05 November 2016 13:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Great, thanks for letting us know.
·
Monday, 07 November 2016 09:33
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post