^ Subir
PHP notice

PHP notice

unserialize(): Error at offset 8192 of 8192 bytes

/home/locaciones/public_html/protected/extensions/yii2-debug/Yii2Debug.php(268)

256         if (($fp = @fopen($indexFile, 'r+')) === false) {
257             throw new Exception("Unable to open debug data index file: $indexFile");
258         }
259         @flock($fp, LOCK_EX);
260         $manifest = '';
261         while (($buffer = fgets($fp)) !== false) {
262             $manifest .= $buffer;
263         }
264         if (!feof($fp) || empty($manifest)) {
265             // error while reading index data, ignore and create new
266             $manifest = array();
267         } else {
268             $manifest = unserialize($manifest);
269         }
270 
271         $manifest[$this->tag] = $summary;
272         $this->resizeHistory($manifest);
273 
274         ftruncate($fp, 0);
275         rewind($fp);
276         fwrite($fp, serialize($manifest));
277 
278         @flock($fp, LOCK_UN);
279         @fclose($fp);
280     }

Stack Trace

#0
+
 /home/locaciones/public_html/protected/extensions/yii2-debug/Yii2Debug.php(268): unserialize("a:57:{s:13:"688c8e4b7c07b";a:7:{s:3:"tag";s:13:"688c8e4b7c07b";s...")
263         }
264         if (!feof($fp) || empty($manifest)) {
265             // error while reading index data, ignore and create new
266             $manifest = array();
267         } else {
268             $manifest = unserialize($manifest);
269         }
270 
271         $manifest[$this->tag] = $summary;
272         $this->resizeHistory($manifest);
273 
#1
+
 /home/locaciones/public_html/protected/extensions/yii2-debug/Yii2Debug.php(243): Yii2Debug->updateIndexFile("/home/locaciones/public_html/protected/runtime/debug/index.data", array("tag" => "688c8e5ea19be", "url" => "https://locaciones.mx/users/viewall?type=3", "ajax" => false, "method" => "GET", ...))
238 
239         $path = $this->logPath;
240         if (!is_dir($path)) mkdir($path);
241 
242         file_put_contents("$path/{$this->getTag()}.data", serialize($data));
243         $this->updateIndexFile("$path/index.data", $data['summary']);
244     }
245 
246     /**
247      * Updates index file with summary log data
248      *
#2
+
 /home/locaciones/public_html/protected/extensions/yii2-debug/Yii2Debug.php(217): Yii2Debug->processDebug()
212     /**
213      * @param CEvent $event
214      */
215     protected function onEndRequest($event)
216     {
217         $this->processDebug();
218     }
219 
220     /**
221      * Log processing routine.
222      */
2025-08-01 04:52:30 LiteSpeed Yii Framework/1.1.24