Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Link to cart fails


edowty

Recommended Posts

I have been using osCommerce successfully since 2019, presumably V2.x.  Now the link doesn't work with a 500 error.  This may have been going on for some time. The site is hosted at Bluehost


www.shapesoftware.com


The bad links are to the Shopping Cart.  I can't sign in to the administrator page either. Error_log gives the following:


[11-Sep-2024 09:52:27 America/Boise] PHP Fatal error:  Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /home3/shapesof/public_html/oscomm/includes/functions/compatibility.php:46
Stack trace:
#0 /home3/shapesof/public_html/oscomm/includes/application_top.php(45): require()
#1 /home3/shapesof/public_html/oscomm/index.php(13): require('/home3/shapesof...')
#2 {main}
  thrown in /home3/shapesof/public_html/oscomm/includes/functions/compatibility.php on line 46

I don't see the function "get_magic_quotes_gpc" anywhere in my osCommerce files, including backups, although I see the reference to it in
compatibility.php.
Eric

Link to comment
Share on other sites

@edowtyMy guess is that your host upgraded the php version so please ask them if they have made a change like that recently.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

The default php version for the Bluehost site is 8.2 - only other choices are 8.1 and 8.3.  I reset it to 8.1 but this did not help.  I suppose the current version in 2019 when I installed osCommerce V2.3 was 7.x.

Were there any automatic updates to osCommerce V2.3 or can I update the files to be compatible with php 8.x?  If that is the problem, which seems likely.

Link to comment
Share on other sites

38 minutes ago, edowty said:

Were there any automatic updates to osCommerce V2.3 or can I update the files to be compatible with php 8.x?  If that is the problem, which seems likely.

Your version of oscommerce won't work with php 8. It might work with 7.4 but that depends on the exact version and what addons are installed.

It is possible to update your files to work with php 8 but it is not automatic. Many of the files (possibly hundreds) have to be edited. Though if you are going to pay to have that done, you would be better off upgrading to V4.  But you should ask your host if they will install the php version you need. Many hosts won't for various reasons but it is worth asking. Short of those two options, you can move to a host that offers the php version you need. I will PM you with more details.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...