Menu Content

Support

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

Parse error: syntax error, unexpected '>' in...
(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

TOPIC: Parse error: syntax error, unexpected '>' in...

Parse error: syntax error, unexpected '>' in... 13 years, 10 months ago #19813

Hi I purchased VM invoice and i can't seem to get invoices viewable in the front end. I followed the instructions in the documentation by I get the following error when i log in as a customer in the front end (Account Maintenance).

Parse error: syntax error, unexpected '>' in /home/jazzleo2/public_html/administrator/components/com_virtuemart/classes/ps_order.php on line 726

I have attached the "ps_order" file for reference.

Can anyone tell me where I might be going wrong.

Extract:

$tmp_cell = "<strong>".$VM_LANG->_('PHPSHOP_ORDER_PRINT_PO_STATUS').":</strong> ".$order_status;
$tmp_cell .= "<br /><strong>".$VM_LANG->_('PHPSHOP_ORDER_PRINT_PO_NUMBER').":</strong> " . sprintf("%08d", $db->f("order_id"));
$listObj->addCell( $tmp_cell );

$pdf_url = "index.php? option=com_vminvoice&controller=invoices&task=pdf&cid=". $db- >f("order_id");
$tmp_cell = ($db->f("order_status") == 'C') ? '<a href="' . JRoute::_($pdf_url) . '"><img src="' . JURI::base() . 'plugins/ed- itors/jce/tiny_mce/plugins/filemanager/img/ext/pdf_small.gif" /> ' . JText::_('Invoice') .' </a>' : '';
$listObj->addCell( $tmp_cell );


}
$listObj->writeTable();
$listObj->endTable();
if( $num_rows > 0 ) {
$listObj->writeFooter( $keyword, '&Itemid='.$sess->getShopItemid() );


regards,

Aaron.
Last Edit: 13 years, 10 months ago by Azza83. Reason: More Info
The topic has been locked.

Re: Parse error: syntax error, unexpected '>' in... 13 years, 10 months ago #19850

  • jaku
Hello,

from the code put here, I would say, that most likely, you copied the code including line breaks from the documentation.
The line cannot be broken up to parts. You need to put there:
$pdf_url = "index.php? option=com_vminvoice&controller=invoices&task=pdf&cid=". $db->f("order_id");
in single line.
Last Edit: 13 years, 10 months ago by .
The topic has been locked.
  • Page:
  • 1
User Login Empty