Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

PDF icon not working, pop-up just renders HTML
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 3 (Joomla 1.5 compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.

TOPIC: PDF icon not working, pop-up just renders HTML

Re:PDF icon not working, pop-up just renders HTML 14 years, 9 months ago #10894

I turned up error reporting to maximum and tried to generate a PDF and was given this message:

Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 4980736 bytes) in /home/firstbap/public_html/libraries/tcpdf/unicode_data.php on line 16467

Again, this works totally fine when JoomSEF is turned off.

Is there a fix?
The topic has been locked.

Re:PDF icon not working, pop-up just renders HTML 14 years, 9 months ago #10928

  • jaku
Yes, and very easy one.
Increase the memory that can be allocated to a PHP script.

This is done ususally in php.ini. Now seems you have there value 12M, so just increase that to 16M. (or more if needed)
(You need to restart webserver for this to take effect)

On some server configurations, this can also be done in .htaccess by using
php_value memory_limit 16M

directive, but please note the usage of php_value directives in .haccess may be disallowed by the webserver configuration.

If you are not sure about this, consult this with your server administrator.
The topic has been locked.

Re:PDF icon not working, pop-up just renders HTML 14 years, 9 months ago #10932

jan wrote:
Yes, and very easy one.
Increase the memory that can be allocated to a PHP script.

This is done ususally in php.ini. Now seems you have there value 12M, so just increase that to 16M. (or more if needed)
(You need to restart webserver for this to take effect)

On some server configurations, this can also be done in .htaccess by using
php_value memory_limit 16M

directive, but please note the usage of php_value directives in .haccess may be disallowed by the webserver configuration.

If you are not sure about this, consult this with your server administrator.


I'll give it a try, but why would it require more server memory to generate PDFs with JoomSEF enabled vs not enabled?
The topic has been locked.

Re:PDF icon not working, pop-up just renders HTML 14 years, 6 months ago #12078

  • mx5gr
  • OFFLINE
  • Posts: 63
We experience the same issue with the /pdf formed URLs.

In detail, the URL www.mycompany.com/36250-my-article/pdf produces an HTML rendered page with an entry @ the PHP errorlog:

 
PHP Warning: file_put_contents(c:\inetpub) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Permission denied in c:\inetpub\libraries\joomla\filesystem\file.php on line 298
 


If we try the non-sef URL www.mycompany.com/index.php?option=com_c...ticle&Itemid=582 , then we get a rendered PDF as expected.

Any ideas?
The topic has been locked.
Přihlášení uživatele Prázdný