[TYPO3-mvc] Cannot castobjectoftype"Tx_Extbase_Persistence_QueryResult" to string.

Johannes C. Schulz - EnzephaloN IT-Solutions info at enzephalon.de
Mon Jun 13 15:12:03 CEST 2011


Thanks for the link. I installed FED, but:
If I try to insert a frontend-plugin I get an error: Fatal error:
require_once() [function.require]: Failed opening required
'D:/xampp/htdocs/weimar.de/typo3/sysext/t3editor/classes/class.tx_t3editor_t
ceforms_wizard.php' (include_path='.;D:\xampp\php\pear\') in
D:\xampp\htdocs\weimar.de\typo3conf\ext\fed\Configuration\Wizard\FlexFormCod
eEditor.php on line 39

If I insert the tag shown on your page, no additional information than the
error-message is shown.

---

I checked my TCA - couldn't find any problem or fault.

I replaced all of the pagination-widget from this fluid-template, changed
the f:for to <f:for each="{teaseritems}" as="teaseritem"> and got again:
Fatal error: Call to a member function getParentKeyFieldName() on a
non-object in
D:\xampp\htdocs\weimar.de\typo3\sysext\extbase\Classes\Persistence\Storage\T
ypo3DbBackend.php on line 654

I did not see the fault...

Best regards
Johannes


-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Claus Due
Gesendet: Montag, 13. Juni 2011 14:07
An: TYPO3 v4 MVC project
Betreff: Re: [TYPO3-mvc] Cannot
castobjectoftype"Tx_Extbase_Persistence_QueryResult" to string.

Now I'm not sure what causes the problem. I was expecting to see something
like {teasers} being used in the template.

Question - do you remove both the opening and closing paginate tag and still
get the error below? If so, then that could indicate a problem in your TCA.

Also, I have a sneaking suspicion that some template variable may have
changed unexpectedly. If you need to be able to inspect all variables, not
just the ones you know about, then perhaps you can find some help from FED,
namely the Debug ViewHelper suite.

http://fedext.net/documentation/viewhelpers/development-assistants/debugging
-assistants/

That will tell you which variables you have registered in your template and
which data they contain. If you use it before a ViewHelper tag and then
afterwards inside a ViewHelper tag, then you can also see which template
variables that particular ViewHelper adds to the stack.

--
Med venlig hilsen / Kind regards

Claus Due
Developer
--
Wildside A/S
Katrinebjergvej 113, DK-8200 Århus N
tlf. 86 12 64 65
http://www.wildside.dk

On Jun 13, 2011, at 1:36 PM, Johannes C. Schulz - EnzephaloN IT-Solutions
wrote:

> Thanks, but these are not the bad tags...
> If I remove
> 
> <enzteaserlist:widget.paginate objects="{teaseritems}" as="teasers"
> configuration="{itemsPerPage:10,insertAbove:0,insertBelow:1}">
> 
> The error will disappear, but then:
> 
> Fatal error: Call to a member function getParentKeyFieldName() on a
> non-object in
>
D:\xampp\htdocs\weimar.de\typo3\sysext\extbase\Classes\Persistence\Storage\T
> ypo3DbBackend.php on line 654

_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc




More information about the TYPO3-project-typo3v4mvc mailing list