Viljami Kuosmanen
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress PDF Templates] file_get_contents() error – againHi, Neocreo!
Have you tried it with simply
define('FETCH_COOKIES_ENABLED', true);defined in your wp-config.php fle?Cheers!
Try refreshing your rewrite rules by going to settings > permalinks and hitting save.
Also, you might want to add pdf support for other post types as well. set_pdf_print_support always overwrites previous supported types.
Cheers!
AnttiForum: Plugins
In reply to: [WordPress PDF Templates] Template not changingSounds like a cache issue.
Try reloading the page with ctrl + F5 (cmd + shift + R on os x)
You can also try disabling the cache altogether in wp-config.php with
define( 'DISABLE_PDF_CACHE', true )Forum: Plugins
In reply to: [WordPress PDF Templates] WP Custom Post typeBrilliant!
It seems that you simply had the body background colour set to #222. 🙂
Forum: Plugins
In reply to: [WordPress PDF Templates] WP Custom Post typeSure! Email me at antti [at] seravo.fi
Forum: Plugins
In reply to: [WordPress PDF Templates] WP Custom Post typeHey there!
I need a little bit more information to be able to help. Can you send me a link to the content you’re trying to convert to pdf?
Did you try this with
<?php define('FETCH_COOKIES_ENABLED', true); ?>?Forum: Plugins
In reply to: [WordPress PDF Templates] Not working with WooCommerce 2.3.5Maybe try reloading permalink settings? Go to Admin > Settings > Permalink Settings and click Save.
Does this help?
Forum: Plugins
In reply to: [WordPress PDF Templates] Not working with WooCommerce 2.3.5Have you added support for the WooCommerce Product post type to your theme’s functions.php file?
Example below:
// add pdf print support to post type 'product' if(function_exists('set_pdf_print_support')) { set_pdf_print_support(array('post', 'page', 'product')); }Cheers!
Antti
Forum: Plugins
In reply to: [SEO Ultimate] Incorrect use of $_SERVER['SERVER_NAME']Diff here:
--- a/includes/jlfunctions/url.php +++ b/includes/jlfunctions/url.php @@ -17,9 +17,9 @@ class suurl { $url .= "://"; if ($_SERVER["SERVER_PORT"] != "80") - return $url.$_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; + return $url.$_SERVER["HTTP_HOST"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; else - return $url.$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; + return $url.$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]; } /**Forum: Plugins
In reply to: [WordPress PDF Templates] Conflict with Restricted Site Acess pluginHi!
Try adding this to your wp-config.php
define('FETCH_COOKIES_ENABLED', true);Thanks for trying out our plugin!
Forum: Plugins
In reply to: [WordPress PDF Templates] nothing is being displayd in PDFHi!
My email is antti@seravo.fi
Forum: Plugins
In reply to: [WordPress PDF Templates] nothing is being displayd in PDF3 pages or 3 templates? If you want the template to work for all posts and pages, you can just copy the index-pdf.php from the plugin over to your theme folder and start from there.
Is the PDF file intact, but just empty or are you just getting a white screen of death? It’s possible DOMPDF doesn’t support something in your HTML. In this case, you should see something in your php error log when trying to create the pdf file.
Also, it’s recommended to enable
define('DISABLE_PDF_CACHE', true);to make sure the cache isn’t causing the issue during development.I’ll happily take a look at your theme to help you if you give me access to your server.
– AnttiForum: Plugins
In reply to: [WordPress PDF Templates] Preview works, but pdf is blankThanks for using our plugin. Hope you do something awesome with it! 🙂
[marking topic as resolved]
Forum: Plugins
In reply to: [WordPress PDF Templates] Preview works, but pdf is blankGlad to hear it! 🙂
A solution already exists in the plugin itself for sites that utilise some sort of access control. Just enable
define('FETCH_COOKIES_ENABLED', true);in your wp-config.php and you should be fine.Cheers!