Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ThommyF_25

create-sec-file failed completely

Recommended Posts

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
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.

Share this post


Link to post
Share on other sites

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 by ThommyF_25

Share this post


Link to post
Share on other sites
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

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×