require_once in helper codeigniter

Asked

Viewed 29 times

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 but it is because of being calling the file wrongly, only needed to know how to correct reference

  • Where is the code!?

  • @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

  • @Thiagomoreira then is the version ... !!! OK

  • is code error yes. Unused helper to load library.

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.