can't export pdf [solved]

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
m.ardito
Posts: 5
Joined: Thu May 20, 2010 10:30 am

can't export pdf [solved]

Post by m.ardito »

Hi, my brand new installation (2.6.4) can't export pdf. Trying, broswer stops with
"Firefox can't find the file at http://www.mysite.com/faq/pdf.php?cat=1&id=4&artlang=it.

i tracked down the problem and it seems that php hangs when it tries to include "arialunicid0.php"

if i comment the huge array in that file, php succeds including the file (but obviously fails after), so i think the problem must be related to that huge array...

any hint? Marco
Last edited by m.ardito on Wed May 26, 2010 9:48 am, edited 1 time in total.
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: can't export pdf

Post by Thorsten »

Hi,

seems like your PHP needs more RAM than your installation allows to. Could you please show me your phpinfo()?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
m.ardito
Posts: 5
Joined: Thu May 20, 2010 10:30 am

Re: can't export pdf

Post by m.ardito »

i suspected that, just after posting. Actual "memory_limit" is 16M, the server has 2G so i can surely increase that,
which value you suggest as safe for phpmyfaq? it would be nice to state this on requirements page... :-)

phpinfo() is over 500 lines so i won't report it here, but;
SERVER_SOFTWARE Apache/2.2.11 (Win32) PHP/5.2.9-1 mod_auth_sspi/1.0.4
php modules:
bcmath, calendar, com_dotnet, ctype, curl, date, dom, filter, ftp, gd, hash, iconv, imap, json, ldap, libxml, mbstring, ming, mysql, odbc, pcre, Reflection, session, SimpleXML, SPL, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, zlib,

php limits settings: (name/master/local)
log_errors_max_len/1024/1024
max_execution_time/30/30
max_input_nesting_level/64/64
max_input_time/60/60
memory_limit/16M/16M
post_max_size/8M/8M
upload_max_filesize/2M/2M
Max Requests /Per Child: 0 - Keep Alive: on - Max Per Connection: 100/
mysql.max_links/Unlimited/Unlimited
mysql.max_persistent/Unlimited/Unlimited
odbc.max_links/Unlimited/Unlimited
odbc.max_persistent/Unlimited/Unlimited
pcre.backtrack_limit/100000/100000
pcre.recursion_limit/100000/100000
session.cache_limiter/nocache/nocache
session.gc_maxlifetime/1440/1440

Thanks, Marco
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: can't export pdf

Post by Thorsten »

Hi,

64M should be enough.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
m.ardito
Posts: 5
Joined: Thu May 20, 2010 10:30 am

Re: can't export pdf

Post by m.ardito »

Yes, i can confirm this. Now just works...

Thanks, Marco
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: can't export pdf [solved]

Post by Thorsten »

Hi,

I added the information on our requirements site: http://www.phpmyfaq.de/requirements.php

Thanks!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
m.ardito
Posts: 5
Joined: Thu May 20, 2010 10:30 am

Re: can't export pdf [solved]

Post by m.ardito »

ok, good!
maybe it should be added here also

http://www.phpmyfaq.de/documentation.2.6.en.php#2a

Bye, Marco
Post Reply