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

Warnings

Thread began 10/23/2021 2:39 pm by randyrie405335 | Last modified 10/26/2021 2:30 pm by Ray Borduin | 42 views | 7 replies |

randyrie405335

Warnings

While my external website pages work perfectly, my localhost gives me these warnings:

Warning: sizeof(): Parameter must be an array or an object that implements Countable in /Library/WebServer/Documents/Leathernecks/webassist/mysqli/authentication.php on line 274

Warning: Cannot modify header information - headers already sent by (output started at /Library/WebServer/Documents/Leathernecks/webassist/mysqli/authentication.php:274) in /Library/WebServer/Documents/Leathernecks/webassist/mysqli/authentication.php on line 445

What could be causing this and why?

Sign in to reply to this post

Ray BorduinWebAssist

The second error is caused by the first... so it is the first error that needs debugging.

It looks like it might be an issue with the connection. Maybe the live connection doesn't have the correct username, password, or database name?

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

randyrie405335

Warnings

I've reinstalled the Databridge extension, rewrote the page in Dreamweaver CS6, checked thw connection script and all seems correct but I'm still getting this error on my localhost (works fine on my public server):

Warning: sizeof(): Parameter must be an array or an object that implements Countable in /Library/WebServer/Documents/Leathernecks/webassist/mysqli/authentication.php on line 274

How do I fix this?

Sign in to reply to this post

Ray BorduinWebAssist

I'd have to debug it. This error occurs when viewing the page in the browser? I still think it is an issue with the connection information. It might be missing columns in your localhost database. Are you able to get data from a recordset using the same connection on your localhost?

Can you attach the version of the authentication.php page you are using so I can look at that line?

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

randyrie405335

Warnings

I just checked and the webpages all work perfectly on my iMac's localhost (running MoJave) - identical dB, Databridge version, and webpages. I copied everything over to my Macbook (running Catalina) but get the same Warning on my Macbook's localhost.

I'm REALLY confused... the ONLY difference between the two computers is their OS. Can this be a factor?

Sign in to reply to this post

randyrie405335

Per your latest email...

Attached Files
authentication.php
leatherneck.php
Sign in to reply to this post

Ray BorduinWebAssist

I see you have an older version of the authentication.php file. Maybe reinstall DataBridge so you have the latest version installed. I'll attach the latest version so you can try replacing it and see if that solves the problem.

Attached Files
authentication.php
Sign in to reply to this post
Did this help? Tips are appreciated...

randyrie405335

Warnings

This worked! Thanks, Ray for your help.

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