Welcome Guest, Not a member yet? Register   Sign In
[SOLVED #7] Loading libraries works on desktop, but not on server.
#1

(This post was last modified: 08-19-2015, 03:04 PM by NilsFr13.)

Hi,

I am using CI220.

Making my project on Ubuntu Desktop.
Using an Ubuntu server for the web.

On my desktop, PDF libraries loads,
but the same ones does not load on my server.

Files setup.

On desktop :
/var/www/html/CI/CI220_FMT1/application/libraries/fpdf/Tfpdf.php
/var/www/html/CI/CI220_FMT1/application/libraries/fpdf/Pdf_rotate.php
/var/www/html/CI/CI220_FMT1/application/libraries/fpdf/Pdf.php
/var/www/html/CI/CI220_FMT1/application/libraries/fpdf/Mpt.php

Files owner:group and privileges : www-data:www-data -rw-r--r--

On server :
/var/www/html/FMT-test/CI220_FMT1/application/libraries/fpdf/Tfpdf.php
/var/www/html/FMT-test/CI220_FMT1/application/libraries/fpdf/Pdf_rotate.php
/var/www/html/FMT-test/CI220_FMT1/application/libraries/fpdf/Pdf.php
/var/www/html/FMT-test/CI220_FMT1/application/libraries/fpdf/Mpt.php

Files owner:group and privileges : www-data:www-data -rw-rw-r--

Loading the classes in my controller :
$this->load->library(array( 'fpdf/Tfpdf', 'fpdf/Pdf_rotate', 'fpdf/Pdf'  , 'fpdf/Mpt' ));

Files classes' names :
Tfpdf.php => class Tfpdf
Pdf_rotate.php => class Pdf_rotate extends Tfpdf
Pdf.php => class Pdf extends Pdf_rotate
Mpt.php => class Mpt extends Pdf


The error is : Unable to load the requested class: tfpdf

Why, does this works on my desktop and not on my server ?

I did not find out anything about classes in config file.

I don't know what to check ?

Can someone help me to troubleshoot this issue ?
Thanks.
Nils
Reply


Messages In This Thread
[SOLVED #7] Loading libraries works on desktop, but not on server. - by NilsFr13 - 08-14-2015, 07:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB