HTML error 500 after upgrade to 4.2.0

If you aren't speaking german, you can ask for support or post your request here.
Antworten
jorola
Beiträge: 28
Registriert: 12. Okt 2020, 09:10

HTML error 500 after upgrade to 4.2.0

Beitrag von jorola »

I get this error after upgrade to 4.2.0.
From error_log:
[12-Feb-2023 12:10:00 Europe/Copenhagen] PHP Fatal error: Uncaught Error: Object of class MainMenu could not be converted to string in /home/xxxxxx/public_html/xxxxx/adm_my_files/templates/compile/2f87a0a496009fee8c6758d01838c507f9198879_0.file.index.tpl.php:170
Stack trace:
#0 /home/xxxxx/public_html/xxxxx/adm_program/libs/server/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_63e8c9084187f6_45911575(Object(Smarty_Internal_Template))
#1 /home/xxxxx/public_html/xxxxx/adm_program/libs/server/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 /home/xxxxx/public_html/xxxxx/adm_program/libs/server/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#3 /home/xxxxx/public_html/xxxxx/adm_program/libs/server/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1)
#4 /home/rosela in /home/xxxxx/public_html/xxxxx/adm_my_files/templates/compile/2f87a0a496009fee8c6758d01838c507f9198879_0.file.index.tpl.php on line 170

Happens on PHP version on 7.4 and 8.1.
Vendor not yet updated to 8.2

Any hints?
BR Johnny
Benutzeravatar
fasse
Administrator
Beiträge: 6182
Registriert: 12. Nov 2005, 16:06

Re: HTML error 500 after upgrade to 4.2.0

Beitrag von fasse »

Could you please delete the Content of adm_my_files/templates and try again.
jorola
Beiträge: 28
Registriert: 12. Okt 2020, 09:10

Re: HTML error 500 after upgrade to 4.2.0

Beitrag von jorola »

Same error after files deleted.

I see it has also been reported in the German support forum.
NOTE - restored to previous version from backup- so not urgent.
BR Johnny

error_log
[12-Feb-2023 13:29:38 Europe/Copenhagen] PHP Fatal error: Uncaught Error: Object of class MainMenu could not be converted to string in /home/xxxxx/public_html/xxxxx/adm_my_files/templates/compile/2f87a0a496009fee8c6758d01838c507f9198879_0.file.index.tpl.php:170
Stack trace:
#0 /home/xxxxx/public_html/xxxxx/adm_program/libs/server/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_63e8dbb29868d6_06576410(Object(Smarty_Internal_Template))
#1 /home/xxxxx/public_html/xxxxx/adm_program/libs/server/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 /home/xxxxx/public_html/xxxxx/adm_program/libs/server/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#3 /home/xxxxx/public_html/xxxxx/adm_program/libs/server/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1)
#4 /home/xxxxx in /home/xxxxx/public_html/xxxxx/adm_my_files/templates/compile/2f87a0a496009fee8c6758d01838c507f9198879_0.file.index.tpl.php on line 170
Benutzeravatar
fasse
Administrator
Beiträge: 6182
Registriert: 12. Nov 2005, 16:06

Re: HTML error 500 after upgrade to 4.2.0

Beitrag von fasse »

Do you have restart the browser?
Benutzeravatar
fasse
Administrator
Beiträge: 6182
Registriert: 12. Nov 2005, 16:06

Re: HTML error 500 after upgrade to 4.2.0

Beitrag von fasse »

Hi Johnny,

could you please replace the unzipped file within the folder adm_program/system/classes .
Does it now work?

Fasse
Dateianhänge
MenuNode.php.zip
(3.36 KiB) 343-mal heruntergeladen
jorola
Beiträge: 28
Registriert: 12. Okt 2020, 09:10

Re: HTML error 500 after upgrade to 4.2.0

Beitrag von jorola »

Hi.
I had overlooked changes to the adm_theme folder.

It seems like the following folder was not present in version 4.1.19:
adm_themes\simple\templates\sys-template-parts

So I copied this over as well.

So it works now.

BR Johnny
Antworten