Author Topic: Failed to delete buffer zlib output compression  (Read 2623 times)

0 Members and 1 Guest are viewing this topic.

ups_terrminator

  • Guest
Failed to delete buffer zlib output compression
on: Tue, 05. August 2003 - 18:24:13
Hi!

I'm just experimenting with vlibTemplate and get a freaky notice...

Notice: ob_end_clean(): failed to delete buffer zlib output compression. in C:weblanintern_vlibvlibvlibTemplate.php on line 1343

Any ideas?

Thanks in advance,
Termi


Code: [Select]
?php



require_once'vlib/vlibTemplate.php';

$tmpl=& new vlibTemplate'index/menu.html';



$tmpl-setVar'test', 'This is a simple test...';

$tmpl-pparse;

?


Code: [Select]
html

head

 titlemenu bar/title

/head

body



 tmpl_var name='test'



/body

/html


releasedj

  • Guest
Failed to delete buffer zlib output compression
Reply #1 on: Thu, 07. August 2003 - 09:59:00
I think this has been caused by a bug which has been fixed in CVS.

In vlibTemplate.php, find the function called _parse (around line 1360). The function declaration reads:

Code: [Select]

function _parse $compress=''



Change this to:

Code: [Select]

function _parse $compress=null



and see if that solves your problem. If it doesn't, let me know and I'll look into it further.

Regards,

Kelvin