Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: osCommerce PHP5 fix

  1. #1
    Join Date
    Apr 2005
    Location
    Plymouth, UK
    Posts
    134
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default osCommerce PHP5 fix

    Hi,
    I have only just moved to Red Fox (which I am extremely impressed with) and was in the process of moving all my clients web sites across from my old host when I had a panic attack because osCommerce wouldn't work. It would install fine, but then come up with an error when I tried to go to the admin section. After many hours of fiddling with the code and searching the net I finally found the fix for the problem...

    The problem was that 1 tiny line of code wasn't PHP5 compatible. All you need to do is to open up admin\includes\classes\upload.php and edit the line on or about line #31 that says "$this = null;" to be "//$this = null;" (without speach marks) and that should fix the problem.

    I hope that this fix saves you all the hours of frustration that I had to go through!

    Regards,

    Chris

  2. #2
    Join Date
    Feb 2004
    Posts
    4,877
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Thanks for the heads up Chris!
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  3. #3
    Join Date
    Apr 2005
    Location
    Plymouth, UK
    Posts
    134
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Some more osCommerce fixes

    Hi,
    Here's a few more fixes that I have had to use to get osCommerce working on Helm/PHP5.
    1. If you get an error like "1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-20, 20' at line 1" then click here for the fix!
    2. To get the osCommerce email system working change the following email settings in the "Configuration->E-Mail Options" section of the admin area. Change "E-Mail Linefeeds" to CRLF. Change "E-Mail Transport Method" to SMTP.
    Regards,

    Chris

  4. #4
    Join Date
    Jan 2005
    Location
    Mexico
    Posts
    111
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by dv8host
    Hi,
    I have only just moved to Red Fox (which I am extremely impressed with) and was in the process of moving all my clients web sites across from my old host when I had a panic attack because osCommerce wouldn't work. It would install fine, but then come up with an error when I tried to go to the admin section. After many hours of fiddling with the code and searching the net I finally found the fix for the problem...

    The problem was that 1 tiny line of code wasn't PHP5 compatible. All you need to do is to open up admin\includes\classes\upload.php and edit the line on or about line #31 that says "$this = null;" to be "//$this = null;" (without speach marks) and that should fix the problem.

    I hope that this fix saves you all the hours of frustration that I had to go through!

    Regards,

    Chris
    It´s working for me right now brother. It would had been very messy if this message wasn´t posted.
    Thank you for your time.
    ĦMay all be for the good of humanity!
    http://www.dechihuahua.com
    Community of Chihuahua, Mexico
    ---------- (50%)

  5. #5
    Join Date
    Jan 2005
    Location
    Mexico
    Posts
    111
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    By the way Chris,

    I configured my oscommerce with the shared ssl. When it redirects me to https://nitrogen.securedwebspace.com...t_shipping.php should I put all the checkout_* files in the ssl directory?

    Thank you for your time.
    ĦMay all be for the good of humanity!
    http://www.dechihuahua.com
    Community of Chihuahua, Mexico
    ---------- (50%)

  6. #6
    Join Date
    Feb 2004
    Posts
    4,877
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Hello,
    Yes - I believe you need to copy the files (all of them, including config) into the ssl directory too.

    Regards,
    Warren
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  7. #7
    Join Date
    May 2005
    Location
    Location: Location
    Posts
    181
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This is a well appreciated thread. I have tried unsuccessfully to get osCommerce working on Windows servers on a couple of occassions and rather than dig through PHP code (which I'm not exactly au fait with) I've resorted to using Cactushop which has to be paid for! OK, I've passed the cost on but this thread has now enabled me to start using osCommerce.

    Thanks very much for the solutions Chris.
    Glynn.

  8. #8
    Join Date
    Jan 2005
    Location
    Mexico
    Posts
    111
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Glynn
    This is a well appreciated thread. I have tried unsuccessfully to get osCommerce working on Windows servers on a couple of occassions and rather than dig through PHP code (which I'm not exactly au fait with) I've resorted to using Cactushop which has to be paid for! OK, I've passed the cost on but this thread has now enabled me to start using osCommerce.

    Thanks very much for the solutions Chris.
    HI,

    what was your experience with cactushop? Do you see it better equiped than oscommerce? What about your ssl cert, did you used the shared one?


    I´m still having problems with this thing. I copied all the files to the ssl directory, including the config file. Although I have severe linking problems. It skips form https:// to http:// and sessions or cookies are not stored. And I don´t want to dig too much in the php code.

    If I get a dedicated ssl cert. will this issue be fixed? as my domain will be: http://www.mydomain.com/store and be at the same time https://www.mydomain.com/store and will not have to copy from one directory to another, right?

    Thank you for your time.
    ĦMay all be for the good of humanity!
    http://www.dechihuahua.com
    Community of Chihuahua, Mexico
    ---------- (50%)

  9. #9
    Join Date
    May 2005
    Location
    Location: Location
    Posts
    181
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by terraqueotenaz
    what was your experience with cactushop? Do you see it better equiped than oscommerce? What about your ssl cert, did you used the shared one?
    I find cactushop unbelievably easy to set up and configure but cannot compare it with osCommerce as I never really got it fully functional. As I used Worldpay on the sites I did set up I didn't use an SSL cert as transactions were handled on their servers. I wouldn't hold/collect credit card info on shared hosting.

    Have sent you a PM with details of a trial installation of Cactushop that I have that you can play with.
    Glynn.

  10. #10
    Join Date
    Feb 2004
    Posts
    4,877
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Quote Originally Posted by terraqueotenaz
    If I get a dedicated ssl cert. will this issue be fixed? as my domain will be: http://www.mydomain.com/store and be at the same time https://www.mydomain.com/store and will not have to copy from one directory to another, right?
    Hello,
    Yes - this is correct; and your issue with cookies not being avaiable on the SSL domain is due to cookie security (different domain) - this is a limitation of shared SSL.

    Warm Regards,
    Warren
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PHP5 support
    By albatroz in forum Sales and Service Feature Enquiries
    Replies: 1
    Last Post: 10th May 2006, 07:51 PM
  2. osCommerce MySQL 5 Fixes
    By dv8host in forum osCommerce (PHP)
    Replies: 1
    Last Post: 11th November 2005, 10:52 PM
  3. PHP5: Auto loading classes
    By nick in forum Code Sharing
    Replies: 0
    Last Post: 4th October 2005, 06:08 PM
  4. my forum software is not working with php5
    By HostCan in forum phpBB (PHP)
    Replies: 5
    Last Post: 20th April 2005, 01:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •