WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Server disconnection. (7 posts)

  1. CNG SEO UK
    Member
    Posted 1 year ago #

    I get this whilst creating a post and I get 30 seconds then it locks the page out.

    You have lost your connection with the server, and saving has been disabled. This message will vanish once you've reconnected.

  2. Christopher Anderton
    Member
    Posted 1 year ago #

    Have you checked your logs?

  3. CNG SEO UK
    Member
    Posted 1 year ago #

    Sorry for the delay I have a clean instal of 3.6 beta 3 on a clean database. It is a mufti site with child themes all produced from the word-press, how tool's within the word-press documentation.
    My config.sys has the relevant multisite scripts and the debug is on. and my .htaccess is correctly configured.

    Just to save a bit of time!

    All my logs are clean...

    hang on let me just do this from the main theme not a child...

    Hmm that might be down to me sorry...

    when you use thirteen as a master its ok but if you make a child and use that then I get that error.....

  4. Can you post your child theme to PasteBin or GitHub/Gist so we can look?

    I'm using a child theme (as is Otto) and I know we're not having that problem.

  5. CNG SEO UK
    Member
    Posted 1 year ago #

    Sorry for the delay was just checking something!

    I have no need to paste it to Gist because I only have two files.

    My functions PHP and My Style CSS for each Child.

    /*
    Theme Name:     CNG Easy SEO UK Web-Site Night
    Theme URI:      http://127.0.0.1
    Description:    CNG Easy SEO UK Web-Site
    Author:         CNG Easy SEO UK Web-Site
    Author URI:     http://127.0.0.1
    Template:       twentythirteen
    Version:        0.1.0
    */
    @import url("../twentythirteen/style.css");
    require_once( get_stylesheet_directory(). '/functions.php' );

    My functions.PHP

    <?php
    /**
     * Plugin Name: Functions
     * Plugin URI: http://127.0.0.1
     * Description:  I dont want removing on upgrades file.
     * Author: CNG Easy SEO UK
     * Author URI: http://127.0.0.1
     * Version: Rev-1
     */
    
    /* Place custom code below this line. */
    function remove_admin_bar_links() {
        global $wp_admin_bar;
        $wp_admin_bar->remove_menu('wp-logo');          // Remove the WordPress logo
        $wp_admin_bar->remove_menu('about');            // Remove the about WordPress link
        $wp_admin_bar->remove_menu('wporg');            // Remove the WordPress.org link
        $wp_admin_bar->remove_menu('documentation');    // Remove the WordPress documentation link
        $wp_admin_bar->remove_menu('support-forums');   // Remove the support forums link
        $wp_admin_bar->remove_menu('feedback');         // Remove the feedback link
        $wp_admin_bar->remove_menu('view-site');        // Remove the view site link
        $wp_admin_bar->remove_menu('updates');          // Remove the updates link
        $wp_admin_bar->remove_menu('comments');         // Remove the comments link
        $wp_admin_bar->remove_menu('w3tc');             // If you use w3 total cache remove the performance link
        $wp_admin_bar->remove_menu('my-account');       // Remove the user details tab
    }
    add_action( 'wp_before_admin_bar_render', 'remove_admin_bar_links' );
    
    /* Place custom code above this line. */
    ?>

    That's all I have!

    Apart from that it is timing me out.. If I refresh my page it times me out again at exactly 30 seconds.

  6. CNG SEO UK
    Member
    Posted 1 year ago #

    Ahhh Ha just sussed it!!

    Ok I have a myfunctions.php file in the MU folder of my wordress.

    In there I have put all the overrides to the master theme IE twenty thirteen but because this is a multi site that themefunctions,php is also controls the child themes overrides, so to me the master overide file is myfunctionsphp, followed by the child themes functions php,,,,

    So If I end up forgetting about mythemefunctions php and concentrate on the child themes functions.php's...

    I ended up duplicating a few things...

    But hey at least I have ended up realising that the myfunctions.php is a master control.

    Which to me makes child pages very interesting...

    It means I can put it in the master mythemefunctions.php Or the individual themes independently or collectively.

  7. Anything in MU plugins (must use) will override, so you actually don't need a child theme at all. Just put the functions in there :) that's what I do all the time, when something is theme independent.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.