Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Links not working - assistance needed


mmind

Recommended Posts

Posted

Hi.

My e-shop has been up and running for about a year. Suddenly, a couple days ago, after a routine upload with slight design changes in index.php, things have gone awry:

All dynamic links in the site don't work anymore.

Static links that invoke different sections in the site(about.php, contact.php and so on)) are working, but

all dynamic links (tep_href_link(FILENAME_DEFAULT, $cPath_new ...)), for example, categories, products etc just bring the initial index.php with the default page.

In short: categories, product links, language changes etc don't work.

I suspect it has something to do with how the session is formed or how PHP handles the functions. Is it a problem with application_top.php? Is it my provider's fault?

 

I'm lost.

 

You can check it out here: http://minibar.gr

 

thanks

 

-mmind

 

ps. I'm using PHP 5.2, MySQL 5.1.3 on my localhost where everything is alright. I tried uploading everything and importing the database again on the provider (they're using PHP 5.1.6 and MySQL 5.0.45) and didn't work :(

Posted

Have you got a backup of the file before your 'slight design changes?'

 

yep... it's looks so much like some coding error but, yes, i have the old backups, and they're not working. The old and new versions both work locally but get stubborn when uploaded :(

 

thanks :$

Posted

yep... it's looks so much like some coding error but, yes, i have the old backups, and they're not working.

Looks like your host turned off register_globals in PHP 5.1.6 (the version your shop is running at now). You probably will need to upgrade to RC2a to fix this.

Posted

Looks like your host turned off register_globals in PHP 5.1.6 (the version your shop is running at now). You probably will need to upgrade to RC2a to fix this.

 

I thought so... (i have OSC 2.2-MS2)

Do you think it's worth it to try the Register Globals off contribution instead?

 

thanx

Posted

Do you think it's worth it to try the Register Globals off contribution instead?

I think you would be better off with the register globals fix in the upgrade. it also fixes other things you will run into when your host upgrades MySQL for example.

 

The upgrade path in the contribution is chosen in such a way that the shop comes backup as soon as possible and less important things are done later.

Posted

yes I'm on it right now, though i have to do all the code replacements manually. IT's probably gonna take all night - and i hope it works.

 

Thanks a bunch, the update file looks very well-written..

 

-mmind

Archived

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

×
×
  • Create New...