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


Cannot redeclare class WA_MySQLi_RS

Thread began 2/09/2020 2:49 am by georgina_barrett_187762 | Last modified 2/10/2020 8:19 am by Ray Borduin | 88 views | 1 replies |


Cannot redeclare class WA_MySQLi_RS

I have having some strange issue on one of my new siites. I can add a recordset ok but then if I add another recordset on the same page I get this error Fatal error: Cannot redeclare class WA_MySQLi_RS in /home/ ........ on line 3.
Ittdoesn't matter that recordsets they are - or what tables I try and pull data from. It works with one recordset but not with 2

Additionally I am getting an error on an update page
Fatal error: Call to undefined method WA_MySQLi_RS::Prepare() in /home/. on line 480

I cannot work out why. They are both very basic scripts.

I have attached the 2 pages

Sign in to reply to this post

Ray BorduinWebAssist

Did you change your site root? It looks like you have:

<?php require_once('../../webassist/mysqli/rsobj.php'); ?>

require_once('../webassist/mysqli/rsobj.php'); ?>

My guess is an updated site root caused the reference to be repeated. You only need one of those (the one that is in the root of the site)

The Prepare() error is probably a bad connection. The details page uses a connection in the folder:
<?php require_once('../../Connections/funnel.php'); ?>

but the update page uses:
<?php require_once('../Connections/funnel.php'); ?>

My guess is that the connection information is different (wrong) in the update page version.

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

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





Ease of use


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