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

Call to undefined function is_customize_preview() in pre WP 4.0 #1775

Closed
minimaluminium opened this issue Oct 16, 2014 · 14 comments
Closed

Call to undefined function is_customize_preview() in pre WP 4.0 #1775

minimaluminium opened this issue Oct 16, 2014 · 14 comments

Comments

@minimaluminium
Copy link

I am using WP 3.9 and Redux 3.3.8.8.
I get an error below in random sections of the admin area.

Fatal error: Call to undefined function is_customize_preview() in PATH/redux/ReduxCore/extensions/customizer/extension_customizer.php on line 79

is_customize_preview() is only 4.0.0 function. I think it should be used in a condition.

@dovy
Copy link
Member

dovy commented Oct 16, 2014

Haha! Good catch. I'll back that out to be conditional.

@dovy
Copy link
Member

dovy commented Oct 16, 2014

I just added that this past week. Hah.

@hamdan-mahran
Copy link

hi dovy:
im using 3.3.8.8
i have the same error

Fatal error: Call to undefined function is_customize_preview() in D:\xampp\htdocs\arwen_arwen\wp-content\themes\arwen\theme-admin\options\ReduxFramework\ReduxCore\extensions\customizer\extension_customizer.php on line 79

and other errors :

Notice:  Undefined index: members in D:\xampp\htdocs\arwen_arwen\wp-content\themes\arwen\theme-admin\options\ReduxFramework\ReduxCore\inc\fields\text\field_text.php  on line 64
Notice:  :  Undefined index: timeline in D:\xampp\htdocs\arwen_arwen\wp-content\themes\arwen\theme-admin\options\ReduxFramework\ReduxCore\inc\fields\text\field_text.php  on line 64
Notice:  :  Undefined index: portfolio in D:\xampp\htdocs\arwen_arwen\wp-content\themes\arwen\theme-admin\options\ReduxFramework\ReduxCore\inc\fields\text\field_text.php  on line 64

dovy added a commit that referenced this issue Oct 16, 2014
@dovy
Copy link
Member

dovy commented Oct 16, 2014

Fix just pushed. Please verify.

@hamdan-mahran
Copy link

Thanks
this error is fixed now :

Fatal error: Call to undefined function is_customize_preview() in D:\xampp\htdocs\arwen_arwen\wp-content\themes\arwen\theme-admin\options\ReduxFramework\ReduxCore\extensions\customizer\extension_customizer.php on line 79

but this isuue still out :

Notice: Undefined index: members in D:\xampp\htdocs\arwen_arwen\wp-content\themes\arwen\theme-admin\options\ReduxFramework\ReduxCore\inc\fields\text\field_text.php on line 64

Notice: Undefined index: timeline in D:\xampp\htdocs\arwen_arwen\wp-content\themes\arwen\theme-admin\options\ReduxFramework\ReduxCore\inc\fields\text\field_text.php on line 64

Notice: Undefined index: portfolio in D:\xampp\htdocs\arwen_arwen\wp-content\themes\arwen\theme-admin\options\ReduxFramework\ReduxCore\inc\fields\text\field_text.php on line 64

@dovy
Copy link
Member

dovy commented Oct 16, 2014

Make a new issue and include your config file. Chances are you have something configured odd.

@dovy dovy closed this as completed Oct 16, 2014
@dovy
Copy link
Member

dovy commented Oct 16, 2014

Dude, you just posted your WordPress config which opened your DB to security issues. I've deleted it to try to keep you safe.

You need to post your Redux config with is fine to post.

Also please update to the newest version of Redux 3.3.9. It may resolve your issue.

@hamdan-mahran
Copy link

Thanks so much dovy
my redux config is 1932 line of code

@hamdan-mahran
Copy link

i can send my theme to you to look on it :)

@dovy
Copy link
Member

dovy commented Oct 16, 2014

If you support us by grabbing Premium Support I can. ;)

@hamdan-mahran
Copy link

yes sure i trying but i dont have 75$ in paypall card ... but i promiss i will do after have sales and recharge my card :(

@FiGOBLAC
Copy link

@hamdan-mahran, You may want go ahead and change your database username and password because I just received your WordPress configuration file by email. And Im pretty sure any redux user who has their github account set to 'watch' has it as well.

@dovy
Copy link
Member

dovy commented Oct 16, 2014

Agreed. NEVER hand out your wp-config.php data. Think of it as handing out your Credit Card and Pin to a stranger. ;)

@hamdan-mahran
Copy link

@figo and @dovy .... ok thanks very much ... i will change the database now

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

4 participants