Tuesday, 25 August 2020
  2 Replies
  1.1K Visits
0
Votes
Undo
After upgrading to JEvents 3.6.x I get php errors regarding the Custom Fields extension (v3.5.8).

http://gantry5.olregiowil.ch/plugins/jevents/jevcustomfields/jevcustomfields.php

// Do we apply menu filter or main custom fields filter
if (count($menuModuleFilters) || (in_array("customfield", $oldIndexedVisibleFilters))) {
$registry->set("jevents.menuModuleFilters",$menuModuleFilters);
Tuesday, 25 August 2020 08:24
·
#217657
Accepted Answer
0
Votes
Undo
We will be doing a new release of the custom fields addon next week - in the meantime change

Line 930 reads:


if (count($menuModuleFilters) || (in_array("customfield", $oldIndexedVisibleFilters)))


Change it to read

if (count($menuModuleFilters) || (is_array($oldIndexedVisibleFilters) && in_array("customfield", $oldIndexedVisibleFilters)))


line 985 reads

if (in_array("customfield", $oldIndexedVisibleFilters) && !$ignorefiltermodule && count($menuModuleFilters) > 0)


change it to read

if (is_array($oldIndexedVisibleFilters) && in_array("customfield", $oldIndexedVisibleFilters) && !$ignorefiltermodule && count($menuModuleFilters) > 0)


It should then stop the php notices
Tuesday, 25 August 2020 09:11
·
#217663
0
Votes
Undo
Hi, thanks a lot for your quick response. Works fine agagin :) I will purchase a new subscription as soon as you release the new custom field version.
Tuesday, 25 August 2020 08:24
·
#217657
Accepted Answer
0
Votes
Undo
We will be doing a new release of the custom fields addon next week - in the meantime change

Line 930 reads:


if (count($menuModuleFilters) || (in_array("customfield", $oldIndexedVisibleFilters)))


Change it to read

if (count($menuModuleFilters) || (is_array($oldIndexedVisibleFilters) && in_array("customfield", $oldIndexedVisibleFilters)))


line 985 reads

if (in_array("customfield", $oldIndexedVisibleFilters) && !$ignorefiltermodule && count($menuModuleFilters) > 0)


change it to read

if (is_array($oldIndexedVisibleFilters) && in_array("customfield", $oldIndexedVisibleFilters) && !$ignorefiltermodule && count($menuModuleFilters) > 0)


It should then stop the php notices
  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.