Error after switching to PHP 8.0 in template editor "array_key_exists() argument #2 ($array) must be of type array stdclass given"

Medienagentur
15 Posts
Medienagentur posted this 14 January 2023

An error appeared in the THEMLER template editor (ver 559) for JOOMLA 3.10.11 after switching to PHP 8.0 but only in the BLOG template. The webpage is running fine with no errors.

If I select the Blog Template in theme editor it will redirect me to the page not found (404) template with showing up this error: "array_key_exists() argument #2 ($array) must be of type array stdclass given"

I tried to locate the error. I have exported the theme an I have imported it into the desktop Themler. Once with content and once without content. Without content it works fine but with content I get an ERROR null - JOOMLA (see image).
It seems that the content correlates with the theme. Fairly unclear if the cause is the content or the theme or both.

Has anyone a guess how I can narrow down the error further?
Is it possible to get some more detailed error description from the themler theme editor?

An error appeared in the THEMLER template editor (ver 559) for JOOMLA 3.10.11 after switching to PHP 8.0 but only in the BLOG template. The webpage is running fine with no errors. If I select the Blog Template in theme editor it will redirect me to the page not found (404) template with showing up this error: "array_key_exists() argument #2 ($array) must be of type array stdclass given" I tried to locate the error. I have exported the theme an I have imported it into the desktop Themler. Once with content and once without content. Without content it works fine but with content I get an ERROR null - JOOMLA (see image). It seems that the content correlates with the theme. Fairly unclear if the cause is the content or the theme or both. Has anyone a guess how I can narrow down the error further? Is it possible to get some more detailed error description from the themler theme editor?

Last edited 14 January 2023 by Medienagentur

Vote to pay developers attention to this features or issue.
11 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 17 January 2023

Hi Udo,

I have answered in your private topic. Let's continue discussion there.

Sincerely,
Nettie

Hi Udo, I have answered in your private topic. Let's continue discussion there. Sincerely, Nettie
Medienagentur
15 Posts
Medienagentur posted this 18 January 2023

O.K. thank you Nettie

O.K. thank you Nettie
laertsky
19 Posts
laertsky posted this 03 March 2023

0 - version_compare(): Argument #3 ($operator) must be a valid comparison operator

similar problem!

0 - version_compare(): Argument #3 ($operator) must be a valid comparison operator similar problem!
Support Team
Support Team posted this 03 March 2023

Hello,

Do you get this problem also with Joomla 3.10, PHP 8 and Themler 559?

Sincerely,
Nettie

Hello, Do you get this problem also with Joomla 3.10, PHP 8 and Themler 559? Sincerely, Nettie
Medienagentur
15 Posts
Medienagentur posted this 04 March 2023

He> Hi Udo,

I have answered in your private topic. Let's continue discussion there.

Sincerely,
Nettie

I am waiting since Jan. 25 for an answer. The topic 219584 is still open. Nettie, can you push it again to your developer please ?

He> Hi Udo, > > I have answered in your private topic. Let's continue discussion there. > > Sincerely, > Nettie I am waiting since Jan. 25 for an answer. The topic 219584 is still open. Nettie, can you push it again to your developer please ?
NIGEFA1990
7 Posts
NIGEFA1990 posted this 20 April 2023

Hi I have the same Problem - can you help me.
Christian

Hi I have the same Problem - can you help me. Christian
Medienagentur
15 Posts
Medienagentur posted this 20 April 2023

Hi I have the same Problem - can you help me.
Christian

I'm still working with that error.
I added some programming code to the error404.php template an get the source of the error.
In my case it is triggered by the file ../editor/functions.php in Line 770
if (!array_key_exists($currentTemplateName, $sampleData))

