close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Errors with PHP 8 from a site created with PHP version 7.4.33

Thread began 1/24/2023 6:30 am by sandy170299 | Last modified 1/28/2023 3:47 pm by Ray Borduin | 161 views | 2 replies |

sandy170299

Errors with PHP 8 from a site created with PHP version 7.1

I built a site in PHP using the MySQLi Server Behaviors, and on the server, it's using PHP version: 7.1. On my localhost, I am using PHP version: 8.1.12. The site is running perfectly on the server, but the client needs some edits done. When I downloaded the files from the server, and try to run the pages locally, I'm getting errors.

Fatal error: Uncaught ArgumentCountError: The number of variables must match the number of parameters in the prepared statement in C:\xampp\htdocs\numeroset\webassist\mysqli\rsobj.php:212 Stack trace: #0 C:\xampp\htdocs\numeroset\webassist\mysqli\rsobj.php(212): mysqli_stmt->bind_param('ii', '0', '1') #1 C:\xampp\htdocs\numeroset\home.php(32): WA_MySQLi_RS->execute() #2 {main} thrown in C:\xampp\htdocs\numeroset\webassist\mysqli\rsobj.php on line 212

Line 212 is: $bindParam = @call_user_func_array(array($query, "bind_param"),$this->paramRefs($rsParams));

Here is another error: Fatal error: Array and string offset access syntax with curly braces is no longer supported in C:\xampp\htdocs\numeroset\webassist\mysqli\rsobj.php on line 145

Line 145: $replace = $this->getSQLValue($params[$x+1],$paramTypes{$x},true);
$startStatement .= substr($endStatement,0,$pos) . $replace;
$endStatement = substr($endStatement, $pos + 1);
}
}
$debugStatement = $startStatement . $endStatement;

And another error: Fatal error: Array and string offset access syntax with curly braces is no longer supported in C:\xampp\htdocs\numeroset\webassist\mysqli\authentication.php on line 204

Is this because of the version differences? If so, how do I correct this? I do have the most recent version of the server behavior installed, FYI.

***UPDATE*** I downgraded my version of PHP to 7.1, like the live site is using, and I'm still getting the exact same errors. So, it doesn't appear that the version is the issue. Can you advise me on how to fix this, please?

Thank you.

Sign in to reply to this post

Ray BorduinWebAssist

If you reinstall the latest version of DataBridge and reapply the recordset server behavior, then it should create a new rsobj.php that won't have the curly braces error. It looks like you would also have to re-apply your user authentication server behavior to get a new version of the authentication.php file.

If you attach the file: numeroset\home.php then I can take a look and see if I can spot the parameter mismatch error.

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

sandy170299

Thanks, Ray. I've been able to work around things, and I did reinstall the extension. :)

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