• Resolved hardcab

    (@hardcab)


    Hi, Don’t know what has happened but now everytime I install a plugin via admin it no longer goes to the “Activate Plugin” screen it just stays on the “Installing Plugin” screen as shown in this screenprint http://www.screencast.com/t/BEa595AzAwkT

    I now have to click on “Plugins” in sidebar, scroll down to find the plugin and activate it.

    Something has screwed up the admin and I don’t know what it is or how to fix it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • One thing to try is to re-install WP.

    First, you should create a backup of your site. Always do this before any changes to WP, themes, or plugins.

    Then, go to Admin->Updates and click ‘Re-install Now’.

    Thread Starter hardcab

    (@hardcab)

    Well I tried to reinstall WP through admin and it didn’t do anything. I am afraid to install it through PHP admin as I don’t want to lose any changes I have made.

    I tried to just upload admin folder via ftp but that didn’t make any difference.

    Is there just a way to “repair” the WP installation? What are the possible files that got corrupted that I could just replace

    I don’t know what individual files may be involved.

    When you say that the reinstall did not do anything, do you mean that it did not solve the problem, or that it did not reinstall?

    Thread Starter hardcab

    (@hardcab)

    It did not reinstall. It went to the same screen as in the screenshot and just sat there with nothing happening the same as what happens when I install a plugin. At least with the plugin although it seems that nothing is happening and it doesn’t give the “activate” option the plugin still gets installed whereas it didn’t seem to install WP (or if it did it still doesn’t work)

    Thread Starter hardcab

    (@hardcab)

    OK I found the problem.

    I tried twentyfourteen and Greeny parent theme and it all works fine. So it appears the problem has to do with something on the Greeny child theme.

    I have pinpointed it to the functions.php that is causing the problem It has something to do with this code

    <?php
    /* DVS Compression Start*/
    function wp_http_compression() {
    // Dont use on Admin HTML editor
    if (stripos($uri, ‘/js/tinymce’) !== false)
    return false;
    // Check if ob_gzhandler already loaded
    if (ini_get(‘output_handler’) == ‘ob_gzhandler’)
    return false;
    // Load HTTP Compression if correct extension is loaded
    if (extension_loaded(‘zlib’))
    if(!ob_start(“ob_gzhandler”)) ob_start();
    }
    add_action(‘init’, ‘wp_http_compression’);
    ?>
    <?php

    I have removed that code and all is working well again. Also I ran the WP_Debug and got the following:

    Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home2/jdinsura/public_html/wp/wp-includes/functions.php on line 3245

    Notice: add_custom_background is deprecated since version 3.4! Use add_theme_support( ‘custom-background’, $args ) instead. in /home2/jdinsura/public_html/wp/wp-includes/functions.php on line 3078

    Notice: Undefined variable: uri in /home2/jdinsura/public_html/wp/wp-content/themes/greeny-jdi-child/functions.php on line 5

    Warning: Cannot modify header information – headers already sent by (output started at /home2/jdinsura/public_html/wp/wp-includes/functions.php:3245) in /home2/jdinsura/public_html/wp/wp-login.php on line 414

    Warning: Cannot modify header information – headers already sent by (output started at /home2/jdinsura/public_html/wp/wp-includes/functions.php:3245) in /home2/jdinsura/public_html/wp/wp-login.php on line 426

    Warning: Cannot modify header information – headers already sent by (output started at /home2/jdinsura/public_html/wp/wp-includes/functions.php:3245) in /home2/jdinsura/public_html/wp/wp-login.php on line 428

    Have tried looking at those files to try and fix but I have no idea what the problem is as I cannot find the particular lines it refers to

    Do you still get all these messages with the parent theme? If so, try to contact the theme designer.

    Thread Starter hardcab

    (@hardcab)

    Yes I do and I have contacted the theme developer. Thanks for all the help.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Admin problem’ is closed to new replies.