Control panel and contact form produce same deprecation error
Autor: Craig K.
Visited 684,
Followers 1,
Udostępniony 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)`
Posted on the
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.
Autor
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
Autor
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?
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
Autor
Will do thanks.