Download & Extend

Drush fails with "Class 'Console_Table' not found"-error

Project:Drush
Version:All-Versions-2.0
Component:PM (dl, en, up ...)
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

This happens to a fresh install with php 5.28 and drush called from an alias.

Comments

#1

Status:active» fixed

This suggestion by perrymanson fixed the problem:

To solve the problem you have to download Console_Table.
http://download.pear.php.net/package/Console_Table-1.1.3.tgz
Untar the file and replace the original table.inc with Table.php.
It works for me.

Note that I merely placed Table.php in the include directory and renamed table.inc to table.inc.org so I did not really replace one file with the other. But it works now.

Ferdinand

#2

Status:fixed» closed (fixed)

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

#3

To confirm and clarify:

Unpack the Console_Table tarball:

$ tar zxvf Console_Table-1.1.3.tgz x package.xml
x Console_Table-1.1.3/tests/assoziative_arrays.phpt
x Console_Table-1.1.3/tests/colors.phpt
x Console_Table-1.1.3/tests/filters.phpt
x Console_Table-1.1.3/tests/multibyte.phpt
x Console_Table-1.1.3/tests/multiline.phpt
x Console_Table-1.1.3/tests/no_header.phpt
x Console_Table-1.1.3/tests/no_rows.phpt
x Console_Table-1.1.3/tests/rules.phpt
x Console_Table-1.1.3/Table.php

Copy Table.php into drush/includes/table.inc.

$ cp Console_Table-1.1.3/Table.php drush/includes/table.inc

#4

i used pear to install the Console_Table and copied /usr/share/php/Console_Table/Table.php to /%path_to_drush%/includes/table.inc

(it's a easy way to get fast the latest stable/unstable files from PEAR)

#5

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

#3 works for me.