Open Serob opened 6 years ago
I think there is an error in the path printed in the PDF file. Create the apg-templates directory in your theme root and put the follow files to customize. wp-content/themes/you-theme-name/apg-templates/
Please let me know if it works.
I've changed it already to the theme path that you've suggested, but the rusult was the same(only diff is that there's another path in the error). My pdf.php file is empty, maybe this cause the problem? How should I fill it if I want my post to be converted to pdf?
P.S. there are questins from the other users regarding to the same error in wordpress site also.
Plugin is looking for the pdf.php file in the index path of the current theme: get_template_directory() . '/apg-templates/pdf.php'
it should works.
Are you using some skeleton theme?
Yes, I found this part in the source code. And for the theme: I am using default "Twenty Seventeen" theme.
OK, let me check if there is a bug with current wp versions or themes
Thanks for your report. I'll post here if I find something.
I'm on Windows, if it can help.
I also noticed difference between slashes, so the full path is
...wamp64\www\testsite\wordpress/wp-content/themes/twentyseventeen/apg-templates/pdf.php
Can they cause problems? Although browser finds the file in this path format.
Maybe, I tested all in Linux and Mac OS, but not in windows. I'll check if that is the issue.
problem in function is_file()
Do you have an example template file with images atleast? Do we use FPDF or something?
On generating it gives ther following error in pdf: Template file not found at theme_path…/advanced-pdf-generator/apg-templates/pdf.php
How to create pdf.php and mail.php files? What should they consist of? What's the format? Is there any example?