Jack_mcs Posted March 16, 2023 Posted March 16, 2023 I am getting the failure shown below while trying to import data from a V2 shop. The account is set to php 8.1. Is V4 compatible with 8.1? Default value for parameters with a class type hint can only be NULL in /home/path-hidden/...com/install/install.class.php on line 37 Quote 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
pandrei Posted March 16, 2023 Posted March 16, 2023 1 hour ago, Jack_mcs said: I am getting the failure shown below while trying to import data from a V2 shop. The account is set to php 8.1. Is V4 compatible with 8.1? Sure, osCommerce 4.x is compatible with PHP 8.1 1 hour ago, Jack_mcs said: Default value for parameters with a class type hint can only be NULL in /home/path-hidden/...com/install/install.class.php on line 37 It is not import script. It seems you are trying to run osCommerce installation under PHP 5.x Quote
Jack_mcs Posted March 17, 2023 Author Posted March 17, 2023 17 hours ago, pandrei said: It seems you are trying to run osCommerce installation under PHP 5.x Correct. How do I convert the database of a shop that only works with those versions? Quote 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
pandrei Posted March 17, 2023 Posted March 17, 2023 1 hour ago, Jack_mcs said: Correct. How do I convert the database of a shop that only works with those versions? Install the latest version of osCommerce v4. It requires PHP 7.4, 8.0, 8.1 Then use this manual to set up the OSC Bridge and import database: https://www.oscommerce.com/wiki/Importing_Data_from_Older_osCommerce_Version_to_New_One Quote
Jack_mcs Posted March 17, 2023 Author Posted March 17, 2023 2 hours ago, pandrei said: Install the latest version of osCommerce v4. It requires PHP 7.4, 8.0, 8.1 It is set to use 8.1. 2 hours ago, pandrei said: Then use this manual to set up the OSC Bridge and import database: The bridge is uploaded to the live shop. The live shop is using 5.4. It is the bridge code that is getting the error. Quote 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
pandrei Posted March 18, 2023 Posted March 18, 2023 On 3/17/2023 at 6:59 PM, Jack_mcs said: The bridge is uploaded to the live shop. The live shop is using 5.4. It is the bridge code that is getting the error. What error are you talking about? About this: On 3/16/2023 at 8:53 PM, Jack_mcs said: Default value for parameters with a class type hint can only be NULL in /home/path-hidden/...com/install/install.class.php on line 37 It is not the OSC Bridge error. It is an osCommerce v4 installation error On 3/17/2023 at 6:59 PM, Jack_mcs said: The bridge is uploaded to the live shop. The live shop is using 5.4. Are you sure you uploaded OSC Bridge and not osCommerce v4 to the live shop? Quote
Jack_mcs Posted March 19, 2023 Author Posted March 19, 2023 @pandreiI'm sorry. I'm working on several conversions and got them confused. The error I posted is the correct error but it is for an installation, not a database conversion. The php version that the installation script is working with is 8.1. Quote 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
Jack_mcs Posted March 21, 2023 Author Posted March 21, 2023 @pandreiAny idea when you might get to this? While waiting, I deleted all of the v4 files and tried again. Same failure. Unrelated to this, maybe, is that when the install file is extracted the permissions on the files are 664 so it causes a fatal error before extracting anything. Quote 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
pandrei Posted March 22, 2023 Posted March 22, 2023 10 hours ago, Jack_mcs said: Any idea when you might get to this? While waiting, I deleted all of the v4 files and tried again. Same failure. I only know that you have some kind of failure at now. And it's not enough. Could you send an error message or a screenshot of failure? Quote
Jack_mcs Posted March 22, 2023 Author Posted March 22, 2023 4 hours ago, pandrei said: I only know that you have some kind of failure at now. And it's not enough. Could you send an error message or a screenshot of failure? It's the same one I posted to open this but here it is again: On 3/16/2023 at 2:53 PM, Jack_mcs said: Default value for parameters with a class type hint can only be NULL in /home/path-hidden/...com/install/install.class.php on line 37 That shows on the install page on the site, but only because I changed the index.php file to display errors. There are not any entries in the frontend log file. I assume you will need access for this so I will PM you with the details. Quote 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
pandrei Posted March 22, 2023 Posted March 22, 2023 @Jack_mcs, Thanks for the access. It the simplest way to check your issue. You are trying to install osCommerce v4 on PHP 5.4.45 But osCommerve v4 requires PHP 7.3 or newer You can install on PHP 5.4.45 only OSC Bridge that allows you to export the database from osCommerce 2.x Quote
Jack_mcs Posted March 23, 2023 Author Posted March 23, 2023 It turned out to be the install script replacing the .htaccess file, which removes the php version command added by cpanel. Quote 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
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.