themeum / kirki

Extending the customizer
https://kirki.org
MIT License
1.26k stars 328 forks source link

Warning: Undefined variable $args #2483

Open hfittipaldi opened 2 years ago

hfittipaldi commented 2 years ago

Issue description:

After updating to last version, a warning appeared in my admin with define('WP_DEBUG', true );

Solution:

Change the line 175 on file \wp-content\plugins\kirki\packages\kirki-framework\compatibility\src\Kirki.php from: $section = new \Kirki\Section( $id, $args ); To: $section = new \Kirki\Section( $id );

Version used:

4.0.24

PHP error messages that might be related

Warning: Undefined variable $args in \wp-content\plugins\kirki\packages\kirki-framework\compatibility\src\Kirki.php on line 175

Code to reproduce the issue (config + field(s))

set WP_DEBUG var to true on wp-config.php file add Kirki::remove_section( 'colors' ); to your settings

contactjavas commented 2 years ago

Hi @hfittipaldi , thanks for reporting this along with the solution :) The fix is already in master branch and will be available to the plugin in the next release.

In case you would like to check for the individual package, it's in compatibility repo.

HighDesertDigitalDesign commented 8 months ago

Still experiencing this same issue in 2024. Is agama just never going to update their themes to be compatible with newer PHP versions?

HighDesertDigitalDesign commented 8 months ago

@contactjavas When you said "The fix is already in master branch and will be available to the plugin in the next release."

Was it actually addressed? Seeing as how this is still an issue even on the newest versions of the theme here in 2024?