close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Fatal error: Uncaught Error: Call to a member function fetch_array()

Thread begun 10/28/2018 10:12 am by Mike | Last modified 10/29/2018 10:09 am by Ray Borduin | 3639 views | 5 replies |

Mike

Fatal error: Uncaught Error: Call to a member function fetch_array()

Hello,
I've some pages on a website that show me a "500 Internal Server Error".
In the logs I found this:
--------
Fatal error: Uncaught Error: Call to a member function fetch_array() on boolean in /var/www/vhosts/website.com/httpdocs/webassist/mysqli/rsobj.php:226 Stack trace: #0 /var/www/vhosts/website.com/httpdocs/en/jobs/details_jobs.php(7): WA_MySQLi_RS->execute() #1 {main} thrown in /var/www/vhosts/website.com/httpdocs/webassist/mysqli/rsobj.php on line 226
--------

The strange things is that on localhost works good, only online have the error.
How can I fix it?
Is very urgent...
Thanks!

P.S. in private more details

Sign in to reply to this post

Ray BorduinWebAssist

There is a bug in some versions of MySQL that cause prepared statements to not work when using Views.

The solution is to turn off prepared statements globally in the rsobj.php file, or in the recordsets that use views individually.

I've turned off prepared statements in the rsobj.php file on your server for now, and that appears to have fixed the problem.

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

Mike

Thanks Ray, I saved locally your version of "rsobj.php".

Last thing, If I need to update in the future this file (I think you'll update it frequently), is necessary only to change "true" with "false" on the row 26?
$this->Prepared = false;

Sign in to reply to this post

Ray BorduinWebAssist

Yes. You can also change it in your recrordset code when each recordset is created instead of updating that file.

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

Mike

Ok, thanks.
FYI, I think that isn't MySQL database installed on my server but MariaDB.
The last version of Plesk (my control panel) on Linux Debian 9 has 10.1 pre-installed (my version is 10.1.26).
https://support.plesk.com/hc/en-us/articles/213403429-How-to-upgrade-MySQL-5-5-to-5-6-5-7-or-MariaDB-5-5-to-10-0-10-1-10-2-on-Linux

Sign in to reply to this post

Ray BorduinWebAssist

Here is the bug report that I think is related:

https://bugs.mysql.com/bug.php?id=42041

It says updating to mysql 5.7 or later would fix the problem.

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

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