WebSite X5Help Center

 
Craig K.
Craig K.
User

Control panel and contact form produce same deprecation error  en

Autore: Craig K.
Visite 683, Followers 1, Condiviso 0  

After uploading the site, attempted to use the contact form and it produced the error below. Same error produced when attempting to access control panel (admin).

Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` 

Postato il
5 RISPOSTE
Aleksej H.
Aleksej H.
Moderator

Hello.Check the PHP version on your hosting.I recommend 7.2-7.4.

Try deleting all site files from the hosting and re-uploading it. Then, for verification, clear your browser cache including cookies and autofill data. Also check that your hosting does not have any cache. If it is, then clean it.

Leggi di più
Postato il da Aleksej H.
Craig K.
Craig K.
User
Autore
Aleksej H.
Hello.Check the PHP version on your hosting.I recommend 7.2-7.4. Try deleting all site files from the hosting and re-uploading it. Then, for verification, clear your browser cache including cookies and autofill data. Also check that your hosting does not have any cache. If it is, then clean it.

Hi, It is currently set to PHP 7.4.11 ? Is this too new? The next one back that is available is 7.3.23

Leggi di più
Postato il da Craig K.
Craig K.
Craig K.
User
Autore

I should also add, that I have deleted files and re-uploaded already (for other reasons) and the problem remains. Perhaps 7.4 is still too new?

Leggi di più
Postato il da Craig K.
Paul M.
Paul M.
Moderator

Hello Craig,

This message is a PHP 'notice' as opposed to a PHP 'error'.

It will not prevent your WebSite X5 site from operating as it should, but it does indicate that PHP warnings are set to be displayed on your server, rather than logged silently in the background.

Ask your webhost to set your PHP configuration such that notices like this are not displayed (they should never be displayed anyway on a production website for security reasons).

The WebSite X5 source code is in a state of continual revision and new versions of PHP are released extremely frequently.  I do not expect it will be long before even the 'notice' disappears from WebSite X5 sites, but in the meantime suppressing the notice will allow you to proceed as normal.

PHP 7.4 is fine for use with WebSite X5.  My own sites are running on that at the present moment.

Kind regards,

Paul

Search the WebSite X5 Help Center

Leggi di più
Postato il da Paul M.
Craig K.
Craig K.
User
Autore
Paul M.
Hello Craig, This message is a PHP 'notice' as opposed to a PHP 'error'. It will not prevent your WebSite X5 site from operating as it should, but it does indicate that PHP warnings are set to be displayed on your server, rather than logged silently in the background. Ask your webhost to set your PHP configuration such that notices like this are not displayed (they should never be displayed anyway on a production website for security reasons). The WebSite X5 source code is in a state of continual revision and new versions of PHP are released extremely frequently.  I do not expect it will be long before even the 'notice' disappears from WebSite X5 sites, but in the meantime suppressing the notice will allow you to proceed as normal. PHP 7.4 is fine for use with WebSite X5.  My own sites are running on that at the present moment. Kind regards, Paul Search the WebSite X5 Help Center

Will do thanks.

Leggi di più
Postato il da Craig K.