Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Not automatic generating pdf
(1 viewing) (1) Guest
Support forum for customers who have purchased this product. 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.
  • Page:
  • 1
  • 2

TOPIC: Not automatic generating pdf

Not automatic generating pdf 12 years, 11 months ago #25849

Hello, i have create a cron task as the manual example, and sending the email without the pdf please help me were to look.
Second I implement the code for front end I get blank page in front end and the virtuemart back end products page.

I appreciate for the help.
The topic has been locked.

Re: Not automatic generating pdf 12 years, 11 months ago #25851

  • jaku
Hello,
ad 1) is the PDF missing only when sending using the cron? If you send the email through back-end, does it have the attachment?
The problem might be in the PDF generation, does the PDF generate OK when you try in back-end - Order Management?

ad 2) if all you get is the blank page, then you have probably done something wrong and caused some parsing error or similar;

Turning error reporting in Joomla to Maximum level or checking web-server error logs should tell more. Please, locate the error message and post it here.
The topic has been locked.

Re: Not automatic generating pdf 12 years, 11 months ago #25856

1) the problem is only with the cron when using back end the pdf generated and sending with no prob.

2) the error in error reporting is in line 732 in my page is:

Parse error: syntax error, unexpected '>' in /var/www/vhosts/crazybonus.gr/httpdocs/administrator/components/com_virtuemart/classes/ps_order.php on line 728

The part of code in line 728 is:

>f("order_id");

Thanks
The topic has been locked.

Re: Not automatic generating pdf 12 years, 11 months ago #25857

  • jaku
Hello,
1) what exactly have you added to your cron?
2) well, as the error message says, you have invalid code there, so you have not copied it from the manual correctly; please, double check it

I think the problem is that you have spitted the code to multiple lines, please, make sure it is on single line, such as
$pdf_url = "index.php?option=com_vminvoice&controller=invoices&task=pdf&cid=".$db->f("order_id");

The formatting in PDF breaks the code to multiple line, you can check the online version, there it is correct - www.artio.net/vm-invoice/documentation#d0e565
Last Edit: 12 years, 11 months ago by .
The topic has been locked.

Re: Not automatic generating pdf 12 years, 11 months ago #25943

Hi,
question 2 answered and implement the code as you post me and its working thanks.

1) in cron i have added

wget -q -O /dev/null "www.crazybonus.gr/? option=com_vminvoice&task=cronMail&view=vminvoice"

I am in plesk panel and I have add
Minute: 10
Hour: *
Day of the week: *

Command: wget -q -O /dev/null "www.crazybonus.gr/? option=com_vminvoice&task=cronMail&view=vminvoice"

the pdf is not ganarated and it sends me the email without invoice pdf.
I have no error in cron but it cant generate pdf

Thanks again.
The topic has been locked.

Re: Not automatic generating pdf 12 years, 11 months ago #26039

  • jaku
Hello,
for sure there should be no space " " in the URL. Not sure if that is what you have in cron or if it is just copy+paste or formatting problem. (I mean in "www.crazybonus.gr/? option=...")

Do not see a reason why the PDF should not be generated if it works from back-end normally.
Are you sure there no related error messages? E.g. in web server error log?
The topic has been locked.
  • Page:
  • 1
  • 2
User Login Empty