I'm trying to update module and got next error:
Failed: DatabaseSchemaObjectDoesNotExistException: Cannot add field <em class="placeholder">NODE_CONVERT_TEMPLATE_TABLE</em>.<em class="placeholder">machine_name</em>: table doesn't exist. in DatabaseSchema_mysql->addField() (line 325 of /home/xxx/data/www/xxx.xxx/includes/database/mysql/schema.inc).

CommentFileSizeAuthor
#2 update_failed-2306677-2.patch657 bytessteven jones

Comments

steven jones’s picture

Priority: Normal » Critical

This is actually critical IMHO.

The DB schema is not created, because the table name is defined in the module file, but in Drupal 7 the module file won't be loaded until after the install :(

steven jones’s picture

Status: Active » Needs review
StatusFileSize
new657 bytes

Here's a patch that sorts the issue for me.

alcroito’s picture

I've applied a slightly modified patch.
The code should be in the latest dev version, once it's generated.

  • Placinta committed b0f63b5 on 7.x-1.x
    Issue #2306677 by Steven Jones | Xrobak: Fixed Update Failed:...
alcroito’s picture

Status: Needs review » Fixed
steven jones’s picture

@Placinta thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Xrobak’s picture

I can confirm that dev version fix this bug. Thx!

rfay’s picture

Could we please have a stable release that includes this patch? Thanks!

Aldu_boy’s picture

Drupal 7.69, upgraded from 6.38
when running update.php I still get the same issue.

node_convert module

Update #7001
Failed: DatabaseSchemaObjectDoesNotExistException: Cannot add field node_convert_templates.machine_name: table doesn't exist. in DatabaseSchema_mysql->addField() (line 333 of /home/fms190/public_html/drupal/includes/database/mysql/schema.inc).

Patch can't be applied as I have no ssh.
Edited node_convert.install but this doesn't help as the plug in is already installed.

Please help