Title: PHP Warning: Undefined variable $blockable
Last modified: November 3, 2022

---

# PHP Warning: Undefined variable $blockable

 *  Resolved [ffwebdesigner](https://wordpress.org/support/users/ffwebdesigner/)
 * (@ffwebdesigner)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/php-warning-undefined-variable-blockable/)
 * ich glaub ich hab in der aktuellen version von wordpress und real cookie banner
   einen schlimmen fehler gefunden. der betreiber informierte mich dass sein backend
   unendlich langsam wäre. konnte ich nach einigen tests bestätigen, aldezeite in
   der regel 30s. durchsicht debug.log brachte folgendes:
    PHP Warning: Undefined
   variable $blockable in /wp-content/plugins/real-cookie-banner/vendor/devowl-wp/
   headless-content-blocker/src/HeadlessContentBlocker.php on line 409
 * alle anderen plugins deaktiviert. real cookie banner deinstalliert. neu installiert.
   alle cookies und services gelöscht. fehler bleibt unter php 8.0
 * da vermutlich schwer zu reproduzieren: wollt ihr selbst mal mit admin reinschauen?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [ffwebdesigner](https://wordpress.org/support/users/ffwebdesigner/)
 * (@ffwebdesigner)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/php-warning-undefined-variable-blockable/#post-16161664)
 * selber fehler auch unter php 7.4. nochmal alle rcb_ tabellen in db gesclöscht
   um sicher zu gehen dass da nicht irgendwo mal bei der konfiguration was schief
   lief. ist jetzt 100% out of the box ohne irgendwelche services oder blocker. 
   ladezeit z.b. /wp-admin/plugins.php mit php 7.4 und allen plugin aktiv 15s. bei
   php 8.0 waren es satte 30s. cookie banner deaktiviert. ladezeit: 3s
 *  Plugin Contributor [Matthias Günter](https://wordpress.org/support/users/mguenter/)
 * (@mguenter)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/php-warning-undefined-variable-blockable/#post-16161788)
 * Hey [@ffwebdesigner](https://wordpress.org/support/users/ffwebdesigner/),
 * > PHP Warning: Undefined variable $blockable in /wp-content/plugins/real-cookie-
   > banner/vendor/devowl-wp/headless-content-blocker/src/HeadlessContentBlocker.
   > php on line 409
 * ´
 * Dieses Problem sollte eigentlich schon gelöst sein. Welche Version von RCB verwendest
   du? Benutzt du ein Child-Theme?
 * > waren es satte 30s. cookie banner deaktiviert. ladezeit: 3s
 * Meinst du hier im Frontend, oder im WordPress Dashboard?
 * > da vermutlich schwer zu reproduzieren: wollt ihr selbst mal mit admin reinschauen?
 * Dies dürfen wir leider nicht über das WordPress.org Forum anbieten (Forumregeln).
   Einen entsprechenden AV-Vertrag für ein solches Vorgehen, solltest du Support
   über unser eigenes Support-Formular beziehen, findest du unter [https://devowl.io/de/support](https://devowl.io/de/support).
 * Beste Grüße,
    Matthias 🙂
 *  Thread Starter [ffwebdesigner](https://wordpress.org/support/users/ffwebdesigner/)
 * (@ffwebdesigner)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/php-warning-undefined-variable-blockable/#post-16165624)
 * hi matthias,
 * version ist die aktuellste 3.3.0
    kein child theme, eigenständiges auf basis 
   ich glaube das war 2017. einige fehler nach umstellung auf php 8.0 habe ich komplett
   eliminiert. das frontend lädt zumeist recht schnell…etwas langsamer mit aktivem
   RCB. der fehler tritt vor allem im backend auf, nicht auf allen seiten aber auf
   vielen, z.b. plugins. hier mit rcb aktiv immer min. 15-30s
 * ich schick euch via support mal zugang zum checken.
 * lg
    frank
 *  Plugin Contributor [Matthias Günter](https://wordpress.org/support/users/mguenter/)
 * (@mguenter)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/php-warning-undefined-variable-blockable/#post-16165852)
 * Schließe dieses Ticket und poste ggf. Lösung, da über Support-Formular abgewickelt
   wird. 🙂
 *  [4kfilme](https://wordpress.org/support/users/4kfilme/)
 * (@4kfilme)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-warning-undefined-variable-blockable/#post-16303812)
 * Wäre ganz cool, wenn Lösungen auch hier reingeschrieben werden. Habe auch Probleme
   und der Log füllt sich täglich mit mehreren Tausend Anfragen: AH01071: Got error‘
   PHP message: PHP Warning: Trying to access array offset on value of type null
   in /wp-content/plugins/real-cookie-banner-pro/vendor/devowl-wp/headless-content-
   blocker/src/plugins/imagePreview/ImagePreview.php on line 259PHP message: PHP
   Warning: Trying to access array offset on value of type null in /wp-content/plugins/
   real-cookie-banner-pro/vendor/devowl-wp/headless-content-blocker/src/plugins/
   imagePreview/ImagePreview.php on line 260PHP message: PHP Warning: Trying to 
   access array offset on value of type null in /wp-content/plugins/real-cookie-
   banner-pro/vendor/devowl-wp/headless-content-blocker/src/plugins/imagePreview/
   ImagePreview.php on line 259PHP message: PHP Warning: Trying to access array 
   offset on value of type null in /wp-content/plugins/real-cookie-banner-pro/vendor/
   devowl-wp/headless-content-blocker/src/plugins/imagePreview/ImagePreview.php 
   on line 260PHP message: PHP Warning: Trying to access array offset on value of
   type null in /wp-content/plugins/real-cookie-banner-pro/vendor/devowl-wp/headless-
   content-blocker/src/plugins/imagePreview/ImagePreview.php on line 259PHP message:
   PHP Warning: Trying to access array offset on value of type null in /wp-content/
   plugins/real-cookie-banner-pro/vendor/devowl-wp/headless-content-blocker/src/
   plugins/imagePreview/ImagePreview.php on line 260PHP message: PHP Warning: Trying
   to access array offset on value of type null in /wp-content/plugins/real-cookie-
   banner-pro/vendor/devowl-wp/headless-content-blocker/src/plugins/imagePreview/
   ImagePreview.php on line 289PHP message: PHP Warning: Trying to access array 
   offset on value of type null in /wp-content/plugins/real-cookie-banner-pro/vendor/
   devowl-wp/headless-content-blocker/src/plugins/imagePreview/ImagePreview.php 
   on line 289PHP message: PHP Warning: Trying to access array offset on value of
   type null in /wp-content/plugins/real-cookie-banner-pro/vendor/devowl-wp/headless-
   content-blocker/src/plugins/imagePreview/ImagePreview.php on line 289’
   Was genau
   ist hier das Problem? Hab verschiedene PHP-Versionen ausprobiert. Scheint weiterhin
   zu bestehen.
 *  Plugin Contributor [Matthias Günter](https://wordpress.org/support/users/mguenter/)
 * (@mguenter)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-warning-undefined-variable-blockable/#post-16308757)
 * Hey [@4kfilme](https://wordpress.org/support/users/4kfilme/) !
 * Entschuldige, habe vergessen, den Prerelease zu posten. Hier der aktuellste:
 * Anbei findest du ein Pre-Release des Plugins. Diese löst das von dir angesprochene
   Problem. Du kannst diese Version einfach in dein WordPress hochladen und mit 
   der aktuellen Version ersetzen (_Plugins > Installieren > Plugin Hochladen_).
   Wenn die nächste Version des Plugins inkl. des Features aus dem Pre-Release für
   alle Nutzer verfügbar ist, wirst du es als normales Update in deinem WordPress
   sehen.
 * Pre-Release herunterladen (kostenlose Version): [https://storage-dev-1.owlsrv.de/prereleases/348a5c20-6eee-483a-a65a-d388b0765ec3/real-cookie-banner-3.4.10-1693-plugin.zip](https://storage-dev-1.owlsrv.de/prereleases/348a5c20-6eee-483a-a65a-d388b0765ec3/real-cookie-banner-3.4.10-1693-plugin.zip)

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘PHP Warning: Undefined variable $blockable’ is closed to new replies.

 * ![](https://ps.w.org/real-cookie-banner/assets/icon-256x256.png?rev=2419813)
 * [Real Cookie Banner: GDPR & ePrivacy Cookie Consent](https://wordpress.org/plugins/real-cookie-banner/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/real-cookie-banner/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/real-cookie-banner/)
 * [Active Topics](https://wordpress.org/support/plugin/real-cookie-banner/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/real-cookie-banner/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/real-cookie-banner/reviews/)

## Tags

 * [undefined](https://wordpress.org/support/topic-tag/undefined/)
 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * 6 replies
 * 3 participants
 * Last reply from: [Matthias Günter](https://wordpress.org/support/users/mguenter/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/php-warning-undefined-variable-blockable/#post-16308757)
 * Status: resolved