Tuesday, 25 August 2020
  2 Replies
  750 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);
4 years ago
·
#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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

4 years ago
·
#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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

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.
  • 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.