Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FILENAME_PRODUCT_INFO variable


jtb3

Recommended Posts

Posted

Hi,

 

I'm new to osCommerce and I'm sure I'm missing something fairly simple, but I need a hand if possible.

 

I got my site installed without much trouble and have since added qtpro4.3 and register globals easy. Somewhere in that process I changed how the filename variables work. When I ghost over 'My Account' on the top bar, it returns 'sitename/catalog/FILENAME_ACCOUNT' instead of the php file. On the column_left it does the same thing. When clicking 'What's New', it returns 'sitename/catalog/FILENAME_PRODUCT_INFO?products_id=28' instead of 'sitename/catalog/product_info.php?products_id=28.

 

Can someone point me in the right direction for a solution?

 

Thanks,

James

>_<

Posted

Add these to your /catalog/includes/filenames.php

 

  define('FILENAME_PRODUCT_INFO', 'product_info.php');
 define('FILENAME_ACCOUNT', 'account.php');

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Add these to your /catalog/includes/filenames.php

 

  define('FILENAME_PRODUCT_INFO', 'product_info.php');
 define('FILENAME_ACCOUNT', 'account.php');

 

Thanks for the info Germ. That is something I try to do, but good advice nevertheless.

 

I reloaded the filename.php but it didn't help. I didn't think would, I didn't mod that file when I installed the two contributions.

 

Something has changed the way the variables are interpreted. It seems the are being reading as literal strings instead of variables.

Posted

And those are the only two from filenames.php that are screwed?

 

All the other links on the site function normally?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
And those are the only two from filenames.php that are screwed?

 

All the other links on the site function normally?

:unsure:

 

Sorry no. They're all messed up, those were just two examples. I didn't make that clear.

Posted

Look in /catalog/includes/application_top.php

 

Around line 43 (in an unmodified version)

 

Does it have this code:

 

// include the list of project filenames
 require(DIR_WS_INCLUDES . 'filenames.php');

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Look in /catalog/includes/application_top.php

 

Around line 43 (in an unmodified version)

 

Does it have this code:

 

// include the list of project filenames
 require(DIR_WS_INCLUDES . 'filenames.php');

:unsure:

 

Yes that line is there.

Posted

From your first post:

 

I got my site installed without much trouble and have since added qtpro4.3 and register globals easy.

I really don't know squat about register globals, but my gut tells me yours aint working...

:blush:

 

Maybe someone else has another suggestion?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

From your first post:

I really don't know squat about register globals, but my gut tells me yours aint working...

:blush:

 

Maybe someone else has another suggestion?

:unsure:

[/quote/]

 

Thanks! That was my feeling also, but my experience is zero, so......

Archived

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

×
×
  • Create New...