PHPExcel Class not found

Asked by Juma Lungo

Hello, I need help with PHPExcel Class
Do we have this class in iHRIS? If not, in which folder should i put this class?

Error Message:
Fatal Error:Array
(
    [type] => 1
    [message] => Class 'PHPExcel_IOFactory' not found
    [file] => /var/lib/iHRIS/ihris-manage-malawi/4.1/modules/import/lib/import_base.php
    [line] => 98
)

Question information

Language:
English Edit question
Status:
Solved
For:
ihris-manage-malawi Edit question
Assignee:
IntraHealth Informatics Edit question
Solved by:
Juma Lungo
Solved:
Last query:
Last reply:
Revision history for this message
Juma Lungo (jlungo) said :
#1

Puting full qualified url i.e. "/var/lib/iHRIS. .... /includes/PHPExcel" doesnot help.

Revision history for this message
Sovello Hildebrand (sovellohpmgani) said :
#2

Sorry,
You just install PHPExcel from terminal and it should be in the normal
include paths.

Sovello Hildebrand Mgani
On Apr 29, 2013 1:01 AM, "Juma Lungo" <email address hidden>
wrote:

> Question #227694 on ihris-manage-malawi changed:
> https://answers.launchpad.net/ihris-manage-malawi/+question/227694
>
> Juma Lungo gave more information on the question:
> Puting full qualified url i.e. "/var/lib/iHRIS. ....
> /includes/PHPExcel" doesnot help.
>
> --
> You received this question notification because you are the assignee for
> this question.
>

Revision history for this message
Juma Lungo (jlungo) said :
#3

This problem was solved by installing PHPExcel files as follows:

sudo pear channel-discover pear.pearplex.net

sudo pear install pearplex/PHPExcel

Installed PHPExcel file is available here:
/usr/share/php/PHPExcel

and to use the class you can now just call it as follows:
include_once('PHPExcel/PHPExcel.php');

DONE

Revision history for this message
gift mfugale (mfugaleg) said :
#4

That's helpful to me too
thank you

On 29 April 2013 20:41, Juma Lungo <email address hidden>wrote:

> Question #227694 on ihris-manage-malawi changed:
> https://answers.launchpad.net/ihris-manage-malawi/+question/227694
>
> Status: Answered => Solved
>
> Juma Lungo confirmed that the question is solved:
> This problem was solved by installing PHPExcel files as follows:
>
> sudo pear channel-discover pear.pearplex.net
>
> sudo pear install pearplex/PHPExcel
>
> Installed PHPExcel file is available here:
> /usr/share/php/PHPExcel
>
> and to use the class you can now just call it as follows:
> include_once('PHPExcel/PHPExcel.php');
>
> DONE
>
> --
> You received this question notification because you are the assignee for
> this question.
>