Bug #26341
Cannot use object of type stdClass as array...
Status:
Resolved
Priority:
Should have
Assignee:
-
Start date:
2011-04-27
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.5
Description
Following the manual:
- create a content element with the plugin.
- create an authorization record.
- browse the page with the content element and I get the error: "Fatal error: Cannot use object of type stdClass as array..."
This is because the content element field <auth> isn't referenced to the authorization record so $auth variable after query the DB (line 86 of class.tx_odsfacebook_pi1.php) is false.
If I edit the content element and save it again then it becomes referenced to the authorization record and the problem is solved.
But there should be a check for this, maybe in the init function of class.tx_odsfacebook_pi1.php
It would be also useful if the manual tells to create the authorization record before the content element or tells to edit again the content element after the creation of the authorization record.
Updated by Robert Heel over 9 years ago
- Status changed from New to Resolved
Should be solved since 1.2.0