A workaround for me is to stop the program running through this if case by changing the line 6 lines above from
if ($GLOBALS['theme_settings']['is_preview']) {
to
if ($GLOBALS['theme_settings']['is_previeww']) {

This would be overwritten if you load the editor so you have to do it again.
A bad workaround but for me actual the only possibility.
Support is not responding on my request. :(

> Hi I have the same Problem - can you help me. > Christian I'm still working with that error. I added some programming code to the error404.php template an get the source of the error. In my case it is triggered by the file ../editor/functions.php in Line 770 if (!array_key_exists($currentTemplateName, $sampleData)) A workaround for me is to stop the program running through this if case by changing the line 6 lines above from if ($GLOBALS['theme_settings']['is_preview']) { to if ($GLOBALS['theme_settings']['is_previeww']) { This would be overwritten if you load the editor so you have to do it again. A bad workaround but for me actual the only possibility. Support is not responding on my request. :(
peterparker281199
1 Posts
peterparker281199 posted this 10 November 2023

Since you mentioned that the error seems to correlate with the content, try removing or modifying specific content elements in the template to see if the issue persists. This can help you identify if certain content elements are causing the problem. After that you can access monopoly online and play with me, thanks

Since you mentioned that the error seems to correlate with the content, try removing or modifying specific content elements in the template to see if the issue persists. This can help you identify if certain content elements are causing the problem. After that you can access [monopoly online][1] and play with me, thanks [1]: https://monopoly-online.io
Medienagentur
15 Posts
Medienagentur posted this 10 November 2023

Thank you for that hint. Meet us on the BOARDWALK.

Thank you for that hint. Meet us on the BOARDWALK.
mccluregray1210078
1 Posts
mccluregray1210078 posted this 20 December 2023

An error appeared in the THEMLER template editor (ver 559) for JOOMLA 3.10.11 after switching to PHP 8.0 but only in the BLOG template. The webpage is running fine with no errors.

If I select the Blog Template in theme editor it will redirect me to the page not found (404) template with showing up this error: "array_key_exists() argument #2 ($array) must be of type array stdclass given"

I tried to locate the error. I have exported the theme an I have imported it into the desktop Themler. Unblocked games 76 is a website that offers a large collection of free online games that can be played without any restrictions or blockages Once with content and once without content. Without content it works fine but with content I get an ERROR null - JOOMLA (see image).
It seems that the content correlates with the theme. Fairly unclear if the cause is the content or the theme or both.

Has anyone a guess how I can narrow down the error further?
Is it possible to get some more detailed error description from the themler theme editor?

The error array_key_exists() argument #2 ($array) must be of type array stdclass given indicates a type mismatch. A function expects an array, but a stdClass object is provided.
The error occurs specifically in the Blog Template within the Theme Editor, suggesting a conflict with either the template code, content structure, or PHP 8 compatibility.

> An error appeared in the THEMLER template editor (ver 559) for JOOMLA 3.10.11 after switching to PHP 8.0 but only in the BLOG template. The webpage is running fine with no errors. > If I select the Blog Template in theme editor it will redirect me to the page not found (404) template with showing up this error: "array_key_exists() argument #2 ($array) must be of type array stdclass given" > I tried to locate the error. I have exported the theme an I have imported it into the desktop Themler. [Unblocked games 76][1] is a website that offers a large collection of free online games that can be played without any restrictions or blockages Once with content and once without content. Without content it works fine but with content I get an ERROR null - JOOMLA (see image). > It seems that the content correlates with the theme. Fairly unclear if the cause is the content or the theme or both. > Has anyone a guess how I can narrow down the error further? > Is it possible to get some more detailed error description from the themler theme editor? The error `array_key_exists() argument #2 ($array) must be of type array stdclass given` indicates a type mismatch. A function expects an array, but a `stdClass` object is provided. The error occurs specifically in the Blog Template within the Theme Editor, suggesting a conflict with either the template code, content structure, or PHP 8 compatibility. [1]: https://unblockedgames-76.io
Medienagentur
15 Posts
Medienagentur posted this 20 December 2023

I remember that I changed the error404_9.php in the folder templates/THEMENAME/editor/templates and added there some php to get more error information.

I remember that I changed the error404_9.php in the folder templates/THEMENAME/editor/templates and added there some php to get more error information.
You must log in or register to leave comments