Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
heytoufiq opened this issue Jan 20, 2022 · 1 comment

Comments

@heytoufiq
Copy link

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
Copy link

Ezyweb-uk commented Nov 28, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants