Support » Plugin: Custom Login » UPDATE –> PHP Errors –> Dashboard Errors…

  • Resolved Robswaimea

    (@robswaimea)


    Theme Twentyfourteen
    UPDATE –> PHP Errors –> Dashboard Errors…
    Update Version 3.1 (01/20/15)

    Just started using the plugin this week. And I like it.

    But the last update caused two problems…

    PHP Warning: Cannot modify header information – headers already sent by (output started at /wp-admin/includes/template.php:1867) in /wp-content/plugins/custom-login/includes/admin/dashboard.php on line 196

    Second: On my Dashboard page… the Admin links on the left hand side, hovering over an item… ie: Hover over Settings—> does not pop up the list of Settings.

    Deactivating.. and installing previous version problems go away.

    https://wordpress.org/plugins/custom-login/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Austin Passy

    (@austyfrosty)

    Okay, I know what the issue it, just not sure why your install is seeing that. I’ve got a way to fix this possibly.

    Could you run a test for me? If you’ve got access to your plugin editor page can you visit it. Or add this to your website url: wp-admin/plugin-editor.php?file=custom-login%2Fincludes%2Fadmin%2Fdashboard.php&plugin=custom-login%2Fcustom-login.php

    If you scroll almost to the end of the file and find this section:

    elseif ( isset( $_GET['type'] ) && $_GET['type'] === 'js' ) {
    
    	header("content-type:application/x-javascript");
    	ob_start();
    	str_replace( ob_end_clean(), '', ob_end_clean() );
    	$this->jQuery();
    	echo ob_get_clean();
    	die;
    }

    and add: if ( !headers_sent() ) on the line before header("content-type:application/x-javascript");

    Which should look like:

    elseif ( isset( $_GET['type'] ) && $_GET['type'] === 'js' ) {
    
    	if ( !headers_sent() )
    		header("content-type:application/x-javascript");
    	ob_start();
    	str_replace( ob_end_clean(), '', ob_end_clean() );
    	$this->jQuery();
    	echo ob_get_clean();
    	die;
    }

    If you do so, can you let me know if this solves your issue.

    Uhhhh…. well…..
    In the file

    custom-login/custom-login.php

    I couldn’t even find the block of code you mention……..

    elseif ( isset( $_GET['type'] ) && $_GET['type'] === 'js' ) {
    
    	header("content-type:application/x-javascript");
    	ob_start();
    	str_replace( ob_end_clean(), '', ob_end_clean() );
    	$this->jQuery();
    	echo ob_get_clean();
    	die;
    }

    As a matter of interest… I searched in the code for
    elseif
    ob_start
    java

    and none of those search terms were even in the file custom-login.php

    And… I also went over to GitHub… and looked at the custom-login.php file there…

    So… unless I am super clueless, which is possible on any given day 🙂 ….

    I don’t know wassszzz- wit dat…

    I just deleted and reinstalled again the previous version.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘UPDATE –> PHP Errors –> Dashboard Errors…’ is closed to new replies.