close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in queryobj.php on line 651

Thread began 7/23/2020 6:29 pm by snakeeyes1314512 | Last modified 7/28/2020 12:43 pm by Ray Borduin | 23 views | 3 replies |

snakeeyes1314512

PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in queryobj.php on line 651

I checked my php error log and see this warning several times. Using PHP 7.3 on VPS

PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in queryobj.php on line 651.

This was shone once

PHP Warning: Invalid argument supplied for foreach() in file_manipulation/helperphp.php on line 381

Any thoughts?

Sign in to reply to this post

Ray BorduinWebAssist

I'm not sure what would cause the sizeof() error in the rsobj.php file. I've looked through the code and I really can't imagine why that variable would be set wrong... It must have something to do with the context. That code is only used in Multiple Insert or Multiple Update Server Behaviors. If you could reproduce it and sent the page that was causing it, then I might be able to tell... Are there any errors before it that might be related. Sometimes one error leads to another.

The foreach() error looks like it would be caused by a bad argument sent to the file upload function. Again, I'd probably have to see the page that caused it to debug it. Most likely code was out of order and you have since corrected it if it doesn't happen every time you do a file upload from the page that caused it.

Sign in to reply to this post
Did this help? Tips are appreciated...

snakeeyes1314512

Usually the error log tells me which page triggered the error. In this case it doesn't.
I will try to investigate this further to see which page is trigger the errors.
I will get back as soon as I can identify which page

Sign in to reply to this post

snakeeyes1314512

I regenerated the code and that fixed the issue. Warnings gone.
Must have been a typo or something in the code on my end.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...