WebSite X5Help Center

 
Dave D.
Dave D.
User

$ImMailer problem with x5engine.php Problem since uptdate to PHP Version 8.0  en

Author: Dave D.
Visited 1182, Followers 1, Shared 0  

Hello,

I have Version 2020.3.8.1 and my licence expired on 11/17/2020

I have been buying all the versions since Website X5 Home, Website X5 Evo and  Website X5 Pro - I do not want to buy a new version of Website X5... as I do not use it professionally and will not be working on any new websites.

As my provider upgraded the PHP Version to 8.0, 8.1 and 8.2 beta - the mail contact function is no longer working.

The X5engine.php gives out an error...

The Line that is causing a problem ist 5720:

                $conditions[] = (is_string($value) ? 'BINARY ' : '') . '`' . $column . '` ' . (is_null($value) ? 'IS' : is_array($value) ? 'IN' : '=') . ' ' . $this->_to_sql_value($value);

I noticed that in the "x5settings.php" file shows Email-Type still as "phpmailer" although it was changed to smtp...

/*

|-------------------------------

|             EMAIL SETTINGS

|-------------------------------

*/

$ImMailer->emailType = 'phpmailer';

$ImMailer->use_smtp = true;

$ImMailer->smtp_host = 'send.one.com';

What needs to be changed?

Or is there a new version of the x5engine.php that I can implement?

Many thanks in advance.

Dave Davison

Posted on the
25 ANSWERS - 1 USEFUL
Дмитрий Тулупов
Дмитрий Тулупов
User

Hi, Dave.

I also use a third-party hosting service like you, which has many versions of PHP. But no matter how much I try to change the PHP version to a newer one, errors and different inscriptions immediately appear on my site at the top of the site and mail stops working. For this reason, I have been using PHP version 7.4 for many years. If your provider has updated the PHP version to beta versions 8.0, 8.1 and 8.2, this does not mean that you cannot switch to another version. This happens and you need to choose a stable version of PHP for your site in manual mode. If you don't know how to do it on hosting, contact your provider's support service. Try to do this or wait for a response from other users of the community.

Sincerely,

Dmitriy.

Read more
Posted on the from Дмитрий Тулупов
Dave D.
Dave D.
User
Author

Thanks Dimitriy,

unfortunately my third-party host cannot revert back to PHP version 7.4... :(((

I really hope that Website X5 has an answer for their plugin...

Read more
Posted on the from Dave D.
Esahc ..
Esahc ..
Moderator

Dave, I suspect the only answer will be upgrade to v2022.3.4 or better, but I know others use one.com for hosting and I'd be surprised if all users were using the latest release.

I have marked your post for Incomedia's attention in case they can assist.

Read more
Posted on the from Esahc ..
Dave D.
Dave D.
User
Author

thank you Esahc ...

Read more
Posted on the from Dave D.
Andy W.
Andy W.
User

Hi Dave,

For what it’s worth; php7.4 can indeed be obtained. Therefore, if your provider says otherwise, then they are just being super lazy.

Personally, I would try to force their hand. I would say to them, my website app requires 7.4, and if you WILL NOT provide this to me then I will have to consider another hosting provider that will.

Good luck!

Read more
Posted on the from Andy W.
Incomedia
Stefano G.
Incomedia

Hello Dave

Unfortunately, the version you're using is not compatible with PHP 8.0, and for this reason, just like Esahc mentioned, we can only advise upgrading the software version. There are bound to be other issues apart from that which you will encounter in other files too if you're using PHP files which are not made for PHP 8.0 that will cause further problems.

So if you're interested in keeping the website correctly online as is, you can either upgrade the software or pick a different hosting which will let you use PHP 7.4 still

I remain available here

Stefano

Read more
Posted on the from Stefano G.
Dave D.
Dave D.
User
Author

Hi Stefano,

thanks for the reply - 

can you not suppy me with an updated x5engine.php that will work with newer PHP versions?

Also, why is $ImMailer still using phpmailer when I spcifically set it to smtp?

$ImMailer->emailType = 'phpmailer';

$ImMailer->use_smtp = true;

Read more
Posted on the from Dave D.
Andy W.
Andy W.
User

2 cents:

I believe SMTP is a component of phpmailer that provides SMTP function only.

As annoying as limited updates are, I would choose this over a subscription service any day of the week.

Read more
Posted on the from Andy W.
Dave D.
Dave D.
User
Author

Turns out that the WebSite X5 Pro 2022.3.6 trial version does not recognise a project created with WebSite X5 Pro 2020.3.8.1

Would be a real shame if forking out for a subscription only ends up in dissappointment...!

I really look forward to a reasonable solution Website X5 Team.... some time soon!!!

Read more
Posted on the from Dave D.
Andy W.
Andy W.
User

Morning Dave,

I am sure that the issue you are experiencing using a project from 2020.3 with the 2022.3 trial is purely a limitation of the trial. And, that you will have no issues importing your project into the full 20220.3 version.

Stefano G.
So if you're interested in keeping the website correctly online as is, you can either upgrade the software or pick a different hosting which will let you use PHP 7.4 still I remain available here

Support staff can take 24-48 hrs to respond. Others here try to fill the gap :o)

If I were in your situation (which I will be in time) I would look at my hosting options. That is, assuming that you don’t want to upgrade WX5.

Read more
Posted on the from Andy W.
Dave D.
Dave D.
User
Author

Definitely not an option to upgrade to a subscription...

I have found IONOS to be much cheaper and offer double the webspace - so I will probably just change everything...

Read more
Posted on the from Dave D.
Andy W.
Andy W.
User

For what it’s worth, I have been using IONOS for many years. The customer support is a little frustrating (I found) but the DNS & Server services has been flawless. I pay £1 p/m for my server (recently subscribed) which I have full control over using SSH. That includes IPv6, which I don’t have on my home server(s)! :o)

Read more
Posted on the from Andy W.
Andy W.
Andy W.
User

Oh, I have assumed that php 7.4 would be supported for a few more years yet. I was wrong! 7.4 has reached it’s EOL (End of Life): https://www.php.net/eol.php

With this information, I would probably upgrade my WX5.

Just saying.

Read more
Posted on the from Andy W.
Andy W.
Andy W.
User

That is very enlightening. Thanks! You have clearly done your research :o)

