Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can you spot my error?


JPLewis

Recommended Posts

Posted

I'm getting an "unexpected T_STRING" error...

 

Parse error: syntax error, unexpected T_STRING in /home/pound2/public_html/rodeobabe/includes/languages/english/print_my_invoice.php on line 28

 

I believe the usual cause of this error is a misplaced single quote or double quote, but after staring at my language files for hours, I can't spot the error. This from Pop The Top's great Fancier Invoice contrib... it worked great before, but somewhere along the way I botched something.

 

Here are lines 23 thru 36 of the language file mentioned in the error: Line 28 is the line with the reference to SKUs...

____________________________________________

 

 

define('INVOICE_IMAGE_WIDTH', '323'); // Change this to your logo's width

define('INVOICE_IMAGE_HEIGHT', '112'); // Change this to your logo's height

define('INVOICE_IMAGE_ALT_TEXT', '' // Change this to your logo's ALT text or leave blank

 

// Product Table Info Headings

define('TABLE_HEADING_PRODUCTS_MODEL', 'SKU #'); // Change this to "Model #" or leave it as "SKU #"

 

//// END Editing the above defines to your liking ////

 

define('INVOICE_TEXT_INVOICE_NR', 'Invoice Number- ');

define('INVOICE_TEXT_INVOICE_DATE', 'Invoice Date- ');

 

// Misc Invoice Info

define('INVOICE_TEXT_NUMBER_SIGN', '#');

_______________________________________________

 

I can't spot it... any help...?

 

Regards,

 

JP

Posted

Just change

define('INVOICE_IMAGE_ALT_TEXT', '' // Change this to your logo's ALT text or leave blank

to

define('INVOICE_IMAGE_ALT_TEXT', ''); // Change this to your logo's ALT text or leave blank

 

u missed a bracket closing:)

 

I'm getting an "unexpected T_STRING" error...

 

Parse error: syntax error, unexpected T_STRING in /home/pound2/public_html/rodeobabe/includes/languages/english/print_my_invoice.php on line 28

 

I believe the usual cause of this error is a misplaced single quote or double quote, but after staring at my language files for hours, I can't spot the error. This from Pop The Top's great Fancier Invoice contrib... it worked great before, but somewhere along the way I botched something.

 

Here are lines 23 thru 36 of the language file mentioned in the error: Line 28 is the line with the reference to SKUs...

____________________________________________

define('INVOICE_IMAGE_WIDTH', '323'); // Change this to your logo's width

define('INVOICE_IMAGE_HEIGHT', '112'); // Change this to your logo's height

define('INVOICE_IMAGE_ALT_TEXT', '' // Change this to your logo's ALT text or leave blank

 

// Product Table Info Headings

define('TABLE_HEADING_PRODUCTS_MODEL', 'SKU #'); // Change this to "Model #" or leave it as "SKU #"

 

//// END Editing the above defines to your liking ////

 

define('INVOICE_TEXT_INVOICE_NR', 'Invoice Number- ');

define('INVOICE_TEXT_INVOICE_DATE', 'Invoice Date- ');

 

// Misc Invoice Info

define('INVOICE_TEXT_NUMBER_SIGN', '#');

_______________________________________________

 

I can't spot it... any help...?

 

Regards,

 

JP

Simple Add-ons Please add simple plain tips here for others.
Posted

Isn't it astonishing how simple things like that can elude you for hours...? :blink:

 

Thanx a million...

 

JP

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...