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

Comments

ferdinand.soethe’s picture

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

Status: Fixed » Closed (fixed)

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

robertDouglass’s picture

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
imadalin’s picture

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)

drecute’s picture

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

#3 works for me.

DrupalEasy.ir’s picture

HI
Console_Table there is'n in this link!this link get 404 error!
where can I download this package?

Screenack’s picture

FYI… when I changed the permissions so that my user account may execute the drush scripts, this error went away. Maybe when a user explicitly overwrites the table file, it seems like she's fixing the problem, but she's merely setting the perms to what they should be? I didn't have to download any files to remove this error. I'd say this is the case if you're using sudo for your pear commands.

For the record I did:

sudo chown -Rv jsmith:apache /usr/share/pear/drush
sudo chown -Rv jsmith:apache ~/.drush

(where jsmith is your user account name)
On a CentOS 5 server

kenyob’s picture

The link to the package above is not working: http://download.pear.php.net/package/Console_Table-1.1.3.tgz
Where else can I get it?

I found a link here:
http://pkgs.fedoraproject.org/repo/pkgs/php-pear-Console-Table/Console_T...

But Im not sure if its the right one for the MAC OSX.

olmeta.david’s picture

There is another solution : sudo drush

Drush will download the lib if needed and as the sudo command has been specified, you'll have correct rights.
After, as the lib has been downloaded, drush run without any problems.

Regards,

SandPond’s picture

Had the same problem. After apparently successful PEAR install, attemps to Drush would simply hang and do nothing.

So I ran "drush --verbose" which showed that wget was unable to download Console_Table for the installation process. Turned out that the IP range for that download center had been blocked in my firewall (5.0.0.0/8) because so many hackers originate in those foreign addresses.

Unblocked the address range, then ran "drush help", and the installation completed.

Obviously, this problem could have a variety of causes, but not being able to connect to the PEAR download center is probably a common one. In my case, the problem was self-inflicted due to liberal security management.

I therefore agree that this ISSUE is FIXED. That is, there seems to be no "real" issue!

alex.skrypnyk’s picture

Issue summary: View changes

Drush 7 and 8 resolve dependencies using composer that resolves any PEAR deps in it's own way using mirrors etc.

Rob C’s picture

sudo pear install Console_Table
and it works again.

dx007’s picture

#3 Works for me using drush version 4.0-rc9 on centos.