RE: [PEAR] Cannot instantiate non-existent class: Error

From: Date: Sun, 24 Jun 2007 08:19:52 +0000
Subject: RE: [PEAR] Cannot instantiate non-existent class: Error
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27557@lists.php.net to get a copy of this message
Yup it looks like you need to install the Excel module. On my host, I can install a local copy of pear like so (you need shell access): $ pear config-create $HOME .pearrc $ pear config-set download_dir /home/<username>/tmp/pear/cache $ pear config-set cache_dir /home/<username>/tmp/pear/cache $ pear config-set temp_dir /home/<username>/tmp/pear/temp $ pear install -o PEAR Then in your scripts you will need to add an include path to look for pear libraries: ini_set( 'include_path', ini_get( 'include_path' ) . PATH_SEPARATOR . "/home/(youruser)/pear/php" ); Probably the easiest thing to do is to search your hosts wiki/faq/knowledge base for how to install a local copy of PEAR Good Luck, Mark ________________________________________ From: Tom Synnott [mailto:tom@curiousclothing.com] Sent: Sunday, June 24, 2007 10:25 AM To: Mark Steudel Subject: Re: [PEAR] Cannot instantiate non-existent class: Error Ug I think that is the problem... I found this article on my server kb... Pear is pre-installed and available for use on (gs) Grid-Services. The path to Pear is: /usr/local/<php-version>/share/pear where <php-version> is replaced by the version of php that is active on your site. The installation directories have already been added to your include_path so nothing special is needed to use our preinstalled Pear modules. The list of preinstalled modules is as follows: Package Version State Archive_Tar 1.3.1 stable Console_Getopt 1.2 stable HTML_Template_IT 1.1 stable Net_UserAgent_Detect 2.0.1 stable PEAR 1.4.9 stable Would this mean that the library I want is not on there? I can't tell if this has what I need... I'm using the Excel_Spreadsheet_Writer... Thanks, Tom On 24/06/2007, at 5:19 PM, Mark Steudel wrote: Are all the same pear libraries installed on the new server? -----Original Message----- From: Tom Synnott [mailto:tom@curiousclothing.com] Sent: Sunday, June 24, 2007 9:55 AM To: pear-general@lists.php.net Subject: [PEAR] Cannot instantiate non-existent class: Error I keep getting the following error... When it was on a previous server I didn't have the error but now I do, no directories have changed and the file actually runs but this get's written into the Excel file... Has anyone had this problem before? I hope so! <b>Fatal error</b>: Cannot instantiate non-existent class: ole_pps_file in <b>/home/19288/domains/html/admin/excel-2.0/ Workbook.php</b> on line <b>587</b><br />

« previous php.pear.general (#27557) next »