WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

Du bist nicht angemeldet.

Ankündigung

#1 16.11.2026 19:22:00

ces-gmbh
Mitglied

Bakery 1.8.9 Deprecated-Meldungen bei Zahlungsmethoden

Hallo zusammen,
vielleicht kann mir jemand helfen ohne gleich die ganze Funktion auszuschalten. Aber zumindest keine Fehler Meldungen produziert.

[Deprecated] /modules/bakery/payment_methods/cod/languages/EN.php:[96] from /modules/bakery/modify_payment_methods.php:[101] "Function utf8_encode() is deprecated"
[Deprecated] /modules/bakery/payment_methods/cod/languages/DE.php:[90] from /modules/bakery/modify_payment_methods.php:[106] "Function utf8_encode() is deprecated"
[Deprecated] /modules/bakery/payment_methods/cod/languages/DE.php:[91] from /modules/bakery/modify_payment_methods.php:[106] "Function utf8_encode() is deprecated"
[Deprecated] /modules/bakery/modify_payment_methods.php:[188] from /modules/bakery/modify_payment_methods.php:[188] array_map "stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated"

[Exception] There was an unknown exception: array_map(): Argument #1 ($callback) must be a valid callback or null, function "safe_stripslashes" not found or invalid function name in line (190) of /modules/bakery/modify_payment_methods.php


WBCE 1.6.11 | PHP Version: 8.2.35 | Backery 1.89

Besten Dank vorerst!

LG René

Offline

#2 Gestern 08:16:50

florian
Administrator

Re: Bakery 1.8.9 Deprecated-Meldungen bei Zahlungsmethoden

So, KI hilft:

Zum einen in den Sprachdateien der Zahlungsmethoden (modules/bakery/payment_methods/cod/languages/DE.php etc.) alle Vorkommnisse von

$MOD_BAKERY[$payment_method]['EMAIL_SUBJECT_CUSTOMER'] = utf8_encode($MOD_BAKERY[$payment_method]['EMAIL_SUBJECT_CUSTOMER']);
	$MOD_BAKERY[$payment_method]['EMAIL_BODY_CUSTOMER'] = utf8_encode($MOD_BAKERY[$payment_method]['EMAIL_BODY_CUSTOMER']);
	$MOD_BAKERY[$payment_method]['EMAIL_SUBJECT_SHOP'] = utf8_encode($MOD_BAKERY[$payment_method]['EMAIL_SUBJECT_SHOP']);
	$MOD_BAKERY[$payment_method]['EMAIL_BODY_SHOP'] = utf8_encode($MOD_BAKERY[$payment_method]['EMAIL_BODY_SHOP']);

ersetzen durch

$MOD_BAKERY[$payment_method]['EMAIL_SUBJECT_CUSTOMER'] = mb_convert_encoding($MOD_BAKERY[$payment_method]['EMAIL_SUBJECT_CUSTOMER'], 'UTF-8', 'ISO-8859-1');
$MOD_BAKERY[$payment_method]['EMAIL_BODY_CUSTOMER'] = mb_convert_encoding($MOD_BAKERY[$payment_method]['EMAIL_BODY_CUSTOMER'], 'UTF-8', 'ISO-8859-1');
$MOD_BAKERY[$payment_method]['EMAIL_SUBJECT_SHOP'] = mb_convert_encoding($MOD_BAKERY[$payment_method]['EMAIL_SUBJECT_SHOP'], 'UTF-8', 'ISO-8859-1');
$MOD_BAKERY[$payment_method]['EMAIL_BODY_SHOP'] = mb_convert_encoding($MOD_BAKERY[$payment_method]['EMAIL_BODY_SHOP'], 'UTF-8', 'ISO-8859-1');

In  /modules/bakery/modify_payment_methods.php

$fetch_payment_methods = array_map('stripslashes', $fetch_payment_methods);

ersetzen durch

$fetch_payment_methods = array_map(
			fn($value) => is_string($value) ? stripslashes($value) : $value,
			$fetch_payment_methods
		);

Jedoch zu

[Exception] There was an unknown exception: array_map(): Argument #1 ($callback) must be a valid callback or null, function "safe_stripslashes" not found or invalid function name in line (190) of /modules/bakery/modify_payment_methods.php

Das kann ich nicht reproduzieren, im Code von Bakery 1.89 kommt nirgends "safe_stripslashes" vor

Beitrag geändert von florian (Gestern 08:17:33)

Offline

#3 Gestern 09:07:45

ces-gmbh
Mitglied

Re: Bakery 1.8.9 Deprecated-Meldungen bei Zahlungsmethoden

Guten Morgen Florian

"safe_stripslashes" Diesen Bock hatte ich selbst geschossen - natürlich auch durch KI gefunden.

Aber eben, wenn man nicht genau weiss, was zu fragen ist, nützt dies eben auch nicht viel. Es reicht wohl nicht einfach mal die Fehlermeldung durchzugeben.

Besten Dank und "e gfreute" Tag!

LG René

Beitrag geändert von ces-gmbh (Gestern 09:17:16)

Offline

Liked by:

florian

#4 Heute 14:53:33

ces-gmbh
Mitglied

Re: Bakery 1.8.9 Deprecated-Meldungen bei Zahlungsmethoden

Hallo Florian

Es sind wieder neue Fehler aufgetaucht wie folgt:

026-11-17T08:30:22+00:00 [Visitor Request] *https://heilstein-shop.com/modules/bakery/save_item.php*
2026-11-17T08:30:22+00:00 [Deprecated] /modules/bakery/save_item.php:[68] from /modules/bakery/save_item.php:[68] strip_tags "strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated"
2026-11-17T08:30:22+00:00 [Deprecated] /modules/bakery/save_item.php:[69] from /modules/bakery/save_item.php:[69] strip_tags "strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated"
2026-11-17T08:30:22+00:00 [Deprecated] /modules/bakery/save_item.php:[97] from /modules/bakery/save_item.php:[97] strip_tags "strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated"
2026-11-17T14:53:27+00:00 [Visitor Request] https://heilstein-shop.com/armbaender/
2026-11-17T14:53:27+00:00 [Warning] /modules/bakery/view_form.php:[229] from /framework/frontend.functions.php:[461] "Undefined array key 28"
2026-11-17T14:53:27+00:00 [Warning] /modules/bakery/view_form.php:[230] from /framework/frontend.functions.php:[461] "Undefined array key 28"
2026-11-18T08:06:54+00:00 [Visitor Request] https://heilstein-shop.com/action/
2026-11-18T08:06:54+00:00 [Warning] /modules/bakery/view_form.php:[229] from /framework/frontend.functions.php:[461] "Undefined array key 28"
2026-11-18T08:06:54+00:00 [Warning] /modules/bakery/view_form.php:[230] from /framework/frontend.functions.php:[461] "Undefined array key 28"
2026-11-18T08:07:42+00:00 [Visitor Request] https://heilstein-shop.com/action/
2026-11-18T08:07:42+00:00 [Warning] /modules/bakery/view_form.php:[229] from /modules/bakery/view.php:[450] "Undefined array key 28"
2026-11-18T08:07:42+00:00 [Warning] /modules/bakery/view_form.php:[230] from /modules/bakery/view.php:[450] "Undefined array key 28"


Besten Dank im Voraus
LG René

Beitrag geändert von ces-gmbh (Heute 15:00:01)

Offline

Fußzeile des Forums

up