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

forestmars’s picture

Status: Active » Closed (fixed)

Table.php moved to includes/table.inc. drush stopped complaining. issue closed.

greg.1.anderson’s picture

Category: bug » support
Status: Closed (fixed) » Fixed

You 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.

Status: Fixed » Closed (fixed)

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

jcfiala’s picture

Status: Closed (fixed) » Active

Starting 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.

auTONYmous’s picture

install the php pear extension

# pear install Console_Table

moshe weitzman’s picture

Status: Active » Fixed

One 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.

adrian’s picture

Status: Fixed » Closed (fixed)

Moshe, 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.

kevinquillen’s picture

I 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?

kevinquillen’s picture

Status: Closed (fixed) » Active

Opening just for clarification..

Dave Reid’s picture

kevinquillen’s picture

Thanks.

Status: Fixed » Closed (fixed)

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

drnikki’s picture

Just fyi, a fresh download of the current release had the same problem on a rackspace CentOS box.
"pear install Console_Table" fixed the problem.

emmajane’s picture

Component: Code » PM (dl, en, up ...)

pear 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.

mwoodwar’s picture

Just an update, I had to do the same as Emmajane and the others this morning. Paste the code in the 'empty' table.inc

kamalnsh’s picture

Same 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.

kevinquillen’s picture

Had 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.

pritamprasun’s picture

I 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