Jack_mcs Posted March 16 Share Posted March 16 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. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
pandrei Posted March 16 Share Posted March 16 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 Link to comment Share on other sites More sharing options...
Jack_mcs Posted March 17 Author Share Posted March 17 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. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
pandrei Posted March 17 Share Posted March 17 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 Link to comment Share on other sites More sharing options...
Jack_mcs Posted March 17 Author Share Posted March 17 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. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
pandrei Posted Saturday at 07:27 PM Share Posted Saturday at 07:27 PM 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 Link to comment Share on other sites More sharing options...
Jack_mcs Posted Sunday at 02:58 PM Author Share Posted Sunday at 02:58 PM @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. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Jack_mcs Posted Tuesday at 10:18 PM Author Share Posted Tuesday at 10:18 PM @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. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
pandrei Posted Wednesday at 08:32 AM Share Posted Wednesday at 08:32 AM 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 Link to comment Share on other sites More sharing options...
Jack_mcs Posted Wednesday at 01:03 PM Author Share Posted Wednesday at 01:03 PM 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. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
pandrei Posted Wednesday at 08:07 PM Share Posted Wednesday at 08:07 PM @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 Link to comment Share on other sites More sharing options...
Jack_mcs Posted 20 hours ago Author Share Posted 20 hours ago 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. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
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.