No Code Attached Yet
avatar sergiurat
sergiurat
14 Feb 2023

Steps to reproduce the issue

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.

Expected result

Actual result

System information (as much as possible)

=============
System Information

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

Additional comments

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.

avatar sergiurat sergiurat - open - 14 Feb 2023
avatar joomla-cms-bot joomla-cms-bot - change - 14 Feb 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Feb 2023
avatar joomdonation
joomdonation - comment - 15 Feb 2023

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.

avatar ReLater
ReLater - comment - 15 Feb 2023

There are 2.

  • Core plugin: System – HTTP Header
  • Predecessor, 3rd party, from Joomla 3: System - HTTPHeaders
  • Same author. Nearly same features.

Use the first one. Disable/Uninstall the second one.

avatar sergiurat
sergiurat - comment - 15 Feb 2023

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.

avatar richard67
richard67 - comment - 15 Feb 2023

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.

avatar joomdonation joomdonation - change - 15 Feb 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-02-15 14:09:40
Closed_By joomdonation
avatar joomdonation
joomdonation - comment - 15 Feb 2023

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.

avatar joomdonation joomdonation - close - 15 Feb 2023

Add a Comment

Login with GitHub to post a comment