No, I’m not a Williams, sorry. I live in Oxford, UK (if that helps).

Read more
Posted on the from Andy W.
Dave D.
Dave D.
User
Author

that´s how I ended up at IONOS whilst looking for a provider that offers PHP 7.4

a mate Andy Williams (also in IT) lives in the UK... just thought it would be by chance... :-)

Read more
Posted on the from Dave D.
Andy W.
Andy W.
User

Believe it or not, I have never worked in IT. My first computer was a Sinclair ZX Spectrum, which as a kid I loved to program. That should tell you my age and how long I’ve played with IT. I do have my extended ECDL, but long story short; life is a b***h lol

Read more
Posted on the from Andy W.
Dave D.
Dave D.
User
Author

ZX Spectrum with 48k was mine too... :-)

says how old we are...

Read more
Posted on the from Dave D.
Dave D.
Dave D.
User
Author

What I don´t understand about Website X5... 

2 years ago I created a website for a friend... this has not been changed since...

the contact per Mail here works just fine, even though the provider is the same as mine which has deactivated php 7.4...

http://kuechehochdrei.de/kontakt.html

you can test both websites...

http://psynergie.one/ueber-mich---kontakt.html

I get the feeling, that Website X5 carried out previous updates the last 2 years just to get people to buy a subscription - THAT IS SO SAD...!!!

Read more
Posted on the from Dave D.
Andy W.
Andy W.
User

I bet yours isn’t sat in the loft along with all the programming books & mags. Says how sad AND old I am lol.

We are probably driving the Moderators crazy. So on that note, please don’t forget to mark this post as ‘resolve’ when you are happy(ish) ;o)

I wish you every success Dave. It’s been a pleasure!

Read more
Posted on the from Andy W.
Andy W.
Andy W.
User
Dave D.
What I don´t understand about Website X5...  2 years ago I created a website for a friend... this has not been changed since... the contact per Mail here works just fine, even though the provider is the same as mine which has deactivated php 7.4... http://kuechehochdrei.de/kontakt.html you can test both websites... http://psynergie.one/ueber-mich---kontakt.html I get the feeling, that Website X5 carried out previous updates the last 2 years just to get people to buy a subscription - THAT IS SO SAD...!!!

Could this be because your project draws from more features than the website you did for your friend? Honestly, I am not sure about this.

Read more
Posted on the from Andy W.
Dave D.
Dave D.
User
Author

same contact formula on both... with phpmailer

Thanks Andy, wish you all the best too, and a peaceful and joyous christmas... 

Read more
Posted on the from Dave D.
Andy W.
Andy W.
User

Because I use a proxy in such cases, I cannot reliably debug. But I had the following errors:

psynergie.one:

Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /customers/b/8/b/psynergie.one/httpd.www/res/x5engine.php on line 5720

kuechehochdrei.de:

Sie müssen Javascript aktivieren!
Sie werden auf die vorherige Seite in 5 Sek. zurückgeleitet.

Have you tried to create a simple (unlinked) contact form for psynergie.one that you can use for testing? Keep the test page as simple as possible, and see what happens.

Read more
Posted on the from Andy W.
Andy W.
Andy W.
User

I confirm, the error persists.

Obviously, the sure solutions have been already been provided, which are recommended and you are rightfully exploring.

But, if you want to try to find out why one website contact form works, and the other does not, then you could setup a testing folder on the server. Create a simple project with just the necessities for testing. Then use the URL ‘psynergie.one/[new_folder]’ as the upload location (which is then used in the browser).

I understand that you can download all of the valid versions for your WX5 licence on your Profile/Account > Download page.

This process is long and unpredictable. But it depends on how determined you are >:)

Read more
Posted on the from Andy W.