close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PHP Warning: Attempt to read property "connect_error" on null

Thread began 6/05/2023 11:48 pm by James | Last modified 11/22/2023 12:52 am by anonymous | 1947 views | 3 replies |

James

PHP Warning: Attempt to read property "connect_error" on null

I just switched to a new server and I am able to view the tables and use the server behaviors but once I try and go into the query builder it gives me errors and i can not use it.
I was able to check the error log and this is what is in the log

[06-Jun-2023 06:03:46 UTC] PHP Warning: Attempt to read property "connect_error" on null in /home1/bemsltpmicro/src.bems.ltpmicro.com/_mmServerScripts/mysql.php on line 382
[06-Jun-2023 06:03:46 UTC] PHP Fatal error: Uncaught TypeError: mysqli_errno(): Argument #1 ($mysql) must be of type mysqli, null given in /home1/bemsltpmicro/src.bems.ltpmicro.com/_mmServerScripts/mysql.php:386
Stack trace:
#0 /home1/bemsltpmicro/src.bems.ltpmicro.com/_mmServerScripts/mysql.php(386): mysqli_errno(NULL)
#1 /home1/bemsltpmicro/src.bems.ltpmicro.com/_mmServerScripts/mysql.php(116): MySqlConnection->HandleException()
#2 /home1/bemsltpmicro/src.bems.ltpmicro.com/_mmServerScripts/MMHTTPDB.php(123): MySqlConnection->TestOpen()
#3 {main}
thrown in /home1/bemsltpmicro/src.bems.ltpmicro.com/_mmServerScripts/mysql.php on line 386

Sign in to reply to this post

Ray BorduinWebAssist

That is usually an issue with your Dreamwever server settings. Can you send a screenshot of your testing server configuration? or better yet privately attach a copy of your site definition and i can reproduce and debug the problem directly.

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

James

I figured it out!
It seems when it would try and makethe connection.the files inside the _mmserver folder would get deleted and replaced. But it would never replace the MMHTTPDB.php file after everything was done. So I changed the permissions on that file and none of the files get deleted and it works

Ansd I changed the settings on the query dialog box to large and all the tables show up

Sign in to reply to this post

anonymous

As you mention you have switched to a new server and now you getting error message this happening due to change in PHP version. Now you have to update code according to latest PHP version or you need to revert older PHP version as was in previous server.

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