WPPostToPdf and GoDaddy = error
-
Hello,
I posted this on the general WP forums but it’s something important and relevant to this plugin so I’m posting it here as well.[ Moderator note: unnecessary duplicate topic deleted, please do not create duplicates like that. ]
I’m developing a website for a client, a real estate website (using the FireStorm RealEstate plugin) which he needed an ‘export property to pdf’ option. I used WPPostToPDF which I have enough programming knowledge to modify, so I could make it handle the FSREP custom post types and data, and then modified the formatting to my needs (a very specific PDF format from my client).
Up until here it’s all working flawlessly, I made a few test properties with data and images and the pdf is generated just fine [minus font embedding problems with certain Adobe Reader versions – Win8’s reader works perfect] (Here‘s a test property, it’s in Spanish so to see the generated PDF you’d click on Descargar en PDF).Now came the time to move the whole website from my server to the client’s host, which happens to be GoDaddy.
Let me just say that before coming here I first made a support ticket at GoDaddy about this issue, and they told me that “they can’t provide me with assistance about WordPress after it has been installed, so I should get in contact with the WordPress developers”, which is to me sounds like “even if the problem is ours, go bother someone else”.Back to the problem itself.
So I started moving the site, and after overcoming a little trouble related to the fact that they don’t use ‘localhost’ I got it all up and running, but generating a PDF throws me an error I can’t get around:
TCPDF ERROR: [Image] Unable to get image: /var/chroot/home/content/25/10403525/html/home/content/25/10403525/html/wp-content/uploads/fsrep/houses/2.jpg
The error comes when trying to download the property as PDF, for which I’m using the same property as before (link) .
2.jpg of course exists in the server and TCPDF knows about it (the code first it checks if the file exists and if it does it includes in the pdf as html with an <img> tag), but commenting code in and out I’ve found that the part that’s throwing the error is the <img> tag itself.From what I can see it just seems that the path is wrong, but no matter how I change the path to the image I can’t get it to work. I even tried including it as an external URL but it doesn’t work either (different error, I could explain it but I’d rather focus on the main problem).
Doing a few searches found me that indeed there’s something wrong with how GoDaddy’s paths work (here, here, here, and loads more), but never have I found a clear answer as to how to get around it (I did try all that people suggest that I know I can do, but I wouldn’t know what to write on an .htaccess or php.ini file to fix it as some suggest)So I come to you asking for some help as to how to overcome this issue ??
thanks in advance!
- The topic ‘WPPostToPdf and GoDaddy = error’ is closed to new replies.