0
I installed the mpdf library via Composer in codeigniter 2 and made a helper file where I call this library to generate the pdf. So within this helper I call autoload with require_once and it works perfectly locally. But when I went up in production of error 500 exactly in this require. I’ve tried everything and nothing to solve, someone could guide me?
You need to look at the apache error log,
– rray
@rray but it is because of being calling the file wrongly, only needed to know how to correct reference
– Thiago Moreira
Where is the code!?
– novic
@Virgilionovic is not an error in the code but rather in not locating the autoload file within vendor, or is not compatible with php version. I think suspicious of what might be, in localhost development my server is with php 7 and the online server is 5.3 and the mpdf library is in version 7.1
– Thiago Moreira
@Thiagomoreira then is the version ... !!! OK
– novic
is code error yes. Unused helper to load library.
– ShutUpMagda