I have been delaying upgrades because I can't seem to delete templates created a decade ago using Contemplate.
Steps to reproduce
Deleting or editing the template from admin/structure/types/templates produces an unexpected error. Logs report TypeError: Argument 1 passed to drupal_attributes() must be of the type array, string given, called in ... /includes/form.inc on line 4103 in drupal_attributes() (line 2470 of ... /includes/common.inc).
content_view_field() always returns '' in PHP 7.x even if the field is instantiated and should be processed.
This seems to be a problem with variable references.
It's been a while since I've submitted patches so please let me know why my submission is wrong.
Thanks.
function content_view_field($field, $node, $teaser = FALSE, $page = FALSE) {
$output = '';
if (isset($node->$field['field_name'])) {
$items = $node->$field['field_name'];
We have several content types on the site that utilize fields that allows for multiple values per field. In the last two days we've noticed we cannot add another item. The log yields the following error:
Notice: Undefined index: #ajax in ajax_form_callback() (line 395 of /home/~/public_html/includes/ajax.inc).
Converted numerical CCK fields that have no default and are not mandatory cause the following SQL exception in PostgreSQL backend, when they are left blank:
Has anybody had success in migrating date fields from D6 to D8?
("date" fields provided by the Date module, used as CCK fields on nodes, stored as varchar(20) in D6).