{"id":95547,"date":"2023-08-09T20:39:47","date_gmt":"2023-08-09T18:39:47","guid":{"rendered":"https:\/\/www.ait-themes.club\/?p=95547"},"modified":"2025-01-20T09:19:11","modified_gmt":"2025-01-20T08:19:11","slug":"how-to-fix-woocommerce-php-fatal-error-uncaught-typeerror-unsupported-operand-types-string-int","status":"publish","type":"post","link":"https:\/\/www.ait-themes.club\/de\/how-to-fix-woocommerce-php-fatal-error-uncaught-typeerror-unsupported-operand-types-string-int\/","title":{"rendered":"So beheben Sie den schwerwiegenden WooCommerce-PHP-Fehler: Uncaught TypeError: Nicht unterst\u00fctzte Operandentypen: string \u2013 int"},"content":{"rendered":"<p>Wenn Sie die folgende Fehlermeldung erhalten:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>PHP Schwerwiegender Fehler:  Ungefangener TypeError: Nicht unterst\u00fctzte Operandentypen: string - int in ..\/wp-content\/plugins\/woocommerce\/src\/Internal\/Admin\/WCPayPromotion\/Init.php:88<\/code><\/pre>\n\n\n\n<p>Dieser Fehler kann dazu f\u00fchren, dass Ihr WordPress-Administrator nicht ordnungsgem\u00e4\u00df funktioniert. Wenn Sie beispielsweise zum WordPress-Blockeditor (Gutenberg) wechseln, werden Ihre \u00c4nderungen nicht gespeichert. Usw. <\/p>\n\n\n\n<p>Das Problem liegt in der schlechten WooCommerce-Kompatibilit\u00e4t mit PHP 8. Gl\u00fccklicherweise gibt es eine ziemlich einfache L\u00f6sung. F\u00fchren Sie einfach die folgenden Schritte aus, um das Problem zu beheben:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Kommentieren Sie den Code aus <strong>Zeile Nummer 88 <\/strong>im Ordner <strong>wp-content\/plugins\/woocommerce\/src\/Internal\/Admin\/WCPayPromotion\/Init.php<\/strong><\/li>\n\n\n\n<li>Es wird wie folgt gefallen: <strong># $ordering[ $id ] = $is_empty ? 0 : ( min( $ordering ) \u2013 1 );<\/strong><\/li>\n\n\n\n<li>Gehen Sie zu Ihrem WordPress-Administrator und gehen Sie zu WooCommerce \u2013 Einstellungen \u2013 Zahlungen<\/li>\n\n\n\n<li>Zahlungsarten neu anordnen<\/li>\n\n\n\n<li>Herzlichen Gl\u00fcckwunsch, Sie haben den schwerwiegenden Fehler endg\u00fcltig behoben. Sie k\u00f6nnen WooCommerce jetzt auch auf die neuere Version aktualisieren, sofern eine verf\u00fcgbar ist.<\/li>\n\n\n\n<li>Sie k\u00f6nnen zur Datei zur\u00fcckkehren <em>wp-content\/plugins\/woocommerce\/src\/Internal\/Admin\/WCPayPromotion\/Init.php<\/em> und jetzt k\u00f6nnen Sie das Like 99 auskommentieren oder es einfach so lassen, wie es ist ...<\/li>\n<\/ol>\n\n\n\n<p>Ich bin sicher, dass Ihnen dieses Tutorial bei der L\u00f6sung Ihrer WooCommerce-Probleme geholfen hat. Sobald Sie hier sind, k\u00f6nnen Sie es gerne tun <strong><a href=\"https:\/\/www.ait-themes.club\/de\/citadela-theme-installation\/\">Probieren Sie unser Citadela-Theme kostenlos aus<\/a><\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-citadela-blocks-custom-container citadela-block-custom-container size-content bg-type-image inside-space-none bg-size-cover has-bg has-overlay has-border-radius\" style=\"background-color:rgba(234, 234, 234, 1);border-radius:10px\"><div class=\"bg-image-wrapper\" style=\"background-image:url(https:\/\/www.ait-themes.club\/wp-content\/uploads\/2021\/10\/header-layouts-min.png);background-repeat:no-repeat;background-position:36% 49%;border-radius:10px\"><\/div><div class=\"bg-image-overlay\" style=\"opacity:0.5;border-radius:10px\"><\/div><div class=\"inner-holder\">\n<div class=\"wp-block-citadela-blocks-spacer citadela-block-spacer\"><div class=\"inner-holder\" style=\"padding-top:2vw\"><\/div><\/div>\n\n\n         <div \r\n            class=\"citadela-block-responsive-text align-center\"\r\n                                 >\r\n            <p class=\"inner-tag\" style=\"font-size: 22px; line-height: 0.73; color: #392F43;\"><strong>CitadelaWP WordPress Theme &amp; Plugins herunterladen<\/strong><\/p>         <\/div>\r\n      \n\n\n<div class=\"wp-block-citadela-blocks-spacer citadela-block-spacer\"><div class=\"inner-holder\" style=\"padding-top:20px\"><\/div><\/div>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-16018d1d wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-white-color has-vivid-green-cyan-background-color has-text-color has-background has-text-align-center wp-element-button\" href=\"https:\/\/www.ait-themes.club\/de\/preisgestaltung\/\" style=\"border-radius:3px\">KAUFE JETZT<\/a><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-citadela-blocks-spacer citadela-block-spacer\"><div class=\"inner-holder\" style=\"padding-top:10px\"><\/div><\/div>\n\n\n\n<p class=\"has-text-align-center\">One-time payment. 14-day money-back guarantee.<\/p>\n\n\n\n<div class=\"wp-block-citadela-blocks-spacer citadela-block-spacer\"><div class=\"inner-holder\" style=\"padding-top:40px\"><\/div><\/div>\n\n\n\n<div class=\"wp-block-citadela-blocks-spacer citadela-block-spacer\"><div class=\"inner-holder\" style=\"padding-top:2vw\"><\/div><\/div>\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Wenn Sie die folgende Fehlermeldung erhalten: Dieser Fehler kann dazu f\u00fchren, dass Ihr WordPress-Administrator nicht ordnungsgem\u00e4\u00df funktioniert. Wenn Sie beispielsweise zum WordPress-Blockeditor (Gutenberg) wechseln, werden Ihre \u00c4nderungen nicht gespeichert. Usw. Das Problem liegt in der schlechten WooCommerce-Kompatibilit\u00e4t mit PHP 8. Gl\u00fccklicherweise gibt es eine ziemlich einfache L\u00f6sung. F\u00fchren Sie einfach die folgenden Schritte aus, um [\u2026]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","_citadela_custom_class":"","footnotes":""},"categories":[63],"tags":[71,41],"citadela-post-location":[],"class_list":["post-95547","post","type-post","status-publish","format-standard","hentry","category-wordpress-tutorials","tag-php8","tag-woocommerce"],"_links":{"self":[{"href":"https:\/\/www.ait-themes.club\/de\/wp-json\/wp\/v2\/posts\/95547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ait-themes.club\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ait-themes.club\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ait-themes.club\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ait-themes.club\/de\/wp-json\/wp\/v2\/comments?post=95547"}],"version-history":[{"count":10,"href":"https:\/\/www.ait-themes.club\/de\/wp-json\/wp\/v2\/posts\/95547\/revisions"}],"predecessor-version":[{"id":96203,"href":"https:\/\/www.ait-themes.club\/de\/wp-json\/wp\/v2\/posts\/95547\/revisions\/96203"}],"wp:attachment":[{"href":"https:\/\/www.ait-themes.club\/de\/wp-json\/wp\/v2\/media?parent=95547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ait-themes.club\/de\/wp-json\/wp\/v2\/categories?post=95547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ait-themes.club\/de\/wp-json\/wp\/v2\/tags?post=95547"},{"taxonomy":"citadela-post-location","embeddable":true,"href":"https:\/\/www.ait-themes.club\/de\/wp-json\/wp\/v2\/citadela-post-location?post=95547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}