Welcome, Guest
Username: Password: Remember me

TOPIC: Warning: parameter must be array or object

Warning: parameter must be array or object 10 Feb 2019 12:08 #15651

  • vlemos
  • vlemos's Avatar
  • Offline
  • Elite Member
  • Posts: 276
  • Thank you received: 38
  • Karma: 20
Hello Admin, all the best for 2019:

I am getting the following message in my cook project:
Warning: count(): Parameter must be an array or an object that implements Countable in .../libraries/jdom/dom.php on line 384

Can you help?

Thanks
V
The administrator has disabled public write access.

Warning: parameter must be array or object 10 Feb 2019 22:45 #15654

  • Nicolas
  • Nicolas's Avatar
  • Offline
  • Senior Member
  • Posts: 72
  • Thank you received: 11
  • Karma: 5
Hello,

This is not an error but a warning.
which version of php are you using?
The administrator has disabled public write access.
The following user(s) said Thank You: vlemos

Warning: parameter must be array or object 12 Feb 2019 02:44 #15659

  • vlemos
  • vlemos's Avatar
  • Offline
  • Elite Member
  • Posts: 276
  • Thank you received: 38
  • Karma: 20
PHP 7.2.10 & Joomla! 3.8.13
The administrator has disabled public write access.

Warning: parameter must be array or object 12 Feb 2019 04:39 #15660

  • Nicolas
  • Nicolas's Avatar
  • Offline
  • Senior Member
  • Posts: 72
  • Thank you received: 11
  • Karma: 5
hello

the problem comes from joomla core. and a known problem of PHP 7.2 only

You have 3 solutions:
  1. change php version to 7.1.x
  2. set joomla error messages to "none" or "simple"
    • administrator/index.php?option=com_config
      TAB server -> error report = none (recommended)
  3. the third is not recommended. You have to modify the joomla core to find the error in Jdom
Last Edit: 12 Feb 2019 07:16 by Nicolas.
The administrator has disabled public write access.
The following user(s) said Thank You: admin, vlemos

Warning: parameter must be array or object 13 Feb 2019 13:29 #15661

  • vlemos
  • vlemos's Avatar
  • Offline
  • Elite Member
  • Posts: 276
  • Thank you received: 38
  • Karma: 20
Thanks Nicolas
K++
The administrator has disabled public write access.

Warning: parameter must be array or object 13 Feb 2019 13:44 #15662

  • vlemos
  • vlemos's Avatar
  • Offline
  • Elite Member
  • Posts: 276
  • Thank you received: 38
  • Karma: 20
BTW and Hello Admin: All the best for 2019.

I have much custom code in my jdom. But would like to see this and several other issues addressed directly in the builder. j-cook pro is a great tool, but it is currently fading and can become irrelevant if nothing is done to move it forward.
There are simple tasks which must be repeated for each and every type of field which can and should be applied across a given project. Something like Ajax enabled fields is a case in point. One should be able to click "apply to project" and move on to more important tasks. Also, most fields are of such a type that they are left justified, but cook has all fields centered by default. This one issue generates a large amount of work in a 10 table project.

This is yet another issue which can help if resolved.


The ability to change the linked fields would offer more flexibility to the code generation process

All in all, j-cook still has a great code-base.

Best regards
v
The administrator has disabled public write access.

Warning: parameter must be array or object 15 Feb 2019 12:55 #15663

  • Nicolas
  • Nicolas's Avatar
  • Offline
  • Senior Member
  • Posts: 72
  • Thank you received: 11
  • Karma: 5
Hi Vlemos

This is not the right place to request additional functionality.
If this is not part of the initial problem you must reopen a topic on the category : New functionalities
The administrator has disabled public write access.

Warning: parameter must be array or object 18 Feb 2019 21:57 #15665

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3698
  • Thank you received: 971
  • Karma: 140
Thanks Nicolas for your help and thank you vlemos for your feedback.
Keep posting your suggestions. All is beeing kept and archived for the next developements.
In proper topic is a best, for sure.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.068 seconds

Get Started