• In data.php the XML PI is echoed before plugins.php is required. This will generate a warning when others plugins try something like session_start or to set headers.

    Please move this echo line to below the require_once statements. There must be no output before loading WP core.

    May be also set PHP display_errors false to ensure the XML is not polluted with any warnings or errors coming from other plugins that should be irrelevant to producing the XML.

    http://ww.wp.xz.cn/extend/plugins/client-status/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author ericjuden

    (@ericjuden)

    Thanks, I’ve added ini_set(“display_errors”, 0) as the first line in the xml file.

    Eric

    Plugin Author ericjuden

    (@ericjuden)

    Knut,

    If you are interested in how 1.4 is coming, you can check out what I have here: http://plugins.trac.ww.wp.xz.cn/browser/client-status/tags/1.4_BETA

    It is usable, but I’m still trying to figure out the client updates from the dashboard site. If the site has more than 3 updates, it finishes 3 and leaves the site in maintenance mode.

    Eric

    Thread Starter Knut Sparhell

    (@knutsp)

    Thank you! Testing it ….

    Tried to install it in folder beta-client-status just to see that you have hard coded all the paths.

    Please see http://codex.ww.wp.xz.cn/Function_Reference/plugin_dir_path and also http://codex.ww.wp.xz.cn/Function_Reference/admin_url will probably be handy.

    Replaced all occurrences of client-status with beta-client-status in constants.php and go on …

    Fatal error: Call-time pass-by-reference has been removed in PHP 5.4 (Deprecated since PHP 5.3). Many places where functions are called with the & operator as parameter prefix.

    Fixed all occurrences and now it activates and looks just fine. Will take a closer look later.

    Thread Starter Knut Sparhell

    (@knutsp)

    When I have activated the beta on a client, the server installation refuses to show any status, saying “You must enter a site URL to retrieve data”. But I have a site URL for the client, of course. Strange, since the beta actually retrieves all the statuses when the client runs version 1.3.3 (except for the new status XML-RPC on/off, as expected).

    I could contribute by writing tickets on Trac, but it seems I need to add a component keyword, like client-status to address this plugin?

    Plugin Author ericjuden

    (@ericjuden)

    Thanks for the feedback. I’ll work on the hard coded paths and the call-time pass-by-reference errors.

    As for Trac, I’m fairly certain that is only for core. Best thing for now would be to keep posting in the forums.

    Eric

    Thread Starter Knut Sparhell

    (@knutsp)

    Do you plan to update this plugin?

    Plugin Author ericjuden

    (@ericjuden)

    Knut,

    I have not had any time to commit to this project in a while. I’m sorry for that. I would still like to make another release.

    Eric

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

The topic ‘[Plugin: Client Status] PHP Warnings destroy XML’ is closed to new replies.