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

rsobj error

Thread began 5/31/2020 8:10 am by Patrice | Last modified 6/03/2020 5:41 pm by Ray Borduin | 50 views | 9 replies |

Patrice

rsobj error

I am getting the following error on a page using data assist

Fatal error: Call to undefined method WA_MySQLi_RS::query() in /home/fairvew2020/public_html/webassist/mysqli/rsobj.php on line 213
I put
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
at the top of the page to show errors.

Screen shot of database attached

Sign in to reply to this post

Ray BorduinWebAssist

Please attach the page that gives the error. This could be a bad connection, the connection code too low on the page, or a bad query in the recordset.

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

Patrice

thanks!

Attached Files
index.php
indexTEST2.php
Sign in to reply to this post

Ray BorduinWebAssist

You named a recordset the same as your connection. That is causing the next recordset to fail. You can't name a recordset with the name of your connection.

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

Patrice

Ah! Thank you.
I didn't name it though...left default
What am I not understanding here...

$Recordset1 = new WA_MySQLi_RS("Recordset1",$petitions,1)

I did name petitions the same as record set though...

$petitions = new WA_MySQLi_RS("petitions",$petitions,1);

but that part works on the index.php page (as opposed to index2.php test)

Sign in to reply to this post

Ray BorduinWebAssist

It will work... but the next recordset you create after it won't because the connection file is no longer a connection... it is now a recordset. The error happens in the recordset after the one named petitions.

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

Patrice

Got it. Thanks so much!

Sign in to reply to this post

Patrice

So I fixed and it is great. But I have another question. The replacement rsobj.php file that stops the code <br> etc, to show, keeps getting replaced on each instance of updating. I keep the file handy to update and can do it each time, so workable. But, I thought I had placed that particular replacement in the config file. Can you share where to put the global rsobj file in the config so I don't have to keep fixing it? Maybe I put it in the wrong spot.

Sign in to reply to this post

Ray BorduinWebAssist

The rsobj wouldn't get updated unless a new version is available. Probably I did some bug fixes and that is why the file got replaced.

To disable cross site scripting protection globally you can just update the property in the rsobj.php file. CrossSiteProtect is set to true and you can just update it to false.

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

Patrice

OK... I got it figured out. I had the replacement rsobj.php file in the en/config. But when I ran into issues a few days ago, I reinstalled DA and forgot to replace the rsobj.php file with the crosssiteprotect set to false. So, leaving myself this note for when I forget it again. :-)

Sign in to reply to this post
loading

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