Support » Networking WordPress » Pages not updating on network blogs

  • Resolved jonfoster

    (@jonfoster)


    Hello,
    I’ve just installed WordPress Multisite and got everything set-up – it’s was all working really well, and I was just about to start customising with plug-ins and the rest when this happened:
    First, I tried to update a page and all the content dis-appeared. THis kept happening, so I disabled the one plug-in I already had and replaced all the core WP files (everthing but WP-content and WP-config.php).
    Now, I can create a page, and sometimes it keeps its content, others not. And if I’m updating a page, it usually keeps the previous content, but doesn’t keep the changes I’ve just made.

    I have no idea what could be causing it!

    WordPress is installed on my own VPS, which I had the host (VPS.net) do the initial configuration for. I guess it must be something in the configuration of the database or PHP?

    Thanks in advance!
    Jon

Viewing 14 replies - 1 through 14 (of 14 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    If it’s a brand new site, scrap and start over. It’s easier to do than to try and suss out a weird install. If it happens again, try a SINGLE site of WP to test with. See if it happens there.

    Will do.

    Thanks – I’ll let you know what happens.

    Jon

    That’s sorted it – thanks so much for your help.

    Jon

    Ok – it’s started happening again 🙁

    It was fine all afternoon/evening yesterday – and I’ve just tried to post a new page and its not holding any content when I click Publish or Update!

    I’d rather not do another fresh install as it seems to be happening each time!

    I’ve tried a single blog install on the same server and that seems ok – but I’ve found with the multisite, it seems fairly sporadic – so hard to say for sure, I’ll keep trying it and update you if it starts disappearing too!

    I’m going to get in touch with my VPS host to see if it could be anything at their end, but would appreciate any thoughts from you guys too!

    Thanks!
    Jon

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    It was fine all afternoon/evening yesterday – and I’ve just tried to post a new page and its not holding any content when I click Publish or Update!

    Okay. WHAT did you do in between? 🙂

    Did you change themes, add a plugin, what? Cause yes, you should ask your host, but also, make damn sure you know what YOU did. It may explain everything!

    Ok, looks like its the theme – but I’m not 100% sure about that as I’m fairly sure it was happening on TwentyTen too yesterday, but it’s the only change now that consistently makes it work.

    My hosting people are still fiddling, and have apparently been for a few hours – so we’ll see what they come up with.

    I’ve emailed the theme developer, so *hopefully* they’ll be able to get it sorted, would be v annoyed to lose the theme – it’s perfect! 😉

    Thanks
    Jon

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    It’s possible that functions in the theme are causing the issue…

    Right – looks like it’s down to the support_function.php file.

    It looks like it contains:

    // MENU WP3.0 VERSION SUPPORT
    //THEME AUTOMATIC FEED LINK FUNCTION
    // CUSTOM MENU MANAGER
    // ADMIN SYSPANEL CSS
    //THEME CSS LINKS
    // THEME JAVASCRIPT INCLUDES
    //ADMIN SYSPANEL JAVASCRIPT ENQUEUE
    // CUSTOM CUFON FONT SCRIPT INCLUDES
    // CUFON FOR ADMIN SYSPANEL

    I’ve tried disabling various bits but it just causes the site to kick up loads of errors – am well out of my depth at this point.

    Let me know if any of those are particularly notorious(!) or any other ideas based on this being the issue.

    Thanks again.
    Jon

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    Is that a theme file? What’s its full path?

    Yep – path: /wp-content/themes/versatile/lib/functions/support_function.php

    Jon

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    and every line that has a // in front of it is a comment and will not run as code. 😉

    So wait for the theme dev.

    Yes, sorry – that’s my condensed version of the comments to try and illustrate what it does – it seems fairly well marked up from that point of view!

    Thanks
    Jon

    Ok, so the problem’s caused by this piece of code:

    /*---------------------------------*/
    //ADMIN SYSPANEL JAVASCRIPT ENQUEUE
    /*---------------------------------*/
    add_action('wp_print_scripts', 'system32_enqueue_scripts');
    if(get_option('gmapapikey'))
    {
    function gmapscript(){
    echo "\n<script type='text/javascript' src='http://maps.google.com/maps?file=api&v=2&key=".get_option('gmapapikey')."'></script>\n";
    	wp_print_scripts( 'jquery_map');
    	}
    	add_filter('wp_head','gmapscript');
    }
    	function admin_js(){
    	if(isset($_GET['page']) && $_GET['page']=='admin_interface.php'){
    		wp_enqueue_script('sys_jquery',sys_scripts . '/jquery-1.5.1.min.js');
    		wp_enqueue_script('jquery-uitabs', sys_scripts .'/jquery-ui-1.7.3.custom.min.js');
    		wp_enqueue_script('jquery_easing',sys_scripts . '/jquery.easing.1.3.js');
    		wp_enqueue_script('sys_checkbox',sys_scripts . '/jquery.checkbox.js');
    		wp_enqueue_script('sys_colorpicker',sys_scripts . '/mColorPicker.js');
    
    		wp_enqueue_script('sys_iphone',sys_scripts . '/iphone-style-checkboxes.js');
    		wp_enqueue_script('sys_empty',sys_scripts . '/empty.js');
    		wp_localize_script( 'sys_empty', 'sys_panel', array(
    			'SiteUrl' =>get_template_directory_uri(),
    			'clearpath' =>get_bloginfo('template_directory') . '/lib/admin/images/empty.png',
    			'colorpath' =>get_bloginfo('template_directory') . '/lib/admin/color/'
    		));
    		wp_enqueue_script('jquery_form',sys_scripts . '/jquery.form.js');
    		wp_enqueue_script('jquery_validate',sys_scripts . '/jquery.validate.js');
    		wp_enqueue_script('jquery_autocomplete',sys_scripts . '/jquery.autocomplete.js');
    		}
    	}
    add_action('wp_print_scripts', 'admin_js',8);
    
    function my_admin_scripts() {
    global $page_handle;
    $svr_uri = $_SERVER['REQUEST_URI'];
    	wp_enqueue_script( 'jquery-color' );
    	wp_enqueue_script( 'common' );
    
    	wp_print_scripts('media-upload');
    	if (function_exists('add_thickbox')) add_thickbox();
    	wp_register_script('my-upload', sys_scripts.'/ajaxupload.js', array('jquery','media-upload','thickbox'));
    	wp_enqueue_script('my-upload');
    	wp_print_scripts('editor');
    	if (function_exists('wp_tiny_mce')) wp_tiny_mce();
    	wp_enqueue_script('utils');
    	wp_admin_css();
    	wp_enqueue_script('sys_colorpicker',sys_scripts . '/mColorPicker.js');
    		wp_enqueue_script('sys_empty',sys_scripts . '/empty.js');
    		wp_localize_script( 'sys_empty', 'sys_panel', array(
    			'SiteUrl' =>get_template_directory_uri(),
    			'clearpath' =>get_bloginfo('template_directory') . '/lib/admin/images/empty.png',
    			'colorpath' =>get_bloginfo('template_directory') . '/lib/admin/color/'
    		));
    }
    
    function my_admin_styles() {
    	wp_enqueue_style('thickbox');
    }
    
    add_action('admin_print_scripts', 'my_admin_scripts');
    add_action('admin_print_styles', 'my_admin_styles');

    With this disabled, the disappearing content issue is solved, but I’ve lost Cufon – which is a pain. I guess it’s not picking up my settings in the admin panel.
    Just looking for a way round that now.

    Will keep you posted!

    Jon

    I’ve re-introduced Cufon manually via a plug-in, and removed the Cufon stuff out the theme – that seems to have done the trick.

    If anyone else has this problem with “Versatile” theme and is struggling to sort it, give me a shout – twitter handle is @jonfoster

    Thanks for your help Ipstenu & Andrea
    Jon

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Pages not updating on network blogs’ is closed to new replies.