Page 1 of 1
warning and fatal error
Posted: 10 Sep 2008, 19:31
by wogand
Hi Jan,
[code]Warning: ps_delivery::require_once(/var/www/html/components/com_virtuemart/pdf/delivery.pdf.php) [function.ps-delivery-require-once]: failed to open stream: No such file or directory in /var/www/html/administrator/components/com_virtuemart/classes/ps_delivery.php on line 347
Fatal error: ps_delivery::require_once() [function.require]: Failed opening required '/var/www/html/components/com_virtuemart/pdf/delivery.pdf.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/administrator/components/com_virtuemart/classes/ps_delivery.php on line 347
[/code]
Is what I get when I click administration from the frontend and make delivery pdf or invoice. I am logged in as superadmin from the frontend. From the backend everything works perfectly.
Using vm 1.1.2 and joomla 1.5.6 any idea how I can fix this?
Re: warning and fatal error
Posted: 11 Sep 2008, 16:22
by Jan
Hi, this addon works in admin only (joomla1.5) but try to change:
FROM:
require_once( JPATH_COMPONENT.DS.'pdf'.DS.'delivery.pdf.php' );
TO
require_once( JPATH_ADMINISTRATOR.DS .'components'.DS.'com_virtuemart'.DS.'pdf'.DS.'delivery.pdf.php' );
on line 347 in:
administrator/components/com_virtuemart/classes/ps_delivery.php
Jan
Re: warning and fatal error
Posted: 12 Sep 2008, 23:30
by wogand
thx Jan,
however i get this now:
Code: Select all
Warning: require_once(/var/www/html/components/com_virtuemart/pdf/phoca.tcpdf.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/html/administrator/components/com_virtuemart/pdf/delivery.pdf.php on line 12
Fatal error: require_once() [function.require]: Failed opening required '/var/www/html/components/com_virtuemart/pdf/phoca.tcpdf.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/administrator/components/com_virtuemart/pdf/delivery.pdf.php on line 1
Re: warning and fatal error
Posted: 15 Sep 2008, 15:02
by Jan
so try to change the code here too:
FROM:
... JPATH_COMPONENT.DS. ....
to
... JPATH_ADMINISTRATOR.DS .'components'.DS.'com_virtuemart'. ...
Jan
Re: warning and fatal error
Posted: 11 Aug 2009, 16:55
by electrickn
Hi,
sorry, I look after an answer of my problem in the whole forum. Couldn't find anything...
I have this error too but in backend:
Warning: require_once(/www/htdocs/w...0/page/administrator/components/com_virtuemart/pdf/delivery.pdf.php) [function.require-once]: failed to open stream: No such file or directory in /www/htdocs/w...0/page/administrator/components/com_virtuemart/classes/ps_delivery.php on line 347
Fatal error: require_once() [function.require]: Failed opening required '/www/htdocs/w...0/page/administrator/components/com_virtuemart/pdf/delivery.pdf.php' (include_path='.:/usr/share/php:..') in /www/htdocs/w...0/page/administrator/components/com_virtuemart/classes/ps_delivery.php on line 347
I did the changes you posted before but nothing changed.
I use J1.5.12 and VM1.1.13...
Hope s.o. can help me...
Thanks
Re: warning and fatal error
Posted: 11 Aug 2009, 21:29
by Jan
Did you check if the files are on the server and if they can be accessed?
Re: warning and fatal error
Posted: 12 Aug 2009, 11:45
by electrickn
Hi,
thank you for responding.
Sorry, was my fault. I took the files in the existing folder "pdf" under classes, didn't see, that the "pdf"-folder of the pdf-tool had to be created on another position one step back.
Works fine, Special thanks. Phoca rules... ;o)
Re: warning and fatal error
Posted: 14 Aug 2009, 20:20
by Jan
Ok