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

PHP Version 7+ with eCart

Thread began 11/07/2018 12:44 pm by Me | Last modified 11/20/2018 4:25 pm by Ray Borduin | 218 views | 3 replies |

Me

PHP Version 7+ with eCart

I am getting the following errors with ecart using PHP 7 or greater

[07-Nov-2018 17:42:39 Europe/London] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WA_eCart_Rule has a deprecated constructor in /home/hairheav/public_html/new/WA_eCart/WA_eCart_Definition_PHP.php on line 4
[07-Nov-2018 17:42:39 Europe/London] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WA_eCartDefinition has a deprecated constructor in /home/hairheav/public_html/new/WA_eCart/WA_eCart_Definition_PHP.php on line 19
[07-Nov-2018 17:42:39 Europe/London] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WA_eCartDisplayCSSLooper has a deprecated constructor in /home/hairheav/public_html/new/WA_eCart/WA_eCart_Definition_PHP.php on line 1000

Is there a resolve for this? I am using eCart 6.1.2

UPDATE: May I also ask. Is the latest mysqli version compatible with PHP7+. I ask because, it has come to light that there are memory errors - Out of Memory - when using the code on a server using PHP7+ BUT, if we roll the server back to PHP5.6 all works as expected.

Please advise.

Sign in to reply to this post

Ray BorduinWebAssist

If you edit your eCart object and click "ok" it should update it to the latest version and fix the warnings as long as you have the latest version installed. (make sure to upload the entire WA_eCart folder when you are done).

You probably have different settings in your php7 .htaccess file with a lower memory_limit. If you update it to increase the memory and match your 5.6 version then the error should go away. It is fully compatible with php7.

Sign in to reply to this post

Me

Seems I still have this problem when running php 7 +

[20-Nov-2018 17:56:19 Europe/London] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 1919906960 bytes) in /home/hairheaven/public_html/webassist/mysqli/rsobj.php on line 537

Interestingly, when running PHP5.6 (it works fine) memory limit is only set to 32m when we swtich to PHP 7 + we ramp the memory all the way to 2048 and still get this issue...which cause the site to break and not load properly OR load differently each time we hit the browser refresh...as in sometimes some parts will show and other will not,

Any ideas would be gratefully received...we really want to run in 7 not PHP5.6

regards
Andrew

Sign in to reply to this post

Ray BorduinWebAssist

If you send me ftp access and a url with steps to reproduce the error then I can debug it and try to find a solution.

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