joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

Administrator error in StyleModel.php

Open rikaryoo opened this issue 1 year ago • 2 comments

Steps to reproduce the issue

When clicking on the "Options button" at the top right of the template, clicking save redirects to this link:

my domain /administrator/index.php?option=com_config

which generates an "Internal Server Error"

several extensions affected, including Easy Job Manager and JCE

Expected result

This message indicates a PHP error related to the StyleModel.php file in your site. Specifically, it looks like the code is trying to access a property called "parent" on something that is not actually an object, but instead of an array. This can happen for a number of reasons, such as lack of unexpected data or data structures.

Actual result

Works with limitations and redirects without saving changes to Internet Server Error

System information (as much as possible)

Joomla 5.1 PHP 8.2 Mysql 8

Easy Jobs Manager 5.3.0 JCE Editor 2.9.63

Additional comments

I'm not a programmer, but I identified this problem when I found myself unable to solve a problem that was affecting my websites, after upgrading from version 5.0.3 to 5.1.

see attached images:

error-1 error-2 error-3 error-4

rikaryoo avatar May 02 '24 18:05 rikaryoo

Hi @rikaryoo, (I'm NO expert but from what I know/understand) this does not appear to be a Joomla issue but an Easy Job Manager issue, have you reached out to JoomBoost ?

from what I can compare to other extensions, they are not generating the correct link when clicking on Options:

https://www.domainname.com/administrator/index.php?option=com_config&view=component&component=com_NAMEOFCOMPONENT&path=&return=aHR0cHM6Ly93d3cuanVubml0aS5jb20vYWRtaW5pc3RyYXRvci9pbmRleC5waHA%2Fb3B0aW9uPWNvbV9vc21hcA%3D%3D

(if yours is cut off at https://www.domainname.com/administrator/index.php?option=com_config as you can see, there is quite a bit missing and that shortened version corresponds to Joomla's own Global Configuration page)

That or something in your .htaccess file is affecting the redirect of https://www.domainname.com/administrator/index.php?option=com_config to Joomla's Options page.

Hope that helps.

exlemor avatar May 02 '24 21:05 exlemor

@exlemor thank you for your feedback, my understanding of support was different from yours, thank you for clarifying.

I will contact support again. Which made me post here that the error also happened in JCE, which in J5.0.3 worked fine.

If in doubt, I'll close the tip and look for an answer.

Thank you for your help and your time!!!

rikaryoo avatar May 03 '24 02:05 rikaryoo

Thanks. I close this for now. Also JCE is an extension and not part of the core.

chmst avatar May 03 '24 14:05 chmst