totoff Posted January 8, 2016 Share Posted January 8, 2016 Hi all, I'm getting an error with this module when trying to perform a core update: Method WireHttp::setTimeout does not exist or is not callable in this context PW 2.5.3 in shared hosting running smoothly apart from that. Any ideas? Thanks Link to comment Share on other sites More sharing options...
BFD Calendar Posted January 24, 2016 Share Posted January 24, 2016 I'm also getting an error on PW 2.6.23 and 2.7.2: Error loading GitHub branches - https://api.github.com/repos/ryancramerdesign/Processwire/branches - HTTP error(s): 403 Forbidden: 2: fopen(https://api.github.com/repos/ryancramerdesign/Processwire/branches): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden , Forbidden - Check that HTTP requests are not blocked by your server. Link to comment Share on other sites More sharing options...
LostKobrakai Posted January 24, 2016 Share Posted January 24, 2016 As the error suggests, did you check if fopen does work and isn't blocked? Link to comment Share on other sites More sharing options...
BFD Calendar Posted January 24, 2016 Share Posted January 24, 2016 Uhm I didn't because I have no idea where and how to do that. I just have my sites hosted and I'm happy if they work... Thing is that about a month ago it worked because I upgraded one site to 2.7.2 without any problem. Link to comment Share on other sites More sharing options...
BitPoet Posted January 24, 2016 Share Posted January 24, 2016 fopen()ing that URL also fails on my local host using both PHP 5.6 and 7, so I'd tentatively point my finger towards github (allow_url_fopen is enabled and requests from the browser return the expected JSON content). Link to comment Share on other sites More sharing options...
BFD Calendar Posted January 24, 2016 Share Posted January 24, 2016 Yep, upgraded to PHP 5.6 since 5.4 will no longer be supported by my hosting sometime soon. Link to comment Share on other sites More sharing options...
BitPoet Posted January 24, 2016 Share Posted January 24, 2016 Okay, I think I've tracked it down. The problem vanished as soon as set PHP's user_agent, which was empty in all configurations. So either setting that in php.ini, in the .htaccess or somewhere early in the PHP code should get things running again. Link to comment Share on other sites More sharing options...
BFD Calendar Posted January 26, 2016 Share Posted January 26, 2016 BitPoet, can you please elaborate on the 'where' you changed user_agent? I don't see it in my .htaccess. Link to comment Share on other sites More sharing options...
BitPoet Posted January 27, 2016 Share Posted January 27, 2016 It's a php.ini directive and should be set there, if possible. If PHP runs as an apache module, you should be able to set php_value user_agent "PHP" there. Or you could set it in PW's init.php. ini_set("user_agent", "PHP " . PHP_VERSION); 2 Link to comment Share on other sites More sharing options...
BitPoet Posted January 27, 2016 Share Posted January 27, 2016 @BFD, I've got a fork of ProcessWireUpgrade on github. Perhaps you could try if this fixes the issue without any config changes on your part (just make sure to download the dev-useragentfix branch to which the link points, not master). Link to comment Share on other sites More sharing options...
BFD Calendar Posted January 27, 2016 Share Posted January 27, 2016 Modules show as Upgrades 0.0.6 and Upgrades Checker 0.0.5. But I still get error "Error loading GitHub branches - https://api.github.com/repos/ryancramerdesign/Processwire/branches - HTTP error(s): 403 Forbidden: 2: fopen(https://api.github.com/repos/ryancramerdesign/Processwire/branches): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden , Forbidden - Check that HTTP requests are not blocked by your server." Link to comment Share on other sites More sharing options...
gunter Posted March 12, 2016 Share Posted March 12, 2016 I wanted upgrade from Processwire from 3.0.8 to 3.0.11via the Upgrade Module (0.0.6),but it said: "Unable to locate ZIP: C:/Users/gf/Documents/UwAmp/www/fullpage3/site/assets/cache/ProcessWireUpgrade/devns.zip"but the module downloaded the "wire-3.0.11" folder into the main directory, so I did the upgrade by hand... Link to comment Share on other sites More sharing options...
lpa Posted May 3, 2016 Share Posted May 3, 2016 Trying to use this module with PW version 2.4.0, I get the following error: TemplateFile: Method WireHttp::setTimeout does not exist or is not callable in this context ProcessWireUpgradeCheck.module(269): Wire->__call('setTimeout', Array) The module page says, it should be compatible with 2.4. Link to comment Share on other sites More sharing options...
adrian Posted May 3, 2016 Share Posted May 3, 2016 The setTimeout method wasn't added to WireHttp until PW 2.5: https://github.com/ryancramerdesign/ProcessWire/commit/c06209b4e03036cf0026b57c6015192dc61c936d#diff-1972780faf7a13076c1284fbb478144a so I believe Ryan mistakenly added 2.3 and 2.4 to the list of compatible versions. But why not upgrade to 2.7 - 2.4 is very old now - so many amazing new features to make use of. Link to comment Share on other sites More sharing options...
lpa Posted May 3, 2016 Share Posted May 3, 2016 Yes, we might upgrade soon to 2.7. Just have to test properly. I have need for AdminRestrictBranch module which is also not compatible with 2.4, so have to upgrade. Link to comment Share on other sites More sharing options...
LostKobrakai Posted May 3, 2016 Share Posted May 3, 2016 But why not upgrade to 2.7 - 2.4 is very old now - so many amazing new features to make use of. Maybe that was the reason to install the module? @Ipa This might be an addition from after Ryan added the module to the mods directory. Link to comment Share on other sites More sharing options...
adrian Posted May 3, 2016 Share Posted May 3, 2016 Yes, we might upgrade soon to 2.7. Just have to test properly. I have need for AdminRestrictBranch module which is also not compatible with 2.4, so have to upgrade. Did you test AdminRestrictBranch with 2.4 or are you just basing it on what it says in the modules directory? If you did test and got an error, could you post for me - maybe it will be an easy fix - no promises - I don't want to spend a lot of time making it work with such an old version of PW, but if I can help, I will. 1 Link to comment Share on other sites More sharing options...
BFD Calendar Posted August 25, 2016 Share Posted August 25, 2016 I just upgraded manually to 2.8.30 but still get the "Error loading GitHub branches - https://api.github.com/repos/ryancramerdesign/Processwire/branches - HTTP error(s): 403 Forbidden: 2: fopen(https://api.github.com/repos/ryancramerdesign/Processwire/branches): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden , Forbidden - Check that HTTP requests are not blocked by your server." Can anyone explain me in plain text how to solve this? Link to comment Share on other sites More sharing options...
Hector Nguyen Posted August 30, 2016 Share Posted August 30, 2016 I'm sorry if content is duplicated, but I'm wondering if it work with 3.0 version? Link to comment Share on other sites More sharing options...
LostKobrakai Posted August 30, 2016 Share Posted August 30, 2016 It does with 3.0. Only 2.8 is currently not available due to the temp situation of having it as extra repository on github. 1 Link to comment Share on other sites More sharing options...
Tom. Posted September 27, 2016 Share Posted September 27, 2016 Doesn't work for PW3.0.24 3 Link to comment Share on other sites More sharing options...
adrian Posted September 27, 2016 Share Posted September 27, 2016 5 hours ago, Tom. said: Doesn't work for PW3.0.24 Yeah @ryan needs to start pointing this module to the new repo: https://github.com/processwire/processwire 2 Link to comment Share on other sites More sharing options...
adrian Posted December 10, 2016 Share Posted December 10, 2016 On 9/27/2016 at 7:24 AM, adrian said: Yeah @ryan needs to start pointing this module to the new repo: https://github.com/processwire/processwire FYI - this module has been updated and now points to the new repos: https://github.com/ryancramerdesign/ProcessWireUpgrade/commit/5333322703f0f47a6d6454e8fdb3107db330eec4 Link to comment Share on other sites More sharing options...
Richard Jedlička Posted December 10, 2016 Share Posted December 10, 2016 Yeah, it is weird. I have a latest version (0.0.7) of a module but it doesn't offer me a PW version from processwire/processwire repo. Only devns branch from old repo which is version 3.0.33, i installed it and realized it later. Link to comment Share on other sites More sharing options...
adrian Posted December 10, 2016 Share Posted December 10, 2016 3 minutes ago, Richard Jedlička said: Yeah, it is weird. I have a latest version (0.0.7) of a module but it doesn't offer me a PW version from processwire/processwire repo. Only devns branch from old repo which is version 3.0.33, i installed it and realized it later. Definitely working here. Have you done a Modules > Refresh? Maybe it is caching the source? 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now