{"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\/nl\/hoe-woocommerce-php-fatale-fout-op-te-lossen-uncaught-typeerror-unsupported-operand-types-string-int\/","title":{"rendered":"Hoe WooCommerce PHP Fatale fout op te lossen:  Uncaught TypeError: Niet-ondersteunde operand types: string - int"},"content":{"rendered":"<p>Als u de volgende foutmelding krijgt:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>PHP Fatale fout:  Uncaught TypeError: Niet-ondersteunde operand types: string - int in ..\/wp-content\/plugins\/woocommerce\/src\/Internal\/Admin\/WCPayPromotion\/Init.php:88<\/code><\/pre>\n\n\n\n<p>Deze fout kan ervoor zorgen dat je WordPress admin niet goed werkt. Als je bijvoorbeeld naar de WordPress block editor (Gutenberg) gaat, worden je wijzigingen niet opgeslagen. Enz. <\/p>\n\n\n\n<p>Het probleem heeft te maken met de slechte compatibiliteit van WooCommerce met PHP 8. Gelukkig is er een vrij eenvoudige oplossing. Voer gewoon de volgende paar stappen uit om het probleem op te lossen:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Commentarieer code uit op <strong>regel nummer 88 <\/strong>in dossier <strong>wp-content\/plugins\/woocommerce\/src\/Internal\/Admin\/WCPayPromotion\/Init.php<\/strong><\/li>\n\n\n\n<li>Het ziet er als volgt uit: <strong># $ordering[ $id ] = $is_empty ? 0 : ( min( $ordering ) - 1 );<\/strong><\/li>\n\n\n\n<li>Ga naar je WordPress admin en ga naar WooCommerce - Instellingen - Betalingen<\/li>\n\n\n\n<li>Betaalmethoden nabestellen<\/li>\n\n\n\n<li>Gefeliciteerd, je hebt de fatale fout voorgoed hersteld. Je kunt nu ook WooCommerce bijwerken naar de nieuwere versie als die beschikbaar is.<\/li>\n\n\n\n<li>U kunt teruggaan naar het bestand <em>wp-content\/plugins\/woocommerce\/src\/Internal\/Admin\/WCPayPromotion\/Init.php<\/em> en nu kun je de like 99 uitcommentaar halen of het gewoon laten zoals het is...<\/li>\n<\/ol>\n\n\n\n<p>Ik ben er zeker van dat deze handleiding je geholpen heeft om je WooCommerce problemen op te lossen. Als je hier eenmaal bent, voel je dan vrij om <strong><a href=\"https:\/\/www.ait-themes.club\/nl\/citadela-thema-installatie\/\">probeer ons Citadela thema gratis<\/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>Download CitadelaWP WordPress Thema &amp; Plugins<\/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\/nl\/prijzen\/\" style=\"border-radius:3px\">NU KOPEN<\/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>Als je de volgende foutmelding krijgt: Deze fout kan ervoor zorgen dat je WordPress admin niet goed werkt. Als je bijvoorbeeld naar de WordPress block editor (Gutenberg) gaat, worden je wijzigingen niet opgeslagen. Enz. Het probleem heeft te maken met de slechte compatibiliteit van WooCommerce met PHP 8. Gelukkig is er een vrij eenvoudige oplossing. Doe gewoon de volgende paar stappen om [...]<\/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\/nl\/wp-json\/wp\/v2\/posts\/95547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ait-themes.club\/nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ait-themes.club\/nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ait-themes.club\/nl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ait-themes.club\/nl\/wp-json\/wp\/v2\/comments?post=95547"}],"version-history":[{"count":10,"href":"https:\/\/www.ait-themes.club\/nl\/wp-json\/wp\/v2\/posts\/95547\/revisions"}],"predecessor-version":[{"id":96203,"href":"https:\/\/www.ait-themes.club\/nl\/wp-json\/wp\/v2\/posts\/95547\/revisions\/96203"}],"wp:attachment":[{"href":"https:\/\/www.ait-themes.club\/nl\/wp-json\/wp\/v2\/media?parent=95547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ait-themes.club\/nl\/wp-json\/wp\/v2\/categories?post=95547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ait-themes.club\/nl\/wp-json\/wp\/v2\/tags?post=95547"},{"taxonomy":"citadela-post-location","embeddable":true,"href":"https:\/\/www.ait-themes.club\/nl\/wp-json\/wp\/v2\/citadela-post-location?post=95547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}