Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View Privacy Policy

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: warning array

warning array 4 years 7 months ago #2648

  • ooya
  • ooya's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Hi,
I am just CP beginner.
I upgraded CP to the latest version in a developement site (made with Joomla 3.8.3 )
with PHP 5.6 but I receive this warning in frontend page:

Warning: in_array() expects parameter 2 to be array, boolean given in
/home/hira/www/mysite/modules/mod_cpsearch/helper.php on line 213

Where should I check this?

thanks.
ooya
The administrator has disabled public write access.

warning array 4 years 7 months ago #2649

  • andrea_4g
  • andrea_4g's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1122
  • Thank you received: 163
Hi,
you need to edit the Custom Properties Search module (or modules), and save it.

That should fix it.

== longer explanation ==
Some parameters (i.e. the one that lists categories) in Custom Properties modules have changed over time to remain compatible with the latest Joomla releases.
If you upgraded CP, you still have those parameters stored in the DB in the old format.
As soon as you edit and save the CP Search (or other CP modules) those parameters will be stored in the new format and the error will disappear.
Last Edit: 4 years 7 months ago by andrea_4g. Reason: added longer explanation
The administrator has disabled public write access.

warning array 4 years 7 months ago #2650

  • ooya
  • ooya's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Thank you for your suggestion and pointing out.

I entered the CP search module and just tried to "save", but the warning message does not disappear.
What do you do with your meaning of "edit"? Is it to rewrite parameter values?

Or, once uninstalling all CPs, is it effective to install new CP again?

thanks

ooya
The administrator has disabled public write access.

warning array 4 years 7 months ago #2651

  • andrea_4g
  • andrea_4g's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1122
  • Thank you received: 163
I strongly advise you against uninstalling Custom Properties, because in doing so you lose all previously created CP tags and the associations with articles.

What I meant is:

- Enter a CP Search Module to edit its parameters
- Inspect those under the tab 'Search Scope Restriction', because they're the ones likely causing the problem.
- Adjust those parameters if required
- Save and Close

== Note ==
The same incompatiblity problem could also effect:
- Custom Properties Tags Cloud module
- Custom Properties Menu module
and
- Custom Properties Layout *menu items*

The procedure's always the same: edit-> revise params -> save
The administrator has disabled public write access.

warning array 4 years 7 months ago #2652

  • ooya
  • ooya's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
thanks your advises.

I first recognized the tab 'Search Scope Restriction'.
I think that this was never before.
Well, here is the setting below.
---
Bind to content element: Not installed
Bind to category (es): blanc (Search all categories)
Category selector: No
Sort categories alphabetically: No
---
'Bind to content element' can not be selected, but does something need to be installed?
I specified a category in 'Bind to category (es) in the test, but the warning message has not changed.
I think that this specification is good for other parameters.

thanks
ooya
The administrator has disabled public write access.

warning array 4 years 7 months ago #2653

  • andrea_4g
  • andrea_4g's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1122
  • Thank you received: 163
'Bind to content element' can not be selected, but does something need to be installed?

Here you can find a more detailed explanation about that:
www.solidsystem.it/forum/custom-properti...-installed.html#2619

Also, I contacted you by email to ask for more info.
Last Edit: 4 years 7 months ago by andrea_4g.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.057 seconds