This question already has an answer here:
I’m currently using mpdf to get content into a pdf file, this worked eprfectly until it got moved to a live server, in the header I have this piece of code:
44| <?php 45| include('/mpdf/mpdf.php'); 46| ?>
And this is the error I get:
Warning: include(/mpdf/mpdf.php) [function.include]: failed to open stream: No such file or directory in /home1/virtek/public_html/cherry/wp-content/themes/twentytwelve/header.php on line 45 Warning: include() [function.include]: Failed opening '/mpdf/mpdf.php' for inclusion (include_path='.:/opt/php53/lib/php') in /home1/virtek/public_html/cherry/wp-content/themes/twentytwelve/header.php on line 45
All the files are in the same place they were before migration.
This was working perfectly on the localhost, anyone got any idea of what could have happened or how can I fix this?
Read more here: php - include() not finding path on remote server [duplicate]