Title: [Plugin: WPGPlus] error notices
Last modified: August 20, 2016

---

# [Plugin: WPGPlus] error notices

 *  Resolved [thomask](https://wordpress.org/support/users/thomask/)
 * (@thomask)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wpgplus-error-notices/)
 * Please, can you resolve the problem with error notices, from this perspective
   it is the worst plugin i know. Please use WP_DEBUG when creating/testing plugin
 * E.g.
 * Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/
   vhosts/seo-konzultant.cz/httpdocs/wp-content/plugins/wpgplus/WPGPlus.php on line
   140
 * Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/
   vhosts/seo-konzultant.cz/httpdocs/wp-content/plugins/wpgplus/WPGPlus.php on line
   151
 * Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/
   vhosts/seo-konzultant.cz/httpdocs/wp-content/plugins/wpgplus/gplus.php on line
   24
 * Warning: touch() [function.touch]: Unable to create file /var/www/vhosts/seo-
   konzultant.cz/httpdocs/wp-content/plugins/wpgplus/cookies.txt because Permission
   denied in /var/www/vhosts/seo-konzultant.cz/httpdocs/wp-content/plugins/wpgplus/
   gplus.php on line 27
 * Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot 
   be activated when safe_mode is enabled or an open_basedir is set in /var/www/
   vhosts/seo-konzultant.cz/httpdocs/wp-content/plugins/wpgplus/gplus.php on line
   63
 * Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/
   vhosts/seo-konzultant.cz/httpdocs/wp-content/plugins/wpgplus/gplus.php on line
   68
 * Fatal error: Call to a member function getAttribute() on a non-object in /var/
   www/vhosts/seo-konzultant.cz/httpdocs/wp-content/plugins/wpgplus/gplus.php on
   line 83
 * [http://wordpress.org/extend/plugins/wpgplus/](http://wordpress.org/extend/plugins/wpgplus/)

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

 *  Plugin Author [John Eckman](https://wordpress.org/support/users/johneckman/)
 * (@johneckman)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wpgplus-error-notices/#post-2792768)
 * Well, it is a pre 1.0 version, in development. I suspect by 1.0 the notices will
   be gone, but for now they are helpful to have in order to investigate what’s 
   gone wrong.
 * For example from what you’ve posts here I can see that your host permissions 
   are not allowing wpgplus to create files where it needs to, resulting in the 
   fwrite errors and the touch error – wpgplus needs to be able to create and edit
   the cookies.txt file, and needs to be able to write a debug.txt in its own directory.
 * Further, the curl error lets me know that this won’t work for you because of 
   the way safe mode is configured by your PHP.
 * Obviously the plugin could do a better job of determining this and just stopping,
   but like I said, it is a development version . . .
 *  Thread Starter [thomask](https://wordpress.org/support/users/thomask/)
 * (@thomask)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wpgplus-error-notices/#post-2792773)
 * I just want to point to this problem, because it makes your plugin unusable by
   anyone, who takes care of security. E.g. about the problem with permissions –
   first imo it should be possible to use wp way of writing to plugins folder, which
   works normaly when installing plugins. Or maybe even better – you should use 
   wp-content.
    about the curl – again wp contains it’s own HTTP API ([http://codex.wordpress.org/HTTP_API](http://codex.wordpress.org/HTTP_API))
   which should be used … Your plugin idea is great, so please do not take my comments
   any bad, i just want to help it improve
 *  Plugin Author [John Eckman](https://wordpress.org/support/users/johneckman/)
 * (@johneckman)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wpgplus-error-notices/#post-2792781)
 * If by the “wp way of writing to plugins folder” you mean [http://codex.wordpress.org/Filesystem_API](http://codex.wordpress.org/Filesystem_API),
   I’d rather not have to ask the user for ftp credentials to their hosting provider
   just to set a cookie.
 * I will look into using wp-content/uploads/ instead, though personally I’d prefer
   plugins keep their files in their own directories.
 * Using the wp HTTP API rather than cUrl is definitely an option as the plugin 
   matures (and I have used it in other plugins) but in development stages I prefer
   to use curl directly as it keeps the code more portable outside WordPress.
 * This plugin started as a port of a non-WordPress specific PHP script (as noted
   in the readme and in the code itself). It’s going to be much easier to keep up
   with updates of that script if I stay in curl than if I migrate to the wp HTTP
   API.
 *  Thread Starter [thomask](https://wordpress.org/support/users/thomask/)
 * (@thomask)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wpgplus-error-notices/#post-2792782)
 * _re: If by the “wp way of writing to plugins folder” you mean [http://codex.wordpress.org/Filesystem\_API](http://codex.wordpress.org/Filesystem_API),
   I’d rather not have to ask the user for ftp credentials to their hosting provider
   just to set a cookie._
 * and you are asked for creentials when your are installing or updating plugin (
   i’m not)? It depends on the settings of the web probably, but maybe if you would
   create the file and then just update it, it would not need the credentials. Or
   maybe (I’m not sure) it could be possible to create this file during instalation
   with some writable attributes.
 * anyway thank you for working on the improvements
 *  Plugin Author [John Eckman](https://wordpress.org/support/users/johneckman/)
 * (@johneckman)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wpgplus-error-notices/#post-2792808)
 * thomas – check out version 0.8 – I’ve migrated to WordPress HTTP API, using transients
   for cookies, and made the debug file optional.

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

The topic ‘[Plugin: WPGPlus] error notices’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpgplus.svg)
 * [WPGPlus](https://wordpress.org/plugins/wpgplus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpgplus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpgplus/)
 * [Active Topics](https://wordpress.org/support/plugin/wpgplus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpgplus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpgplus/reviews/)

## Tags

 * [error notices](https://wordpress.org/support/topic-tag/error-notices/)

 * 5 replies
 * 2 participants
 * Last reply from: [John Eckman](https://wordpress.org/support/users/johneckman/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wpgplus-error-notices/#post-2792808)
 * Status: resolved