joomla / joomla-cms

Home of the Joomla! Content Management System
https://www.joomla.org
GNU General Public License v2.0
4.74k stars 3.64k forks source link

Administrator error in StyleModel.php #43421

Closed rikaryoo closed 5 months ago

rikaryoo commented 5 months ago

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

exlemor commented 5 months ago

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.

rikaryoo commented 5 months ago

@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!!!

chmst commented 5 months ago

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