[TYPO3-mvc] Cannot cast objectoftype"Tx_Extbase_Persistence_QueryResult" to string.

Claus Due claus at wildside.dk
Mon Jun 13 14:06:45 CEST 2011


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



More information about the TYPO3-project-typo3v4mvc mailing list