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

WA_AB_InsertParams has a deprecated constructor in /home/simonfra/public_html/mwcc/webassist/database_management/wa_appbuilder_php.php on line 120

Thread began 4/15/2021 3:33 pm by simon167250 | Last modified 4/16/2021 9:17 am by Ray Borduin | 33 views | 1 replies |

simon167250

WA_AB_InsertParams has a deprecated constructor in webassist/database_management/wa_appbuilder_php.php on line 120

Bit by bit, I've managed to convert an old ASP project into a MySQLi version using a combination of the MySQLi Server Behaviours and a converted multiple records insert/update function from Data Bridge v1.
All was fine on my XAMPP test server, but live it's giving me the warning from the topic title as well as one other:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WA_AB_InsertParams has a deprecated constructor in /home/simonfra/public_html/mwcc/webassist/database_management/wa_appbuilder_php.php on line 120

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WA_AB_WhereClause has a deprecated constructor in /home/simonfra/public_html/mwcc/webassist/database_management/wa_appbuilder_php.php on line 167

I appreciate I can suppress this, but would prefer to future-proof my many hours of conversion work as much as possible. Any chance you could advise how I can amend the include file to correct the deprecated section and whether my multiple records update/insert actually use these classes?

Many thanks in advance,
Simon

*** Update***
I've changed line 124 from:

function WA_AB_InsertParams($WA_tableValues = "", $WA_dbValues = "", $WA_setValues = "") {

to:

function __construct($WA_tableValues = "", $WA_dbValues = "", $WA_setValues = "") {

It seems to have worked - is this the correct workaround?

Many thanks once again,
Simon

Sign in to reply to this post

Ray BorduinWebAssist

Yes. That is the correct solution. The latest version should write the correct code when new pages are generated.

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