Error in wordpress customizer

hi. i have a “listable” wordpress theme with “customify” plugin. when i try to open the customizer, i get this message :

Notice: Undefined property: WP_Customize_Manager::$selective_refresh in plugins/customify/class-pixcustomify.php on line 1271 Fatal error: Call to a member function add_partial() on a non-object in plugins/customify/class-pixcustomify.php on line 1271

can anyone tell me what this error means ?

(line 1271 in the file, only contains a “}”. )

Hi Shakes welcome to the forum

The reported line number is where PHP first knew there was an error. It is often, but not always, the line the actual error is on. My guess is in this case the error is before that line.

So what is the problem?

“non-object” and “WP_Customize_Manager” suggests that the code is not finding the WP_Customize_Manager class.

Typically the class will be in a file of the same name.

Can you find that file?

1 Like

thank you for your reply.
i can’t find that file in the plugin folder or even the class name in any file of that …

It wouldn’t be in the plugin folder, It’s Core.

Maybe you have an older WordPress version?

This is the class that controls most of the Theme Customization API for WordPress 3.4 and newer.

If that isn’t the problem, then it’s most likely the include path is wrong.

Assuming your CONSTANTS are correct, it could be the plugin is at fault.
There should be some “require” or “include” in the class-pixcustomify.php file.

What does that look like?

i uploaded file for you, can you take a look at that?

also according to this, The $wp_customize object is an instance of the WP_Customize_Manager class and in line 1269 of the file, we have this code :
$this->register_field( $section_id, $option_id, $option_config, $wp_customize );
is this line a problem ?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.