Switching from RC2 to RC3 sources then running update.php fails:

Checked available update data for 114 projects.
Failed to get available update data for one project.
Last checked: 0 sec ago (Check manually)

Updating modules and themes requires FTP access to your server. See the handbook for other update methods.
All of your projects are up to date.

So SQL changes ( eg label field added to "image_styles" table ) create errors

CommentFileSizeAuthor
#3 drush.txt422.47 KBMakemeweb

Comments

bart.hanssens’s picture

Assigned: Unassigned » bart.hanssens
Status: Active » Postponed (maintainer needs more info)

Please specify which SQL errors exactly: update.php runs scripts to upgrade database, but it doesn't download new versions of projects (that is what the Update Manager core module does)

Can you also include a list of active modules ? (e.g. by running drush pm-info)

Makemeweb’s picture

Makemeweb’s picture

StatusFileSize
new422.47 KB

See attached file

bart.hanssens’s picture

Can't reproduce, can you add the exact SQL errors and check if the original source was indeed rc2 ?

bart.hanssens’s picture

Title: Update script fails » Drush fra -y fails
Assigned: bart.hanssens » Echofive
Issue tags: +release1.0

It seems that drush fails, so I'll change the title of the ticket.

Copying latest -dev to existing code base and running drush cc all ; drush fra -y produces errors:

WD php: FieldException: Cannot change an existing field's type. in  field_update_field() (line 234 of ../modules/field/field.crud.inc).
FieldException: Cannot change an existing field's type. in field_update_field() (line 234 of .../field/field.crud.inc).
Drush command terminated abnormally due to an unrecoverable error. 

and

The following modules will be reverted: ofed_feature_download, ofed_feature_event, ofed_feature_faq, ofed_feature_job, ofed_feature_meeting, ofed_feature_news, ofed_feature_page, ofed_feature_photogallery, ofed_feature_press, ofed_feature_slider, ofed_feature_slideshow, ofed_feature_team, ofed_feature_video
Do you really want to continue? (y/n): y
Do you really want to revert image? (y/n): y
Reverted image.                                                      [ok]
Do you really want to revert node? (y/n): y
Reverted node.                                                       [ok]
Do you really want to revert variable? (y/n): y
Reverted variable.                                                   [ok]
Do you really want to revert taxonomy? (y/n): y
Reverted taxonomy.                                                   [ok]
Do you really want to revert variable? (y/n): y
Reverted variable.                                                   [ok]
Do you really want to revert variable? (y/n): y
Reverted variable.                                                   [ok]

Do you really want to revert field_base? (y/n): y
WD php: FieldException: Cannot change an existing field's type. in   [error]
field_update_field() (line 234 of .../modules/field/field.crud.inc).
Cannot modify header information - headers already sent by (output   [warning]
started at /usr/share/php/drush/includes/output.inc:37)
bootstrap.inc:1216
FieldException: Cannot change an existing field's type. in field_update_field() 
(line 234 of .../modules/field/field.crud.inc).
Drush command terminated abnormally due to an unrecoverable error.   [error]

Do you really want to revert image? (y/n): y
Reverted image.                                                      [ok]
bart.hanssens’s picture

Status: Postponed (maintainer needs more info) » Active
bart.hanssens’s picture

ofed_feature_job feature seems to be the troublemaker

Babou’s picture

Assigned: Echofive » Babou

Thanks for the debug, I'll have a look to the changes made to this module since the RC2 release.

Babou’s picture

The issue is related to the changes that were asked in #2087513: Jobs CMS view proposal.

The field Diploma(s) was a textfield and is now a textarea. Maybe I can put it back as a textfield with multiple values. I'll check it later.

bart.hanssens’s picture

Priority: Normal » Major
Babou’s picture

Version: 7.x-1.0-rc3 » 7.x-1.x-dev
Assigned: Babou » bart.hanssens
Status: Active » Fixed

The feature has been modified in order to use multiple texfields instead of a textarea. Therefore the field ofed_job_diplomas no longer change its type compared to the state in RC2.

The problem should be solved.

It was tested against a freshly installed RC2 distribution without any problems.

bart.hanssens’s picture

Status: Fixed » Needs work

Trying to upgrade minifed to latest dev.

19 updates available (ofed features)

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows.
Path: https://minifed.rovin.be/update.php?op=selection&token=jJaYqCHSu2Abtu4cCczkmf1yPRxgxzBGdqhB6LcSOxQ&id=92&op=do

StatusText: parsererror ResponseText: Fatal error: Class 'RulesEventHandlerEntityBundle' not found in /srv/http/minifed.rovin.be/profiles/openfed/modules/contrib/rules/modules/node.rules.inc on line 147 

