Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help! parse error :(


Guest

Recommended Posts

Posted

was working in file:-

 

includes/languages/english.php

 

and now when i visit my shop i get error:-

 

Parse error: parse error in includes\languages\english.php on line 146

 

line 146 contains the following code... :-

 

define('JS_REVIEW_TEXT', '* The 'Review Text' must have at least ' . REVIEW_TEXT_MIN_LENGTH . ' characters.n');

 

Im completely new to PHP and programing so would appreciate any help, thanks :)

Posted

Stop using the oscommerce File manager. It is removing escape characters and causing parse errors. Get a fresh copy of the file and edit locally with your editor and then ftp it back to your site.

 

define('JS_REVIEW_TEXT', '* The 'Review Text' must have at least ' . REVIEW_TEXT_MIN_LENGTH . ' characters.n');

 

should be

 

define('JS_REVIEW_TEXT', '* The \'Review Text\' must have at least ' . REVIEW_TEXT_MIN_LENGTH . ' characters.\n');

 

 

HTH

Tom

Posted

thanks! that was the problem, did not realise the editor was poo :blush: lol

 

however... new problem, when clicking on Newsletter Manager (in admin) i get error:-

 

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-20, 20' at line 1

 

select newsletters_id, title, length(content) as content_length, module, date_added, date_sent, status, locked from newsletters order by date_added desc limit -20, 20

 

[TEP STOP]

Posted

Is this the same thing?

 

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-10, 10' at line 1

 

select o.orders_id, o.date_purchased, o.delivery_name, o.billing_name, ot.text as order_total, s.orders_status_name from orders o, orders_total ot, orders_status s where o.customers_id = '70' and o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.orders_status_id and s.language_id = '1' and o.orders_status != '99999' order by orders_id DESC limit -10, 10

Posted
Is this the same thing?

 

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-10, 10' at line 1

 

select o.orders_id, o.date_purchased, o.delivery_name, o.billing_name, ot.text as order_total, s.orders_status_name from orders o, orders_total ot, orders_status s where o.customers_id = '70' and o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.orders_status_id and s.language_id = '1' and o.orders_status != '99999' order by orders_id DESC limit -10, 10

 

yes that is the same just a different set of value numbers for the resulting split page

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Archived

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

×
×
  • Create New...