php 8.x and Vendor Front-End

12.11.2022 13:16
#1
auctionbroker
Joomshopping forum user no avatar
Name: Franz
05.06.2012
Posts: 16
Quote
php 8.x and Vendor Front-End

It seems that after upgrading php from php 7.4 to any higher version breaks vendor front-end add-on.
User login and cart won't work any more and when trying to manage a product there's a long code starting with
'Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in...'

Can you provide any help or info on this issue?

vendor front end version 2.7.13 (even it still shows 12, wasn't corrected in latest update.php)

kind regards,
Franz


Joomla: 3.10.11
JoomShopping: 4.18.9
Website Url: www.sklenarbiene.com
 
12.11.2022 13:54
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25856
Quote
Aw: php 8.x and Vendor Front-End

Use php 7.4.
-------------------
Addons for JoomShopping 4.x (php 7.4)
---------------------------------------------------------
Addons for JoomShopping 5.x (php 7.4 / php 8)
(Many addons are still in development)


Last change: 12.11.2022 13:58
 
12.11.2022 18:32
#3
auctionbroker
Joomshopping forum user no avatar
Name: Franz
05.06.2012
Posts: 16
Quote
Aw: php 8.x and Vendor Front-End

Thank you for the quick reply. Unfortunately PHP 7.4 support ends very soon (Nov 28th) and so there's a potential security risk from this point on if we don't upgrade our webservers.

I would very much appreciate an updated version of 'vendor front-end' add-on in the near future.

Thanks in advance.

 
12.11.2022 18:41
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25856
Quote
Aw: php 8.x and Vendor Front-End

support ends - This does not mean that php will stop working.

 
12.11.2022 19:26
#5
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25856
Quote
Aw: php 8.x and Vendor Front-End

Vendor front-end 2.7.14 - fixed php 8
-----

strpos() - I don't see such an error.
Full text error?

or
enable debug mode -> error?


Last change: 12.11.2022 19:27
 
13.11.2022 09:03
#6
auctionbroker
Joomshopping forum user no avatar
Name: Franz
05.06.2012
Posts: 16
Quote
Aw: php 8.x and Vendor Front-End

I get this when I switch to php 8.0 and click on cart or account:
Warning: Undefined array key "exact" in /home/.sites/91/site297/web/sb/components/com_jshopping/helpers/association.php on line 94


strpos() only appears when i switch to php 8.1.
it's not that urgent because this update causes some other (small) issues which have to be solved first.


Last change: 13.11.2022 09:06
 
28.11.2022 10:54
#7
auctionbroker
Joomshopping forum user no avatar
Name: Franz
05.06.2012
Posts: 16
Quote
Aw: php 8.x and Vendor Front-End

Any idea on https://www.joomshopping.com/forum/posts/1/15658.html?lang=de#6 ?


Last change: 28.11.2022 10:55
 
28.11.2022 17:27
#8
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25856
Quote
Aw: php 8.x and Vendor Front-End

Use php 7.4

Will be fixed in new version.


Last change: 28.11.2022 17:29
 
12.12.2022 12:15
#9
auctionbroker
Joomshopping forum user no avatar
Name: Franz
05.06.2012
Posts: 16
Quote
Aw: php 8.x and Vendor Front-End

Problem is more urgent than you might think, as meanwhile e.g. my hoster world4you.com doesn't offer a downgrade to PHP 7.4. anymore.


Last change: 12.12.2022 12:19
 
12.12.2022 19:27
#10
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25856
Quote
Aw: php 8.x and Vendor Front-End

Disable error diplay.

Global Configuration /
Error Reporting: None

Only for debug site - Error Reporting: simple or maximum for developer

 
25.07.2023 11:42
#11
auctionbroker
Joomshopping forum user no avatar
Name: Franz
05.06.2012
Posts: 16
Quote
Aw: php 8.x and Vendor Front-End

any news about PHP 8.x and Vendor Front-End in JoomShopping 4.x ?
Is there a newer version in sight?

kind regards,
Franz

 
25.07.2023 12:18
#12
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25856
Quote
Aw: php 8.x and Vendor Front-End

Problem in Joomshopping

components\com_jshopping\helpers\association.php

if ($check && $page['exact']) {

change to

if ($check && isset($page['exact']) && $page['exact']) {

 
26.07.2023 11:09
#13
auctionbroker
Joomshopping forum user no avatar
Name: Franz
05.06.2012
Posts: 16
Quote
Aw: php 8.x and Vendor Front-End

Thank you, it works now!

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.