Support » Plugin: PHP Everywhere » Blank Screen on Page Update

  • Having a strange problem with PHP Everywhere that disappears when I disable the plugin. A site I’m currently working on has multiple MySQL calls on a single page and for some reason, whenever I click the ‘Update’ button on the page editor in WP Backend, the screen refreshes into a blank page rather than back to the editor with the usual ‘Page Updated View Page’ message.

    Is this a known problem? Are there some solutions I can try to fix this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    I have the same problem, the plugin not work with the 4.8 WordPress’ version.

    Will we see an upgrade of PHP Everywhere ?

    Plugin Author Alexander Fuchs

    (@alexander_fuchs)

    Hey guys, thanks for reporting the bug. I will look into it.

    Plugin Author Alexander Fuchs

    (@alexander_fuchs)

    Can one of you post some example code. I can’t really reproduce the problem on my installation.

    Ibby

    (@ibby)

    Sorry for taking so long to reply to this.

    The issue I’m having is when connecting to a local server database using the mysql_ method. I have two functions to connect and disconnect from the db table I am retrieving information from:

    /***************************************************************
    /******************** Connect to Database **********************
    /***************************************************************/
    
    if(!session_id ()){
          session_start();
    }
    
    function dbConnect()
    {
    	/* conecting to the mySQL database */
    	$db = mysql_connect("localhost","username", "password");
    	mysql_error();
    	if(!$db)
    	 {
    		echo " An Error has occurred. Unable to connect to the database.\n";
    		exit;
    	}
    	mysql_select_db ("db_name");
    		mysql_error();
    	return $db;
    }
    
    /***************************************************************
    /******************** Disconnect to Database *******************
    /***************************************************************/
    
    function dbClose($dbConnection)
    {
    	mysql_close($dbConnection); // Close connection to database.
    }
    

    As soon as this function is called in any page PHP, when I click ‘update’ the page will reload to a blank screen although sometimes the code is changed and saved as well.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Blank Screen on Page Update’ is closed to new replies.