0

I have a similar problem to the one in this question:"FDPDF error: Could not include font definition`. However, the error only occurs on my live server - my development server running XAMPP has no problems, so I assume there is nothing wrong with my code.

The directory structure on both servers is identical and I have ensured permission is given to the /font folder. I have put the font folder in every location relative to the pdf page's folder possible. What could be causing the problem?

Community
  • 1
  • 1
user3181236
  • 347
  • 1
  • 4
  • 11
  • It should be `/fonts`, with an "s" if I'm right. – Veve Nov 21 '14 at 09:38
  • The enviroment are exactly a copy of each other? – Marco Mura Nov 21 '14 at 09:42
  • No, it's '/font' - I just extracted it from the FPDF download zip. @MarcoMura Yes, it works flawlessly on my dev server. Only when I upload it to the live server does the error occur, although the directory structure and pathing is identical. – user3181236 Nov 21 '14 at 09:42

1 Answers1

0

I've just solved this - I was using a custom font, with a camel cased file name. Even though the case was correct in my PHP, I tried changing both the file name and the reference to lower case and it now works. Presumably a difference in Windows and Unix.

user3181236
  • 347
  • 1
  • 4
  • 11
  • Unix is case sensitive, Windows is case insensitive. This has caught me with some other things to do with files as well – kurdtpage Nov 27 '16 at 22:01