Manually removing templates

Problem/Motivation

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 null in PHP 7.x

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'];

to

AJAX error on "add another item" unlimited field values

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 numeric fields cause SQL error on insert

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:

Migration D6 > D8 of CCK date fields

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).

Any help or scripts would be great.

Pages

Subscribe with RSS Subscribe to RSS - CCK