Closed (duplicate)
Project:
ZURB Foundation
Version:
7.x-4.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jun 2014 at 15:37 UTC
Updated:
1 Sep 2014 at 10:32 UTC
Jump to comment: Most recent
Comments
Comment #1
Soloriens commentedHi! Try to set back JQuery Update module from 1.10 to 1.7!
Comment #2
glebaron commentedI was able to figure out something that seems to work around the problem but I don't know anything about drupal internals or php so beware.
It's failing when the function template_process_field() in field.module tries to implode the classes_array. When the foundation theme or your subtheme is active it the 5th element points to an array
Implode doesn't seem to like nested elements.
The workaround is to delete the body field from both the basic_page and article content types and then recreate it.
After doing that the classes array now shows up like this:
and everything seems to work correctly.
Hopefully someone who knows what they are doing will find this useful.
Comment #3
alemadleiI figured out the same as the user glebaron,
This seems to be a problem in the template.php file of the foundation theme.
I have this line for the body field
A couple of lines below, for the image fields I see this
So based on the contents (assuming they want to replace the whole array, it should instead be
And
Either that, or they should just let the classes to just be added to the whole array.
In my case, I created a subtheme, so what I did was to create a custom, preprocess
This works for my particular needs. The eror message stopped showing afterwards.
Hopefully this helps someone else too.
Comment #4
crantok commentedThis is a duplicate of #2205041: template_process_field() . See that issue for a patch that fixes the problem. Although the patch is committed to the dev version, I don't recommend upgrading to the dev version because that gave me far more PHP errors.