Closed (fixed)
Project:
Lost & found issues
Component:
Twig templates conversion (front-end branch)
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 Jan 2013 at 18:11 UTC
Updated:
18 Sep 2013 at 11:35 UTC
Jump to comment: Most recent
Comments
Comment #1
c4rl commentedYes, this is from calling theme('table_cell') from a Twig file
In theme.inc I did the following:
Which produced:
So the $variables array is actually a TwigReference object. So I think this is related to #1842160: Consider appropriate usage of theme() from within Twig templates. I'll do some more investigating, but let me try to solve that other issue and perhaps this one will also be resolved.
Comment #2
steveoliver commentedc4rl: as you suspected, this was caused by a TwigReference object being passed in to theme() when an array was expected. Fixed in the sandbox in git commit 249490c.
Comment #4
Owais Kazmi commentedUnsupported operand types in /includes/theme.inc on line 817
Comment #5
soulston commented@Owais Kazmi, are you using the sandbox or drupal 8 core? If it's the sandbox as far as I was aware that was shelved/archived some time ago. If this is a bug against core it's better to open a new ticket.