Serialization of 'PgSql\Connection' is not allowed (500 Internal Server Error)

Symfony Exception

Exception

HTTP 500 Internal Server Error

Serialization of 'PgSql\Connection' is not allowed

Exception

Exception

  1.     //Arrays
  2.     public function setSingleKeyArr($key$array$ttl=false)
  3.     {
  4.         return $this->setSingleKey(
  5.             $key,
  6.             base64_encode(serialize($array)),
  7.             $ttl
  8.         );
  9.     }
  10.     public function getSingleKeyArr($key)
  1.     //Arrays
  2.     public function setSingleKeyArr($key$array$ttl=false)
  3.     {
  4.         return $this->setSingleKey(
  5.             $key,
  6.             base64_encode(serialize($array)),
  7.             $ttl
  8.         );
  9.     }
  10.     public function getSingleKeyArr($key)
  1.                 $ttl=$this->tsDefaultTTL;
  2.             }
  3.         }
  4.         if ($path && $key) {
  5.             $this->log("create cache -" $path ":" $key "-ttl: " $ttl);
  6.             return $this->setSingleKeyArr($path ":" $key$data$ttl);
  7.         } else {
  8.             return false;
  9.         }
  10.     }
  11.     public function dropCache($path$key)
  1.         // session speichern
  2.         $this->__storeSession();
  3.         // Produkt nochmal sichern
  4.         if ($this->__registry["product_path"]) {
  5.             $GLOBALS["redis"]->setCache("product"$this->__registry["product_path"], $this->__rdata);
  6.         }
  7.         if ($this->timedebug) {
  8.             devellog("======== RUN DONE " $this->__registry["step"] . " " round(microtime_float()-$timer3) . "sec");
  1.     $ibe get_ibe_class($mandant);
  2. }
  3. $ibe->run($_REQUEST);

Stack Trace

Exception
Exception:
Serialization of 'PgSql\Connection' is not allowed

  at /data/clients/travel40/vendor/travelseller/redisconnector/tsRedis.php:480
  at serialize()
     (/data/clients/travel40/vendor/travelseller/redisconnector/tsRedis.php:480)
  at Travelseller\redisConnector\tsRedis->setSingleKeyArr()
     (/data/clients/travel40/vendor/travelseller/redisconnector/tsRedis.php:420)
  at Travelseller\redisConnector\tsRedis->setCache()
     (/data/clients/travel40/web/booking/ibe_modules/booking_run.x4:176)
  at ibe->run()
     (/data/clients/travel40/web/booking/booking.php:129)