Error on database updates from 2.5->3.1

Created on 18 December 2015, about 9 years ago
Updated 22 February 2023, almost 2 years ago

Hello!

I've come across some implications in updating the database after updating the code.
In fact in one case I've got more than 300 nodes which didn't transfer successfully, which I can fix myself but the updates simply aren't being executed. The current schema where this is being executed is 7300.

I'm not sure how many this would affect, but is there a quick and dirty way around this?

Fatal error: Cannot access empty property in /mnt/www/html/---/docroot/sites/all/modules/contrib/weight/weight.install on line 102
Drush command terminated abnormally due to an unrecoverable error.                                                                                                                                                                     [error]
Error: Cannot access empty property in /mnt/www/html/---/docroot/sites/all/modules/contrib/weight/weight.install, line 102
The external command could not be executed due to an application error.

Here's the block of code returning the error, the line being reported starts with $node.

if ($node = node_load($weight->entity_id)) {
        $node->{$field_name}[$node->language][0]['value'] = $weight->weight;
        node_save($node);
      }
🐛 Bug report
Status

Closed: duplicate

Version

3.0

Component

Code

Created by

🇦🇺Australia fubarhouse

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024