ThommyF_25 1 Posted November 18, 2022 After 2 days AND nights I give up! My Web-Hoster has forced me to install a newer Version of OSC by changing the PHP from 7.x to 8.1. If I follow the Wiki-Steps to transfer the database-content from my old Shop-System (Merchant 2.3.3.4) I got a Site with several PHP Deprecated warnings (13 warnings). and no sec-file is created. as the shop was running sugsessfully until the changes, my customer wants it to run asap. The first Warnung says: Method ReflectionParameter::getClass() is deprecated and it refers to vendor/yiisoft/yii2/di/Container.php line 438. I tried to find an alternative way to fix it via php. But I failed till now. Can anyone help me please? Kind regards, Thommy Share this post Link to post Share on other sites
osCommerce-Official 281 Posted November 18, 2022 @pandreicould you please comment? Share this post Link to post Share on other sites
pandrei 18 Posted November 18, 2022 8 hours ago, ThommyF_25 said: Can anyone help me please? Hi Tomas, The OSC Bridge is usually running on the same server where the old osCommerce is installed. We assume that the osCommerce 2.x is not compatible with new php versions (>=8.0). Anyway, I have a solution for your case: 1. Open index.php in root_dir/your_oscb_dir. Add line with error_reporting function like this: error_reporting(E_ERROR | E_PARSE); require(__DIR__ . '/web/index.php'); 2. Save the file. OSC Bridge should work now. 1 osCommerce-Official reacted to this Share this post Link to post Share on other sites
ThommyF_25 1 Posted November 18, 2022 (edited) Ok, special thanks so far. The next step is done. A Key-File could be generated. Now I filled the informations in the backand form of the new shop system like it is shown in the wiki. When I try to click the save-button, I get an Error Failed to open stream: no suitable wrapper could be found. And Only the section "connection settings is shown. Edited November 18, 2022 by ThommyF_25 Share this post Link to post Share on other sites
pandrei 18 Posted November 18, 2022 39 minutes ago, ThommyF_25 said: Now I filled the informations in the backand form of the new shop system like it is shown in the wiki. When I try to click the save-button, I get an Error Failed to open stream: no suitable wrapper could be found. And Only the section "connection settings is shown. You have to turn on allow_url_fopen directive in php.ini file on your new server (with osCommerce v4): allow_url_fopen = On Here is a link that describes the directive:https://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen Share this post Link to post Share on other sites
ThommyF_25 1 Posted November 18, 2022 IT WORKED! Thank you so much! I was able to import most data from the old system. Now my plan is to "rebuild" the shop with the transfered data. The Categroies are "nameless" for example, but I think, with some work I'd finde a way now. If any other Problems are shown, I'd open another post in the Forum. Kind regards, Thommy 1 pandrei reacted to this Share this post Link to post Share on other sites