Joomla 4, PHP7.4, HTTPHeaders - CSP - Script Hashes: Enabled.
Upgrade to PHP8.0, cannot open any Article, I get error:
An error has occurred.
0 hash(): Argument #2 ($data) must be of type string, array given
Go to HTTPHeaders - CSP - Script Hashes Disabled ----No Error, can access all Articles.
php: Linux
dbserver: mysql
dbversion: 10.3.37-MariaDB-cll-lve
dbcollation: latin1_swedish_ci
dbconnectioncollation: utf8mb4_general_ci
dbconnectionencryption:
dbconnencryptsupported: false
phpversion: 8.0.27
server: LiteSpeed
sapi_name: litespeed
version: Joomla! 4.2.7 Stable [ Uaminifu ] 31-January-2023 15:00 GMT
useragent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
There is no error on Front, just on Admin. Workaround is to Disable Script Hashes and make changes to the Articles, then Enable it back.
Returning to PHP7.4 works.
Labels |
Added:
No Code Attached Yet
|
There are 2.
System – HTTP Header
System - HTTPHeaders
Use the first one. Disable/Uninstall the second one.
Thank you for the information. It was installed two times, one instance from Joomla 3 and another one during upgrade to Joomla 4. I just disabled the old one.
Thank you for the information. It was installed two times, one instance from Joomla 3 and another one during upgrade to Joomla 4. I just disabled the old one.
@sergiurat And has that solved your issue? If so, please report back so we can close this issue, or close it yourself on GitHub. Thanks in advance.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-02-15 14:09:40 |
Closed_By | ⇒ | joomdonation |
OK. So I'm closing this issue because it's a none core issue. It is just error comes from third party extension and now solved.
Is this a plugin from Joomla core or it's a third party plugin? If it is a third party plugin, please report this issue to the developer and ask him to fix it. Seems the plugin is not compatible with PHP 8 yet.