Coder Social home page Coder Social logo

rotarymembership's People

Contributors

koolkatwebdesigns avatar posborn001002 avatar rotarytheme avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

rotarymetronyc

rotarymembership's Issues

Issue if update server is not available

Hello,
I am getting this error:

[Thu Jan 22 07:49:54.622373 2015] [:error] [pid 3052] [client 10.0.2.2:30919] PHP Fatal error: Cannot use object of type WP_Error as array in /var/www/wordpress/web/wp-content/plugins/rotarymembership/rotarypluginupdater.php on line 228
[Thu Jan 22 07:49:54.624090 2015] [:error] [pid 3052] [client 10.0.2.2:30919] PHP Stack trace:
[Thu Jan 22 07:49:54.625514 2015] [:error] [pid 3052] [client 10.0.2.2:30919] PHP 1. {main}() /var/www/wordpress/web/wp-admin/index.php:0
[Thu Jan 22 07:49:54.627374 2015] [:error] [pid 3052] [client 10.0.2.2:30919] PHP 2. require_once() /var/www/wordpress/web/wp-admin/index.php:10
[Thu Jan 22 07:49:54.628335 2015] [:error] [pid 3052] [client 10.0.2.2:30919] PHP 3. require_once() /var/www/wordpress/web/wp-admin/admin.php:31
[Thu Jan 22 07:49:54.629461 2015] [:error] [pid 3052] [client 10.0.2.2:30919] PHP 4. require_once() /var/www/wordpress/web/wp-load.php:29
[Thu Jan 22 07:49:54.631181 2015] [:error] [pid 3052] [client 10.0.2.2:30919] PHP 5. require_once() /var/www/wordpress/web/wp-config.php:80
[Thu Jan 22 07:49:54.634593 2015] [:error] [pid 3052] [client 10.0.2.2:30919] PHP 6. include_once() /var/www/wordpress/web/wp-settings.php:215
[Thu Jan 22 07:49:54.635365 2015] [:error] [pid 3052] [client 10.0.2.2:30919] PHP 7. RotaryMembership->__construct() /var/www/wordpress/web/wp-content/plugins/rotarymembership/rotarymembership.php:394
[Thu Jan 22 07:49:54.635935 2015] [:error] [pid 3052] [client 10.0.2.2:30919] PHP 8. RotaryMembership->setup_plugin_updates() /var/www/wordpress/web/wp-content/plugins/rotarymembership/rotarymembership.php:48
[Thu Jan 22 07:49:54.636551 2015] [:error] [pid 3052] [client 10.0.2.2:30919] PHP 9. WP_GitHub_Updater->__construct() /var/www/wordpress/web/wp-content/plugins/rotarymembership/rotarymembership.php:80
[Thu Jan 22 07:49:54.637079 2015] [:error] [pid 3052] [client 10.0.2.2:30919] PHP 10. WP_GitHub_Updater->set_defaults() /var/www/wordpress/web/wp-content/plugins/rotarymembership/rotarypluginupdater.php:87
[Thu Jan 22 07:49:54.637594 2015] [:error] [pid 3052] [client 10.0.2.2:30919] PHP 11. WP_GitHub_Updater->get_new_version() /var/www/wordpress/web/wp-content/plugins/rotarymembership/rotarypluginupdater.php:156

I have fixed it by changing (rotarypluginupdater.php line 225):
if ( is_wp_error( $raw_response ) )
$version = false;

to
if ( is_wp_error( $raw_response ) )
return false;

The problem is because in my case (my wordpress development machine is behind proxy) wordpress cannot access external urls...
The error I am getting is ($raw_response->get_error_message();):

Failed to connect to raw.github.com port 443: Connection timed out

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.