grant101 Posted February 17, 2006 Posted February 17, 2006 I have this warning sign at the top of my pages... how do i get rid of it.. :blink: Warning: Wrong parameter count for define() in /home/blingpar/public_html/osCommerse/includes/languages/english/index.php on line 40 I was playing around with it trying to get some stuff better and now i can't get of this warning.. Cheers. Grant.
MartinM Posted February 17, 2006 Posted February 17, 2006 Open up the file you're being warned about, take a look at line 40, and see if anything's obviously wrong with it. If you can't see anything, post it here so we can take a look.
grant101 Posted February 17, 2006 Author Posted February 17, 2006 Hi Martin.. I can't notice anything different.. here it is... <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> Thankyou mate.
grant101 Posted February 17, 2006 Author Posted February 17, 2006 this is the 40th line <title><?php echo TITLE; ?></title>
MartinM Posted February 17, 2006 Posted February 17, 2006 <head><meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> That shouldn't be there. That's a part of the file /catalog/index.php, not /catalog/includes/languages/english/index.php - if you've acidentally overwritten the language file, you'll need to grab another copy and replace it. Thankyou mate. You're welcome :)
grant101 Posted February 17, 2006 Author Posted February 17, 2006 sorry my mistake, that was the /catalog/index.php, not /catalog/includes/languages/english/index.php here it is.. } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What's New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } define(DIR_WS_BOXES . 'whats_new.php'); anything look different there?? Cheers. Grant.
MartinM Posted February 17, 2006 Posted February 17, 2006 define('HEADING_TITLE', 'What's New Here?'); This looks like the problem - php will interpret the apostrophe in "What's" as the end of that argument, and won't know what to do with the stuff after it. Escape that apostrophe with a backslash, like so: What\'s Should sort you out.
grant101 Posted February 17, 2006 Author Posted February 17, 2006 ok excellent... does this look right now? } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } define(DIR_WS_BOXES . 'what\'s_new.php'); ?> cheers Grant.
MartinM Posted February 17, 2006 Posted February 17, 2006 Well, it looks exactly the same as the last version - until I hit quote lol Yeah, looks good now.
grant101 Posted February 17, 2006 Author Posted February 17, 2006 now i'm getting this... Parse error: parse error, unexpected T_STRING in /home/blingpar/public_html/osCommerse/includes/languages/english/index.php on line 18 not sure why but. cheers Grant
MartinM Posted February 17, 2006 Posted February 17, 2006 now i'm getting this... arse error: parse error, unexpected T_STRING in /home/blingpar/public_html/osCommerse/includes/languages/english/index.php on line 18 not sure why but. cheers Grant Well, I'm just leaving work, but if you just look for similar problems you might be able to sort it. If that doesn't work, post the relevant parts of the file here and I'll take a look when I get home.
grant101 Posted February 17, 2006 Author Posted February 17, 2006 Thankyou Martin.. that would be great.. it is 3:45am here in Australia. here it is. define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let's See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); Cheers Grant.
ArtRat Posted February 17, 2006 Posted February 17, 2006 } elseif ($category_depth == 'top') {define('HEADING_TITLE', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } define(DIR_WS_BOXES . 'what\'s_new.php'); ?> now i'm getting this... Parse error: parse error, unexpected T_STRING in /home/blingpar/public_html/osCommerse/includes/languages/english/index.php on line 18 not sure why but. cheers Grant is the 'what\'s_new.php' part in the line define(DIR_WS_BOXES . 'what\'s_new.php'); correct? that should be the actual name of the file whats_new.php look in your includes/boxes folder and check the name of the box file you are calling.
Terra Posted February 17, 2006 Posted February 17, 2006 Thankyou Martin.. that would be great.. it is 3:45am here in Australia. here it is. define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let's See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); Cheers Grant. My guess: define('HEADING_TITLE', 'Let's See What We Have Here'); ALL apostrophes must be escaped by backslash "Let\'s" PS: never use filemanager as it will corrupt your backslashes My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad) and how to solve the invoice already paid error General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email **
grant101 Posted February 17, 2006 Author Posted February 17, 2006 what should i use instead of filemanager ? my FTP?
grant101 Posted February 17, 2006 Author Posted February 17, 2006 now it's coming up with this.. parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/blingpar/public_html/osCommerse/includes/languages/english/index.php on line 32 Is there somewhere i can cut and paste a new copy of the codes into there.. to get me back to square 1? cheers Grant.
grant101 Posted February 17, 2006 Author Posted February 17, 2006 what is wrong with this? define('TEXT_NOW', 'now''); cheers Grant.
MartinM Posted February 17, 2006 Posted February 17, 2006 what is wrong with this? define('TEXT_NOW', 'now''); cheers Grant. Looks like you're mixing single and double quotes around the word 'now,' no? Try: define('TEXT_NOW', 'now'); You can get a default copy of any file you need here.
Terra Posted February 17, 2006 Posted February 17, 2006 what should i use instead of filemanager ? my FTP? yes - a good FTP program. the osCom filemanager is unsuitable & corupts your files. If you are using filemanager then your problems won't go away. My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad) and how to solve the invoice already paid error General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email **
grant101 Posted February 17, 2006 Author Posted February 17, 2006 hi Martin.. yep got my page back now... thanks heaps... very appricated. :D :D now i wish i was smart enough to help others on here... :blink: :P yeah i had two quotation marks in there that wasn't suppose to be there.... dunno how they got there?? Cheers, thanks for your help mate. Grant B)
grant101 Posted February 17, 2006 Author Posted February 17, 2006 yes - a good FTP program. the osCom filemanager is unsuitable & corupts your files. If you are using filemanager then your problems won't go away. ah yep.. it just started useing my ftp program... thankyou for the advice, i knew i wasn't changing stuff that was causeing problems.. well now i know... thankyou. :) cheers Grant.
grant101 Posted February 17, 2006 Author Posted February 17, 2006 all problems fixed... thanks a million... cheers. Grant.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.