Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • fulippo

    (@fulippo)

    Some notices usually don’t make a plugin “buggy”.

    fulippo

    (@fulippo)

    Hi all,

    I had the empty file problem and found a solution I want to share with you.

    Just change the code around line 249 of /xml/json.php from this:

    function render_output() {
    
    	if ($this->format == 'json') {
    		header('Content-Type: application/json; charset=' . get_option('blog_charset'), true);
    		$this->output = json_encode($this->result);
    
    	} else {
    		header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
    		$this->output  = "<?xml version='1.0' encoding='UTF-8' standalone='yes'?>\n";
    		$this->output .= "<nextgen-gallery>" . $this->create_xml_array( $this->result )  . "</nextgen-gallery>\n";
    	}	
    
    }
    
    /**
     * PHP5 style destructor and will run when the class is finished.
     *
     * @return output
     */
    function __destruct() {
    	echo $this->output;
    }

    to this:

    function render_output() {
    
    	if ($this->format == 'json') {
    		header('Content-Type: application/json; charset=' . get_option('blog_charset'), true);
    		$this->output = json_encode($this->result);
    
    	} else {
    		header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
    		$this->output  = "<?xml version='1.0' encoding='UTF-8' standalone='yes'?>\n";
    		$this->output .= "<nextgen-gallery>" . $this->create_xml_array( $this->result )  . "</nextgen-gallery>\n";
    	}	
    
        echo $this->output;
    }
    
    /**
     * PHP5 style destructor and will run when the class is finished.
     *
     * @return output
     */
    function __destruct() {
    
    }

    It worked for me. Let me know if this is helpful.

    Forum: Plugins
    In reply to: WikiSearch Plug In bug?

    Hi Joe,

    this is a known issue. I’ve released a new version o wikisearch right today. This new version solves all the known bugs. You can get the new version of the plugin at http://www.filippopisano.com/plugins/wikisearch/

    Thanks for using my plugin.

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