Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I extracted the pear's ConsoleTable library and copied Table.php to the drush folder (/var/aegir/drush).
However when firing drush it complains:
Fatal error: Class 'Console_Table' not found in /var/aegir/drush/includes/drush.inc on line 545
I see in this in includes/environment.inc:
define('DRUSH_TABLE_URL', 'http://cvs.php.net/viewvc.cgi/pear/Console_Table/Table.php?revision=1.28&view=co');
Do I need to add an include for this file to environment.inc? drush_bootstrap_error doesn't indicate this is necessary, but I don't otherwise see why drush can't find this class.
Comments
Comment #1
forestmars CreditAttribution: forestmars commentedTable.php moved to includes/table.inc. drush stopped complaining. issue closed.
Comment #2
greg.1.anderson CreditAttribution: greg.1.anderson commentedYou put table.php in /var/aegir/drush, but drush wants it in /var/aegir/drush/includes. Drush should download this file automatically if it does not exist, but perhaps you are running drush as a user who does not have write access to the drush installation directory. Move table.php to includes, and you should be fine.
Comment #4
jcfiala CreditAttribution: jcfiala commentedStarting with a brand new install of Ubuntu in a virtual machine, I'm running into this error as well.
Well, I'm actually installing aegir through install.sh.txt, but it's the same error.
Comment #5
auTONYmous CreditAttribution: auTONYmous commentedinstall the php pear extension
# pear install Console_Table
Comment #6
moshe weitzman CreditAttribution: moshe weitzman commentedOne way or another, you need to get this file. It is possible that Aegir is not helping you here. It needs to get this file before locking down the drush dir with file perms.
Comment #7
adrian CreditAttribution: adrian commentedMoshe, you dont understand.
The location of this file has changed.
This isnt killing aegir installs, it is killing ALL drush installs.
the url we have hard coded here : http://drupalcode.org/viewvc/drupal/contributions/modules/drush/includes...
has changed from http://cvs.php.net/viewvc.cgi/pear/Console_Table/Table.php?revision=1.28...
to http://svn.php.net/viewvc/pear/packages/Console_Table/trunk/Table.php?re...
Because php.net has switched from CVS to SVN.
This means we need to change this, and make a new release, or _ALL_ new drush installs are broken.
i am opening a new issue for this.
Comment #8
kevinquillen CreditAttribution: kevinquillen commentedI downloaded stable Drush this AM and got this same error. It only worked when I created table.inc, and included the code from the SVN link above. I haven't had to do this before.
Is this something developers will have to do now and get the file on their own?
Comment #9
kevinquillen CreditAttribution: kevinquillen commentedOpening just for clarification..
Comment #10
Dave ReidSee #875192: new drush installs broken due to php.net moving to subversion
Comment #11
kevinquillen CreditAttribution: kevinquillen commentedThanks.
Comment #13
drnikki CreditAttribution: drnikki commentedJust fyi, a fresh download of the current release had the same problem on a rackspace CentOS box.
"pear install Console_Table" fixed the problem.
Comment #14
emmajane CreditAttribution: emmajane commentedpear install Console_Table just created an empty table.inc file for me. I still had to copy the contents of the svn repo link above.
Comment #15
mwoodwar CreditAttribution: mwoodwar commentedJust an update, I had to do the same as Emmajane and the others this morning. Paste the code in the 'empty' table.inc
Comment #16
kamalnsh CreditAttribution: kamalnsh commentedSame behavior on Ubuntu where running pear install Console_Table created an empty table.inc in the drush/includes folder. Then I manually copied the contents from this link http://svn.php.net/viewvc/pear/packages/Console_Table/trunk/Table.php?re... (as mentioned above) into table.inc in order for drush pm-list to work.
So the drush-7.x-4.5.tar download is still broken even after almost a year.
Comment #17
kevinquillen CreditAttribution: kevinquillen commentedHad this problem with drush self-update from 4.4 to 5.x. The file ownership needed to be changed to the root user (in my case) in order to execute or it throws the above error.
Comment #18
pritamprasun CreditAttribution: pritamprasun commentedI also faced this error and finally came to the conclusion that the above problem comes when we have installed a older version. Installing a new version ie 7.x-5.4 solves the problem.
Thanks
Pritam