Guest Posted June 17, 2004 Share Posted June 17, 2004 Parse error: parse error in /home/rydel/public_html/index.php on line 54 Line 54 reads: define('HEADING_TITLE', 'Let's See What We Have Here'); How do I fix this? Link to comment Share on other sites More sharing options...
241 Posted June 17, 2004 Share Posted June 17, 2004 define('HEADING_TITLE', 'Let\'s See What We Have Here'); There has been a backslash removed from the code, this can be a result of using the inline file manager to edit a file it is a known issue and the resolve is to use an ftp program such as ws_ftp to download the file and edit offline then ftp upload to the server. You may find that the parse error appears again at a different line number 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! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
vasttech Posted June 17, 2004 Share Posted June 17, 2004 Change define('HEADING_TITLE', 'Let's See What We Have Here'); to define('HEADING_TITLE', 'Let\'s See What We Have Here'); osCommerce Knowledge Base osCommerce Documentation Contributions Link to comment Share on other sites More sharing options...
Guest Posted June 17, 2004 Share Posted June 17, 2004 Thanks for the help. After I fixed line 54, I got one for line 68. Line 68 reads: define('TEXT_NOW', '' now'); Link to comment Share on other sites More sharing options...
vasttech Posted June 17, 2004 Share Posted June 17, 2004 You need to escape your quotes with a \ as such: define('TEXT_NOW', '' now'); define('TEXT_NOW', '\' now'); or delete the additional quote. osCommerce Knowledge Base osCommerce Documentation Contributions Link to comment Share on other sites More sharing options...
Guest Posted June 17, 2004 Share Posted June 17, 2004 Now I have one on line 25... require('includes/application_top.php'); Link to comment Share on other sites More sharing options...
vasttech Posted June 17, 2004 Share Posted June 17, 2004 Which file? To make this easier for you, I would recommend getting a good ftp utility, such as WS_FTP, download the site to your pc, get an editor (search on google for one or use notepad) then make your changes there. Once you have made an edit upload them. Parse errors are caused by failing to properly quote a line of text, failing to escape nested quotes, failing to have a ; at the end of a line. Not to be rude, but you really need to look at the code yourself and try and determine what is causing an error. On another note there are no errors in that line of code. Read the error, it will tell you which file is causing the problem. Then go to that file, look at the lines above an below the line number to determine if there is an error. If you are new to PHP I would recommend getting a good PHP book to help you learn. People here are willing to help, but you also have to be willing to help yourself. osCommerce Knowledge Base osCommerce Documentation Contributions Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.