IDnR addon doens't produce pdf's

Before you ask about IDnR Addon see the VirtueMart - Invoice, Delivery Note and Receipt Addon
MaartenN
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 26 Mar 2009, 20:25

IDnR addon doens't produce pdf's

Post by MaartenN »

Hi,

I tried to install the invoice, delivery note, receipt addon

I did this before (succesfully) but this time, I don't get pdf's. I can create shipments, but when I click the pdf-button, I have to wait a very long time and then I get an empty white page (no pdf). I also tried to add php_flag display_errors to my .htaccess file, but still I only get a white screen.

does anyone have a suggestion how I can solve this?

PS I just found out that my hosting provider has safe mode turned on, and doesn't want to turn it off, can this be a possible reason for my problem? and if yes; is there a way to let it work with safe mode on? my hosting provider said it would be possible in php5
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: IDnR addon doens't produce pdf's

Post by Jan »

Hi, I think there should not be any problem with safe mod on, I have tested it on server with safe mode on without any problem... maybe you get some error but it is not displayed on the site (php error reporting on will help in php.ini settings or see the errors in error log)

Jan
If you find Phoca extensions useful, please support the project
MaartenN
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 26 Mar 2009, 20:25

Re: IDnR addon doens't produce pdf's

Post by MaartenN »

Jan wrote:Hi, I think there should not be any problem with safe mod on, I have tested it on server with safe mode on without any problem... maybe you get some error but it is not displayed on the site (php error reporting on will help in php.ini settings or see the errors in error log)

Jan
on my other host where the extension just works normally, I turned on safe mode and it stopped working, so I'm not quite sure that it has nothing to do with the safe mode...

