Jump to content
thirty bees forum

Recommended Posts

Posted

@datakickI updated one of the shops from bleeding edge that said 1.5.0 to stable 1.5.1 and get a 500 error. The decrypted error message is attached

 

Seems something is missing

Skärmbild från 2024-07-30 09-26-19.png

Posted

This is unfortunate backwards compatibility issue, but there's nothing we can do about it. Your module directly depends on old version of MobileDetect library (<3.74) -- that version is not compatible with PHP7.4 or higher. 

Ask the module author to use method from Context class instead. Lines 165...171 should look like this:

$layout = Context::getContext()->isMobile() ? 'mobile' : 'desktop';

 

Posted
13 minutes ago, datakick said:

This is unfortunate backwards compatibility issue, but there's nothing we can do about it. Your module directly depends on old version of MobileDetect library (<3.74) -- that version is not compatible with PHP7.4 or higher. 

Ask the module author to use method from Context class instead. Lines 165...171 should look like this:

$layout = Context::getContext()->isMobile() ? 'mobile' : 'desktop';

 

We have the same module in the other shop, both with php 7.4

But we see what they answer

Posted
Just now, Havouza said:

We have the same module in the other shop, both with php 7.4

But we see what they answer

The only version of this library that exports \Mobile_Detect into global namespace is version 2.8.x. Library author claims, in docs and in composer package.json,  that version 2.8.x supports only PHP >=5.0,<7.0. It may be that that version can actually run on php7.4 as well, I don't know. But I believe author when they say that it doesn't.

Since thirty bees does not support PHP<7.4, we can't use that version of library.

 

Posted
14 minutes ago, Havouza said:

@datakick

The developer now only have versions for PPS 1.7.2 - 8.1

Is it something I should test?

No, modules for ps17 are not compatible with thirty bees.

Posted
5 hours ago, datakick said:

The only version of this library that exports \Mobile_Detect into global namespace is version 2.8.x. Library author claims, in docs and in composer package.json,  that version 2.8.x supports only PHP >=5.0,<7.0. It may be that that version can actually run on php7.4 as well, I don't know. But I believe author when they say that it doesn't.

Since thirty bees does not support PHP<7.4, we can't use that version of library.

 

@datakick Well I got answer back from the developer of the module and they dont update it anymore because no one use PS 1.6 anymore so they have concentrated on PS 1.7 and 8.1.

I have heard that before about other modules we have and now we really have to discuss what to do. There is no other payment gateway that is used in Sweden. With 2 shops, each with about 2000 products this is a huge headache.

Posted

@datakick sorry I ask you directly but you seems to know a lot.
Would it be possible to let a freelance php programmer update the module so it work also with newer php and 1.5.1 TB.?
We have it working on the other shop on php 7.4 but that shop is still on TB 1.4 because its not possiblem to update it.

Posted
19 hours ago, Havouza said:

There is no other payment gateway that is used in Sweden. With 2 shops, each with about 2000 products this is a huge headache.

You could use Mollie and through Mollie Klarna.

Posted
36 minutes ago, yaniv14 said:

just edit the file your self and replace lines 165-171 with the single line @datakick mentioned

Thank you, that did the trick. I did not understand that @datakick meant to change the code.

But now it works! Thanks

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
×
×
  • Create New...