Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Switching to PHP5 from PHP4.4.4


kunal247

Recommended Posts

Here is a link to my site

 

I have just added a code to the .htaccess file to switch across to PHP5

Site comes up fine with no errors.

 

But on clicking on any product on the site it shows product no found!, same goes for the menu.

 

not sure where to look, to fix this issue. All seems to work fine if I switch back to PHP4.

 

can some one please help.

Link to comment
Share on other sites

Hi

 

Look ok to me (in f/fox)

 

can you give url to error

Hi,

Sorry the .htaccess code was put back to the old one by mistake.

I have updated the new .htaccess with the PHP5 switch over code but we are not able to link to the product.

 

Current .htaccess code is:

Action php5-script /interpreters/php5-script 
AddHandler php5-script .php
Options +FollowSymLinks
RewriteEngine on
RewriteBase /

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

 

Can some one pls help!

Link to comment
Share on other sites

Maybe this ...

 

Use Search-Engine Safe URLs (still in development) <---make sure this set to FALSE

where do i find this - Use Search-Engine Safe URLs

Also I have the regiser_globals contribution added so on or off wont make a difference.

Link to comment
Share on other sites

where do i find this - Use Search-Engine Safe URLs

Also I have the regiser_globals contribution added so on or off wont make a difference.

Log in to your oscommerce admin panel. Configuration>>My Store

Link to comment
Share on other sites

Log in to your oscommerce admin panel. Configuration>>My Store

Just checked this, it is currently set at FALSE.

 

so I guess we are back again with the same problem. Also when we add the PHP5 swich over code in .htaccess file we are not able to open the admin section either of the site.

 

Hope some one can help as we are truly stuck over here.

Link to comment
Share on other sites

Just checked this, it is currently set at FALSE.

 

so I guess we are back again with the same problem. Also when we add the PHP5 swich over code in .htaccess file we are not able to open the admin section either of the site.

 

Hope some one can help as we are truly stuck over here.

 

Hi

 

With my old host we hade php 4 and 5 on the server but to get 5 working we hade to change .php to .5php

Link to comment
Share on other sites

/product_info.php?products_id=5284?

 

why ? twice.

 

Also with PHP5 did You set register globals to on or apply register globals patch.

 

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

/product_info.php?products_id=5284?

 

why ? twice.

 

Also with PHP5 did You set register globals to on or apply register globals patch.

 

 

Satish

Hi Satish,

/product_info.php?products_id=5284? - what is twice? one is product info the other is product id.

 

Currently the PHP5 has Globals set to ON but also have the globals patch installed.

 

Cant understand why the products are not opening up. when the link is correct.

Link to comment
Share on other sites

Currently the PHP5 has Globals set to ON but also have the globals patch installed.

 

 

Somewhere in the back of my mind, I remember reading that globals on AND the globals patch will result in errors. You need either one or the other.

 

But my memory is not what it was - I may be talking buzzcocks.

Link to comment
Share on other sites

In the Register Globals Patch Files contrib Install file it specifically states that if you apply the patch then you have to set Register Globals to 'off' in php.ini.

 

However, the Register Globals Patch Files only cover the basic osCommerce install and does not cover heavily modified websites.

 

Vger

Link to comment
Share on other sites

Somewhere in the back of my mind, I remember reading that globals on AND the globals patch will result in errors. You need either one or the other.

 

But my memory is not what it was - I may be talking buzzcocks.

 

I have now turned the register_globals to Off but this has not helped either.

now getting another error and the site is not coming up at all:

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

Link to comment
Share on other sites

Hello,

It should have an & and not a ? twice

 

like this

index.php?act=post&do=reply_post&f=11&t=302943.

 

 

Also If You applied the register global patch then in application_top the error line code was not modified as needed.

 

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Hi

 

try adding:

 

# php_value session.use_trans_sid 0

php_value register_globals 1

 

to your .htaccess

Hi,

Tried adding the above code to the .htaccess but had no luck with it.

Still getting the same error

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

 

any other suggestions!

Link to comment
Share on other sites

Hi,

Tried adding the above code to the .htaccess but had no luck with it.

Still getting the same error

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

 

any other suggestions!

Here's a long shot.

Comment "register globals" in htaccess for now.

 

If you have access to your php.ini file (make a backup before you do this), enable register globals in it and rename it to php5.ini

 

If you don't have access to it, here's the code.

 

Some servers disabled turning register_globals on through htaccess.

You can turn register gloabls on through php. Copy the code below via text editor and save it as php5.ini

 

<?php

 

register_globals = on

 

?>

Place it in the root directory and/or folder( if your site is in a folder) of your website.

Link to comment
Share on other sites

Here's a long shot.

Comment "register globals" in htaccess for now.

 

If you have access to your php.ini file (make a backup before you do this), enable register globals in it and rename it to php5.ini

 

If you don't have access to it, here's the code.

 

Some servers disabled turning register_globals on through htaccess.

You can turn register gloabls on through php. Copy the code below via text editor and save it as php5.ini

 

<?php

 

register_globals = on

 

?>

Place it in the root directory and/or folder( if your site is in a folder) of your website.

Thanks for your feedback.

Have given this a shot too but this also did not help.

 

Not sure what else to do to check things over.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...