CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #8472

error while fetching TYPO3 versions

Added by Philipp Bergsmann almost 3 years ago. Updated over 2 years ago.

Status:Resolved Start date:2010-06-24
Priority:Should have Due date:
Assignee:Martin Ficzel % Done:

80%

Category:-
Target version:-
Votes: 0

Description

I got this error while fetching the latest TYPO3 versions from the SVN using the scheduler:

Core: Error handler (BE): PHP Warning: file_get_contents(https://svn.typo3.org/TYPO3v4/Core/tags/): failed to open stream: no suitable wrapper could be found in /var/www/opendo.at/subdomains/caretaker/www/typo3conf/ext/caretaker/classes/helpers/class.tx_c

I think this is server-specific. You are using cURL in all the other functions, so i thought i'd patch this one. While testing I saw, that you are fetching instable versions as the latest. E.g. the latest TYPO3 4.4 version fetched is 4.4.0beta3. I changed that and now it fetches the latest stable version (i think this is the expected behavior).

I think there should be a generic http-request class (at least i didn't find any), so you won't have to initiate the cURL request in every test-case.

I hope this patch helps (and is correct) - feedback is welcome!

class.tx_caretaker_LatestVersionsHelper.php.patch (1.4 kB) Philipp Bergsmann, 2010-06-24 01:10

class.tx_caretaker_LatestVersionsHelper.php.v2.patch (2.2 kB) Philipp Bergsmann, 2010-06-28 11:10

History

Updated by Martin Ficzel almost 3 years ago

Thanks for your help. Could you send the patch in unified diff format ( diff -u ). My ide cannot handle the format you provided.

Regards, Martin

Updated by Martin Ficzel almost 3 years ago

  • Status changed from New to Needs Feedback

Updated by Martin Ficzel almost 3 years ago

  • Assignee set to Martin Ficzel

Updated by Philipp Bergsmann almost 3 years ago

Attached the unified diff

Updated by Martin Ficzel almost 3 years ago

  • % Done changed from 0 to 80

The patch is applied i will close this Bug if no problems with the patch occur.

Updated by Martin Ficzel almost 3 years ago

  • Status changed from Needs Feedback to Accepted

Updated by Martin Ficzel almost 3 years ago

  • Status changed from Accepted to Resolved

it seems that everything is fine

Also available in: Atom PDF