I can't get to the php.ini because the site is not hosted on my own server but at the server of my hosting provider, I used htaccess to set the error reporting on (as I said before I added php_flag display_errors to it) but I can't find any errors.
which error log do you mean exactly or do I have to have access to the server for this (I only have ?

or did you maybe change something in your version which does work on safe mode?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: IDnR addon doens't produce pdf's

Post by Jan »

Hi, as I said I don't care about the safe mode, because all my extensions and addons I test on server which have safe mode enabled, so I hope all the extensions and addons are safe mode independent (maybe ???, maybe I have some function enabled but if you are running Joomla! on your server then all the extensions or addons should be working there becasue they use the Joomla! framework and there are no specific functions regarding safe mode ... I hope :| )

With error log I mean the error log which produces your server (apache ?). So please check it and let me know (maybe there will be some function which is needed and it is disabled :idea: )

Jan
If you find Phoca extensions useful, please support the project
MaartenN
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 26 Mar 2009, 20:25

Re: IDnR addon doens't produce pdf's

Post by MaartenN »

in my error_log I see these lines:
[Mon Mar 30 16:04:25 2009] [error] [client [ip deleted]] PHP Warning: imagejpeg() [<a href='function.imagejpeg'>function.imagejpeg</a>]: SAFE MODE Restriction in effect. The script whose uid is 10107 is not allowed to access /tmp/jpgOi7jlK owned by uid 48 in /var/www/vhosts/[name deleted]/subdomains/temp/httpdocs/libraries/tcpdf/tcpdf.php on line 3880, referer: http://temp.[name deleted]/administrator/index.php?page=order.order_print&limitstart=0&keyword=&order_id=3&option=com_virtuemart

[Mon Mar 30 16:04:25 2009] [error] [client [ip deleted]] PHP Warning: imagejpeg() [<a href='function.imagejpeg'>function.imagejpeg</a>]: Invalid filename in /var/www/vhosts/[name deleted]/subdomains/temp/httpdocs/libraries/tcpdf/tcpdf.php on line 3880, referer: http://temp.[name deleted]/administrator/index.php?page=order.order_print&limitstart=0&keyword=&order_id=3&option=com_virtuemart

[Mon Mar 30 16:04:25 2009] [error] [client [ip deleted]] PHP Warning: getimagesize() [<a href='function.getimagesize'>function.getimagesize</a>]: SAFE MODE Restriction in effect. The script whose uid is 10107 is not allowed to access /tmp/jpgOi7jlK owned by uid 48 in /var/www/vhosts/[name deleted]/subdomains/temp/httpdocs/libraries/tcpdf/tcpdf.php on line 3898, referer: http://temp.[name deleted]/administrator/index.php?page=order.order_print&limitstart=0&keyword=&order_id=3&option=com_virtuemart

[Mon Mar 30 16:04:25 2009] [error] [client [ip deleted]] PHP Warning: getimagesize(/tmp/jpgOi7jlK) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: Permission denied in /var/www/vhosts/[name deleted]/subdomains/temp/httpdocs/libraries/tcpdf/tcpdf.php on line 3898, referer: http://temp.[name deleted]/administrator/index.php?page=order.order_print&limitstart=0&keyword=&order_id=3&option=com_virtuemart

[Mon Mar 30 16:04:25 2009] [error] [client [ip deleted]] PHP Warning: fopen() [<a href='function.fopen'>function.fopen</a>]: SAFE MODE Restriction in effect. The script whose uid is 10107 is not allowed to access /tmp/jpgOi7jlK owned by uid 48 in /var/www/vhosts/[name deleted]/subdomains/temp/httpdocs/libraries/tcpdf/tcpdf.php on line 3912, referer: http://temp.[name deleted]/administrator/index.php?page=order.order_print&limitstart=0&keyword=&order_id=3&option=com_virtuemart

[Mon Mar 30 16:04:25 2009] [error] [client [ip deleted]] PHP Warning: fopen(/tmp/jpgOi7jlK) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /var/www/vhosts/[name deleted]/subdomains/temp/httpdocs/libraries/tcpdf/tcpdf.php on line 3912, referer: http://temp.[name deleted]/administrator/index.php?page=order.order_print&limitstart=0&keyword=&order_id=3&option=com_virtuemart

[Mon Mar 30 16:04:25 2009] [error] [client [ip deleted]] PHP Warning: feof(): supplied argument is not a valid stream resource in /var/www/vhosts/[name deleted]/subdomains/temp/httpdocs/libraries/tcpdf/tcpdf.php on line 3914, referer: http://temp.[name deleted]/administrator/index.php?page=order.order_print&limitstart=0&keyword=&order_id=3&option=com_virtuemart

[Mon Mar 30 16:04:25 2009] [error] [client [ip deleted]] PHP Warning: fread(): supplied argument is not a valid stream resource in /var/www/vhosts/[name deleted]/subdomains/temp/httpdocs/libraries/tcpdf/tcpdf.php on line 3915, referer: http://temp.[name deleted]/administrator/index.php?page=order.order_print&limitstart=0&keyword=&order_id=3&option=com_virtuemart
||
||

[Mon Mar 30 16:04:31 2009] [error] [client [ip deleted]] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 19138561 bytes) in /var/www/vhosts/[name deleted]/subdomains/temp/httpdocs/libraries/tcpdf/tcpdf.php on line 3914, referer: http://temp.[name deleted]/administrator/index.php?page=order.order_print&limitstart=0&keyword=&order_id=3&option=com_virtuemart
|| means that the errors with fread() and feof() are repeated from that moment for about 10 000 times until the last fatal error

does this say something useful?
MaartenN
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 26 Mar 2009, 20:25

Re: IDnR addon doens't produce pdf's

Post by MaartenN »

if I delete the line

Code: Select all

$this->Image($hD['logo'],20,15,70);
from \administrator\components\com_virtuemart\pdf\phoca.tcpdf.php, it works.

so it seems that some part of the code that produces the image on the pdf's is blocked by the safe mode...

do you know how to solve this?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: IDnR addon doens't produce pdf's

Post by Jan »

??? no idea :(
If you find Phoca extensions useful, please support the project
Post Reply