JoomShaper / Helix-Joomla

Helix framework 2 for joomla
http://www.joomshaper.com/helix
12 stars 24 forks source link

Warning: Creating default object from empty value in plugins/system/helix/core/wp shortcodes.php on line 97 #18

Open heymrtoufiq opened 2 years ago

heymrtoufiq commented 2 years ago

Here is solution

File location plugins/system/helix/core/wp shortcodes.php

Find out this code if ( is_callable($func) )

And replace with this code

if ( is_callable($func) && is_object($helix))

Ezyweb-uk commented 1 year ago

This fix solved this error that was preventing the site loading, but it's broken the gallery (module bottom4), the raw shortcodes are displayed and not converted to content. Actually for all shortcodes (accordion, button, gallery, etc) $helix is not an object, so Php 8 must have messed with the declaration of $helix, I assume it's something to do with a change to variable scope in Php 8. Anyone have a solution please?

Joomla 3.10 Helix 2.5 K2 2.10.3 Shaper Helix template