Call Stack: 0.0030 887664 
1. {main}() /srv/http/minifed.rovin.be/update.php:0 7.8258 19887336 
2. _batch_page() /srv/http/minifed.rovin.be/update.php:497 7.8261 19898232
3. _batch_do() /srv/http/minifed.rovin.be/includes/batch.inc:80 7.8261 19898232
4. _batch_process() /srv/http/minifed.rovin.be/includes/batch.inc:161 8.2459 19978712 5. call_user_func_array('update_do_one', array (0 => 'openfed', 1 => 7103, 2 => array (0 => 'openfed_update_7102'), 3 => array ('sandbox' => array (...), 'results' => array (...), 'finished' => 1, 'message' => ''))) /srv/http/minifed.rovin.be/includes/batch.inc:284 8.2459 19978792
6. update_do_one($module = 'openfed', $number = 7103, $dependency_map = array (0 => 'openfed_update_7102'), $context = array ('sandbox' => array (), 'results' => array ('openfed' => array (...), 'rules_scheduler' => array (...), 'rules' => array (...), 'ofed_feature_press' => array (...), 'ofed_feature_photogallery' => array (...), 'ofed_feature_slideshow' => array (...), 'ofed_feature_video' => array (...)), 'finished' => 1, 'message' => '')) /srv/http/minifed.rovin.be/includes/batch.inc:284 8.2460 19979568
7. openfed_update_7103(array ()) /srv/http/minifed.rovin.be/includes/update.inc:963 8.3070 19982744
8. user_role_grant_permissions($rid = '4', $permissions = array (0 => 'access ofed_switcher administration', 1 => 'access ofed_switcher content')) /srv/http/minifed.rovin.be/profiles/openfed/openfed.install:120 8.3070 19982744
9. user_permission_get_modules() /srv/http/minifed.rovin.be/modules/user/user.module:3094 8.3277 20408368
10. module_invoke($module = 'rules', $hook = 'permission') /srv/http/minifed.rovin.be/modules/user/user.module:3032 8.3277 20408912
11. call_user_func_array('rules_permission', array ()) /srv/http/minifed.rovin.be/includes/module.inc:866 8.3277 20409280
12. rules_permission() /srv/http/minifed.rovin.be/includes/module.inc:866 8.3277 20412936
13. rules_fetch_data($hook = 'plugin_info') /srv/http/minifed.rovin.be/profiles/openfed/modules/contrib/rules/rules.module:1184 8.3277 20413984
14. module_implements($hook = 'rules_plugin_info', $sort = ???, $reset = ???) /srv/http/minifed.rovin.be/profiles/openfed/modules/contrib/rules/rules.module:216 8.4452 22070320
15. module_load_include($type = 'inc', $module = 'rules', $name = 'rules.rules') /srv/http/minifed.rovin.be/includes/module.inc:740 8.4461 22111040
16. require_once('/srv/http/minifed.rovin.be/profiles/openfed/modules/contrib/rules/rules.rules.inc') /srv/http/minifed.rovin.be/includes/module.inc:330 8.4840 22665664
17. module_load_include($type = 'inc', $module = 'rules', $name = 'modules/node.rules') /srv/http/minifed.rovin.be/profiles/openfed/modules/contrib/rules/rules.rules.inc:12 8.4858 22718400
18. require_once('/srv/http/minifed.rovin.be/profiles/openfed/modules/contrib/rules/modules/node.rules.inc') /srv/http/minifed.rovin.be/includes/module.inc:330
Babou’s picture

Status: Needs work » Fixed

It has nothing to do with the reported issue in the first place. It is related to #2090401: Module upgrade: rules.

Every drush command fails, not just fra.

babou: openfed (7.x-1.x) $ drush cc all
PHP Fatal error:  Class 'RulesEventHandlerEntityBundle' not found in /var/www/openfed/profiles/openfed/modules/contrib/rules/modules/node.rules.inc on line 147
Drush command terminated abnormally due to an unrecoverable error.                                                                                                                                  [error]
Error: Class 'RulesEventHandlerEntityBundle' not found in /var/www/openfed/profiles/openfed/modules/contrib/rules/modules/node.rules.inc, line 147
bart.hanssens’s picture

Status: Fixed » Closed (duplicate)

  • Commit 83c7701 on 7.x-1.x, 7.x-1.7 by Babou:
    Issue #2090067: Drush fra -y fails - make use of multiple textfields...

  • Commit 83c7701 on 7.x-1.x, 7.x-1.8 by Babou:
    Issue #2090067: Drush fra -y fails - make use of multiple textfields...

  • Babou committed 83c7701 on 1.8
    Issue #2090067: Drush fra -y fails - make use of multiple textfields...

  • Babou committed 83c7701 on
    Issue #2090067: Drush fra -y fails - make use of multiple textfields...