Bug #60713
closedOAuth no longer works in 6.2
0%
Description
I have had the following running smoothly in TYPO3 6.0 and 6.1:
include_once 'HTTP/OAuth/Consumer.php';
require_once 'HTTP/OAuth.php';
require_once 'HTTP/OAuth/Consumer/Request.php';
require_once 'HTTP/Request2.php';
// Set up HTTP request
$httpRequest = new HTTP_Request2;
$httpRequest->setHeader('Accept-Encoding', '.*');
// Set up OAuth consumer
$request = new HTTP_OAuth_Consumer_Request;
$request->accept($httpRequest);
$consumer = new HTTP_OAuth_Consumer($consumer_key, $consumer_secret, $access_token, $access_secret);
$consumer->accept($request);
.... but after upgrading to TYPO3 6.2 it fails on all the include and require parts above!?!?
Updated by Markus Klein over 10 years ago
- Status changed from New to Needs Feedback
I guess TYPO3 already loads these libraries by default. Did you try removing these lines?
Updated by Claus Harup over 10 years ago
Yes I did but then:
// Set up HTTP request
$httpRequest = new HTTP_Request2;
$httpRequest->setHeader('Accept-Encoding', '.*');
// Set up OAuth consumer
$request = new HTTP_OAuth_Consumer_Request;
$request->accept($httpRequest);
$consumer = new HTTP_OAuth_Consumer($consumer_key, $consumer_secret, $access_token, $access_secret);
$consumer->accept($request);
crashed!
I set it up in Classes/Utility - should I do it differently?
Updated by Markus Klein over 10 years ago
"it crashed" does not say too much.
What is the error message?
Does the class, the code is in, use namespaces?
Updated by Alexander Opitz almost 10 years ago
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.