Jump to content

Archived

This topic is now archived and is closed to further replies.

dreamsight

Fatal error on update

Recommended Posts

dreamsight

Upgrade stop site and admin Fatal error: Call to undefined function is_customize_preview() in /wp-content/themes/dms/dms/includes/init.install.php on line 26

Rolled back init.editor.php and the site is up, but the admin gives Fatal error: Call to undefined function is_customize_preview() in /wp-content/themes/dms/dms/includes/init.install.php on line 38

Any ideas?

Share this post


Link to post
Share on other sites
Danny

Hi,

What version of DMS do you have installed?
What version of WordPress do you have installed?

Can you provide a link to the site in question please.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Simon

is_customize_preview() was introduced in wordpress 4.0 Released nearly a year ago now.

Share this post


Link to post
Share on other sites
dreamsight

Hi Danny, http://scitechnews.co.uk/
Latest version of WP and the problem happened after updating (through WP update in admin) to the latest version of DMS

Share this post


Link to post
Share on other sites
Simon

Thats WP 3.9.2 there. Is that intentional?

 

Share this post


Link to post
Share on other sites
Simon

Please see this post:

Share this post


Link to post
Share on other sites
dreamsight

Sorry, just checked with the team and they always update plugins and themes before updating WP. Will read the post now.

Thanks

Hi Simon

I can't carry out the first 2 options, because I can't login to the admin. Is there any way you can suggest that I can update WP and download DMS?

Thanks for your help

Share this post


Link to post
Share on other sites
Simon

Do you have any FTP access at all?

Share this post


Link to post
Share on other sites
dreamsight

yes access to everything

Share this post


Link to post
Share on other sites
Simon

Can you just edit that file then?

Then you will be able to get into the admin area and do normal updates

Share this post


Link to post
Share on other sites
dreamsight

What do I edit? Line 38 has if( is_customize_preview() ) {

38.   if( is_customize_preview() ) {
39.    return false;
40.   }

Share this post


Link to post
Share on other sites
Simon

No follow the instruction in the other post/..

Share this post


Link to post
Share on other sites
dreamsight

Thanks Simon, that worked

Share this post


Link to post
Share on other sites
Simon

Good stuff.

Share this post


Link to post
Share on other sites
dreamsight

where do I mark this as answered?

Share this post


Link to post
Share on other sites
Simon

Should be a tick on the left

Share this post


Link to post
Share on other sites

  • Similar Content

    • Lisa Haran
      By Lisa Haran+
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      Hello,
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Akismet
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      WooCommerce
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio+
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
    • flourishdesignstudio
      By flourishdesignstudio+
      Is there a way to edit the custom CSS via FTP? I know I can edit the custom code in the Chrome editor but is there a file path I can use to find and edit the CSS directly from our FTP?
      Thanks in advance for the help!
    • nizami
      By nizami+
      Using navbar section with correctly configured WP menu to display main navigation at https://elenaangel.com. 
      All fine in desktop viewport. Menu displays twice in hamburger mode. How to fix this please? 

×