close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Let's start a discussion about PHP versions

Thread begun 10/12/2023 3:44 pm by Patrice | Last modified 11/11/2024 8:36 am by Daniel | 4993 views | 90 replies |

PatriceWebAssist

Let's start a discussion about PHP versions

Many of us have been encountering php 8 issues.

I have had my own questions with Ray, albeit not 8 but upgrading to at least 7 with this thread:
https://webassist.com/forums/posts.php?id=46828

For those of you have have upgraded from pre-7 to 8, please share your insights as to how to get WA extensions compatible, if there are issues, how to solve etc.

All insights much appreciated.

Sign in to reply to this post

Mags

I'm in the process of upgrading all the sites I manage from PHP7.4 to 8.2 and got a series of PHP errors, but having now gone through the process on several different sites these are the steps I took to fix the errors:

Check your Connections file - if you have the charset set to utf8 or utf-8, change it to UTF8 (uppercase).

Make sure you have the latest version Data Bridge installed, and replace the following folders/files if they were generated using an older version:

- webassist/mysqli folder containing authentication.php, queryobj.php & rsobj.php

- If you use WA Email, also replace the following in the webassist/email folder:

- WA_Email.php
- phpmailer folder

- If you use form validations, replace the webassist/form_validations folder containing wavt_scripts_php.php and wavt_validatedform_php.php

I would STRONGLY advise that you make a copy of the existing files & folders before doing any updates, just in case you have to roll back for any reason. All the above updates can be done before you upgrade to php8.2 - the upgrade should be the final step.

There could be other updates required depending on which WA products you're using, but hopefully this will help some of you. I've attached copies of the files & folders mentioned above which were generated using the latest version of DataBridge.

Attached Files
email.zip
form_validations.zip
mysqli.zip
Sign in to reply to this post

PatriceWebAssist

This is such a great help! I appreciate your input.

Sign in to reply to this post

Jamie

thanks for this

I'm trying to upgrade a very old (on php 5.4 - dont judge!) site to run on 8 and thanks for the updated files above....am still having an issue (have updated the admin_cms/optimization.php and WA_CMS/WA_CMS.php as well, edited the connection files and ams till having an issue if anyone has any thoughts on what I need to do.

The error am getting is

Fatal error: Uncaught Error: Call to undefined function mysql_select_db() in /home/sites/11b/a/a418e89e1e/public_html/WA_Globals/WA_Globals.php:39 Stack trace: #0 /home/sites/11b/a/a418e89e1e/public_html/admin_cms/page_contents_results.php(18): require_once() #1 {main} thrown in /home/sites/11b/a/a418e89e1e/public_html/WA_Globals/WA_Globals.php on line 39



thanks in advance

Attached Files
WA_Globals.php
Sign in to reply to this post

Mags

Hi Jamie, have you updated the server behaviors? Once you've upgraded to a mySQLi connection you need to double-click on any WA server behaviors in the panel on all pages in the site that use them and then click OK, re-save the pages and re-upload any WA files that have been automatically updated. That should fix most issues although there may be some left over that still need attention.

Sign in to reply to this post

PatriceWebAssist

thank you MWilson for all your input.

to others on this list, please contribute as you have ideas/insights too

Your input doesn't need to be exact but your experience on what you have tried/failed/succeeded may help someone else.

Sign in to reply to this post

Jamie

thanks @MWilson - yes, all the server behaviours are now mysqli. Cant seem to find which area is causing this. Its basically the login management for the CMS - the rest of the site works fine!

Sign in to reply to this post

Mags

Looks like the issue is in the WA_Globals.php file - could you upload a copy and I can try comparing it to my working versions?

Sign in to reply to this post

Jamie

thanks @Mags - the file is in my post above

Sign in to reply to this post

Mags

I've done a quick comparison on a working installation on PHP8.2 and I notice in your file there's no inclusion of the rsobj.php file - I wonder if that's what the issue is?

In my file, I have it just after the Connection file:
<?php
require_once("../Connections/PowerCMSConnection.php");
?>
<?php
require_once("../webassist/mysqli/rsobj.php");
?>

My file hasn't been updated since 2019 though, so doesn't look like I had to change anything when I upgraded from php5 as it was after 2019. I've attached my file for reference, but you could maybe try adding the rsobj.php include to your file and see if that makes a difference?

Attached Files
WA_Globals.php
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...