Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.During a recent aegir upgrade i found this:
Fatal error: Class 'provisionConfig_drushrc_site' not found in /srv/aegir/.drush/provision_boost/provision_boost/verify.provision.inc on line 40
Call Stack:
0.0003 718704 1. {main}() /usr/share/php/drush/drush.php:0
0.0159 5233544 2. drush_main() /usr/share/php/drush/drush.php:16
0.0795 15994464 3. _drush_bootstrap_and_dispatch() /usr/share/php/drush/drush.php:61
0.1005 16005696 4. drush_dispatch() /usr/share/php/drush/drush.php:92
0.1192 16022880 5. call_user_func_array() /usr/share/php/drush/includes/command.inc:175
0.1192 16023248 6. drush_command() /usr/share/php/drush/includes/command.inc:0
0.3967 16446208 7. _drush_invoke_hooks() /usr/share/php/drush/includes/command.inc:208
0.6762 34527120 8. call_user_func_array() /usr/share/php/drush/includes/command.inc:334
0.6762 34527488 9. drush_provision_verify() /usr/share/php/drush/includes/command.inc:0
0.6762 34527624 10. Provision_Context->command_invoke() /usr/share/drush/commands/provision/provision.drush.inc:331
0.6762 34528080 11. Provision_Context->method_invoke() /usr/share/drush/commands/provision/Provision/Context.php:157
0.6762 34528472 12. Provision_Context->services_invoke() /usr/share/drush/commands/provision/Provision/Context.php:126
0.6764 34530464 13. provision::method_invoke() /usr/share/drush/commands/provision/Provision/Context.php:276
0.6764 34531096 14. call_user_func_array() /usr/share/drush/commands/provision/provision.inc:512
0.6764 34531464 15. Provision_Service_http->verify_site_cmd() /usr/share/drush/commands/provision/provision.inc:0
0.6764 34531464 16. Provision_Service->create_config() /usr/share/drush/commands/provision/http/Provision/Service/http.php:28
0.6768 34589216 17. Provision_Service->write() /usr/share/drush/commands/provision/Provision/Service.php:236
0.6768 34589648 18. Provision_Config_Http->write() /usr/share/drush/commands/provision/Provision/Service.php:146
0.6768 34589648 19. Provision_Config->write() /usr/share/drush/commands/provision/http/Provision/Config/Http.php:11
0.6768 34590528 20. Provision_Config_Apache_Site->process() /usr/share/drush/commands/provision/Provision/Config.php:197
0.6769 34591944 21. drush_command_invoke_all() /usr/share/drush/commands/provision/http/Provision/Config/Apache/Site.php:10
0.6769 34596488 22. call_user_func_array() /usr/share/php/drush/includes/command.inc:1196
0.6769 34597232 23. drush_command_invoke_all_ref() /usr/share/php/drush/includes/command.inc:0
0.6770 34609392 24. call_user_func_array() /usr/share/php/drush/includes/command.inc:1212
0.6770 34610008 25. provision_boost_provision_apache_vhost_config() /usr/share/php/drush/includes/command.inc:0
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Class 'provisionConfig_drushrc_site' not found in
/srv/aegir/.drush/provision_boost/provision_boost/verify.provision.inc,
line 40| Comment | File | Size | Author |
|---|---|---|---|
| #2 | wrong_Provision_Config_Drushrc_Site_class_name-2118021-2.patch | 1.73 KB | pauleb |











Comments
Comment #1
ergonlogicThis should just be a matter of renaming the Provision class(es) (i.e., Provision_Config_drushrc_site).
Comment #2
pauleb CreditAttribution: pauleb commentedI created a patch renaming the class like ergonlogic proposed. It works with provision 6.x-2.0-rc5.
Since it worked with provision 6.x-1.x before I assume the patch breaks it. Is there a possibility to check for the used version of provision and to use the propper class?
Or is there going to be a versioning scheme that goes in hand with the aegir / provision versioning?
At least it would be nice to have a few words on the project description page about compatibility with aegir 2.0.
Because the way it is now it's quite scary for simple users like me to upgrade.
I changed the version this issue affects from 6.1 to 7.1.1 since I wrote the patch against this branch and it is the only branch shown for downloading on the project page.
Nonetheless thanks for the great work and the hint with the class name!
Comment #3
lavamind CreditAttribution: lavamind commentedTested the proposed patch on my site and it worked after clearing the drush cache. Please commit.
Comment #4
garethhallnz CreditAttribution: garethhallnz commentedPatch in #2 works on aegir 2.1
Comment #5
bgm CreditAttribution: bgm commentedYikes, old issue! Thanks for reviving. Applied the patch on the 7.x-1.x branch.