Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

'Warning' sign at top of page


grant101

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Posted
<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 :)

Posted

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.

Posted
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.

Posted

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.

Posted

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

Posted
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.

Posted

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.

Posted
} 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.

Posted
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 **

Posted

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.

Posted
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.

Posted
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 **

Posted

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)

Posted
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.

Archived

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

×
×
  • Create New...