Upgrade to 2.4

Comments

bart.hanssens’s picture

Status: Active » Fixed
bart.hanssens’s picture

Status: Fixed » Closed (fixed)
Babou’s picture

Assigned: Babou » bart.hanssens

The error reported in #2090067: Drush fra -y fails (comment #12) is due to this update.

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=jJaYqCHSu2Abtu4cC... 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

May be related to[#2090511]

2.5 does the same.

Going back to 2.3 for the time beeing.

bart.hanssens’s picture

Assigned: bart.hanssens » Babou
Status: Closed (fixed) » Needs work

Ok, keep an eye on the issue, hopefully someone writes a patch

Babou’s picture

Looks like the isssue will be fixed in the next release of Drush.

As explained here it was pushed to the 5.x and 6.x master branches.

As seen here, the commit is packed in the RC1 but unfortunately it is not yet available on pear.drush.org

Babou’s picture

And it looks like there is a workaround by using drush dl rules; drush updatedb.

It's not really handy but if it works, maybe we can use it until the new version of Drush is released.

bart.hanssens’s picture

Issue tags: -release1.0 +release1.1
bart.hanssens’s picture

Issue tags: -release1.1 +release1.2
Babou’s picture

The Rules module page gives a workaround to fix the issue.

Update troubles?

Please read the issue summary of https://drupal.org/node/2090511.

drush dl rules --destination=/path/to/contrib/modules/directory
drush updatedb

Drush 6.1 doesn't resolve anything and the migration has to be done manually. I don't expect a real fix anytime soon.

I think that you should do the update to the 2.5 manually and then hope for the best with their future releases.

bart.hanssens’s picture

Status: Needs work » Active
stefan.r’s picture

Status: Active » Fixed

Upon discussing with bart.hanssens we will go with the approach mentioned in #10. The only thing this means is that any people running version 1.1 or older will have to run these commands before updating to any version higher than 1.1:

drush dl rules --destination=/path/to/contrib/modules/directory
drush updatedb

The impact is minor as we have only 2 sites which will be affected by this. New installations will not be affected.

We have upgraded the Rules module to version 2.5 and are marking this as fixed.

bart.hanssens’s picture

Status: Fixed » Closed (fixed)

  • Commit 8bb06b4 on 7.x-1.x, 7.x-1.7 by bart.hanssens:
    Issue #2090401: Module upgrade: rules
    
  • Commit ce30450 on 7.x-1.x, 7.x-1.7 by Babou:
    Issue #2090401: Module upgrade: rules - back to 2.3 because of drush...
  • Commit 1afb22f on 7.x-1.x, 7.x-1.7 by stefan.r:
    Issue #2090401 - Module upgrade: rules
    

  • Commit 8bb06b4 on 7.x-1.x, 7.x-1.8 by bart.hanssens:
    Issue #2090401: Module upgrade: rules
    
  • Commit ce30450 on 7.x-1.x, 7.x-1.8 by Babou:
    Issue #2090401: Module upgrade: rules - back to 2.3 because of drush...
  • Commit 1afb22f on 7.x-1.x, 7.x-1.8 by stefan.r:
    Issue #2090401 - Module upgrade: rules