Title: [Plugin: Client Status] PHP Warnings destroy XML
Last modified: August 20, 2016

---

# [Plugin: Client Status] PHP Warnings destroy XML

 *  [Knut Sparhell](https://wordpress.org/support/users/knutsp/)
 * (@knutsp)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-client-status-php-warnings-destroy-xml/)
 * In `data.php` the XML PI is echoed before `plugins.ph`p 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://wordpress.org/extend/plugins/client-status/](http://wordpress.org/extend/plugins/client-status/)

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

 *  Plugin Author [ericjuden](https://wordpress.org/support/users/ericjuden/)
 * (@ericjuden)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-client-status-php-warnings-destroy-xml/#post-2933383)
 * Thanks, I’ve added ini_set(“display_errors”, 0) as the first line in the xml 
   file.
 * Eric
 *  Plugin Author [ericjuden](https://wordpress.org/support/users/ericjuden/)
 * (@ericjuden)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-client-status-php-warnings-destroy-xml/#post-2933384)
 * Knut,
 * If you are interested in how 1.4 is coming, you can check out what I have here:
   [http://plugins.trac.wordpress.org/browser/client-status/tags/1.4_BETA](http://plugins.trac.wordpress.org/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](https://wordpress.org/support/users/knutsp/)
 * (@knutsp)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-client-status-php-warnings-destroy-xml/#post-2933385)
 * 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.wordpress.org/Function_Reference/plugin_dir_path](http://codex.wordpress.org/Function_Reference/plugin_dir_path)
   and also [http://codex.wordpress.org/Function_Reference/admin_url](http://codex.wordpress.org/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](https://wordpress.org/support/users/knutsp/)
 * (@knutsp)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-client-status-php-warnings-destroy-xml/#post-2933386)
 * 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](https://wordpress.org/support/users/ericjuden/)
 * (@ericjuden)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-client-status-php-warnings-destroy-xml/#post-2933389)
 * 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](https://wordpress.org/support/users/knutsp/)
 * (@knutsp)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-client-status-php-warnings-destroy-xml/#post-2933537)
 * Do you plan to update this plugin?
 *  Plugin Author [ericjuden](https://wordpress.org/support/users/ericjuden/)
 * (@ericjuden)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-client-status-php-warnings-destroy-xml/#post-2933538)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/client-status_5a91b2.svg)
 * [Client Status](https://wordpress.org/plugins/client-status/)
 * [Support Threads](https://wordpress.org/support/plugin/client-status/)
 * [Active Topics](https://wordpress.org/support/plugin/client-status/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/client-status/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/client-status/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [ericjuden](https://wordpress.org/support/users/ericjuden/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-client-status-php-warnings-destroy-xml/#post-2933538)
 * Status: not resolved