v0.9.9.14 is bad
-
After updating to v0.9.9.14 I can no longer go to the wp-piwik seetings or wp-admin.index.php
when to go there all I see is raw htmltail -f php_errors.log outputs this when I try to go “wp-piwik seetings or wp-admin.index.php”
[31-Mar-2015 11:03:46 UTC] PHP Notice: Use of undefined constant ob_start - assumed 'ob_start' in wp-content/plugins/wp-piwik/wp-piwik.php on line 774 [31-Mar-2015 11:03:46 UTC] PHP Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in wp-includes/functions.php on line 3269 [31-Mar-2015 11:03:46 UTC] PHP Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in wp-includes/functions.php on line 3269
I had to Deactivate the wp-piwik plugin just so I could get to wp-admin.index.php
I would love it if you fixed this ASAP because my piwik is not logging anything until you do or I will have to roll back the plugin š
-
I wonder why you get the notice this late… the bug already appears in earlier versions. Are you sure the problem is caused by this notice?
To fix this, you can just add to brackets to ob_start in line 774:
ob_start();
0.9.9.15 containing this fix will be released soon.
well your update did not help me š
this is what I’m getting now.
[31-Mar-2015 12:45:12 UTC] PHP Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in wp-includes/functions.php on line 3269
so wp-piwik.php on line 774 is gone.
I only get this when your plugin is Activate
I can’t get to http://e-tard.tv/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php or http://e-tard.tv/wp-admin.index.php
but other pages like http://e-tard.tv/wp-admin/plugins.php work fine š ??I’m seeing the zlib errors in real time as I’m going to the pages that done work.
turn your plugin off & everything is fine.
As a workaround, you can switch to REST API to avoid this issue.
You are sure the problem is related to this notice? Is there no fatal in your log file?
Looks like WooCommerce had a similar issue, maybe I can find a solution there.
https://wordpress.org/support/topic/woocommerce-plugin-could-not-be-activated-because-it-triggered-a-fatal-error/page/2?replies=46Which WP-Piwik version did you use before 0.9.9.14? There were no changes related to the ob_* part from 0.9.9.12 to .13/.14.
I will say this one last time
this error is 100% from your plugin
[31-Mar-2015 12:45:12 UTC] PHP Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in wp-includes/functions.php on line 3269
When your plugin is off I do not get that
so this is on your plateI am getting no other errors.
also that link you posted I have been there already
did not help me.
also when you say “REST API” so I don’t know what your talking about there.I used v0.9.9.13 lol
and even with that I was getting the zlib error but nothing went crazy & at that time I did not know witch plugin it was coming from.When I Google “functions.php on line 3269” I don’t find much
but what I do find is some plugin Devs Fed up on zlib part of there code or something like that so when you get this error it’s because of a plugin that was coded badly.I am running Gentoo Linux with lighttpd with PHP v5.5.20
also No I will not turn off zlib (that’s not going to happen).
ok I got some new info
so I rolled back 0.9.9.13 & I can get to http://e-tard.tv/wp-admin.index.php
but I get raw html on http://e-tard.tv/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php
so I was getting the “functions.php on line 3269” error long before I all the new wp-piwik updates.
to recap this error “functions.php on line 3269” go’s bye bye when WP-piwik plugin is off
I sooo don’t know what the hell is going on & I don’t know how to go about fixing it.
I don’t want you to repeat what I already know. But I need you help to figure out what’s happening. I’m really sure the notice does NOT cause your problem (as you write: the notice already appeared before), so we have to get behind the real issue.
You should know what I’m talking about if I ask you to switch to REST API – you already decided to switch to PHP API which is marked as beta instead of REST. š Go to your WP-Piwik “Piwik” settings… there you can choose to use REST API instead of PHP API. As far as I know this should work until the issue is fixed.
I rolled back 0.9.9.12 & from there got into the the wp-piwik settings.
turned off all the wp-piwik Dashboard crap
& then updated to v0.9.9.15 & now I can get to http://e-tard.tv/wp-admin/index.php
but I get the raw html when I try to go to http://e-tard.tv/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php
so I can’t get to the settings for wp-piwik
& when I try I get
[01-Apr-2015 17:58:24 UTC] PHP Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in wp-includes/functions.php on line 3269
is a bit odd because I have using your plugin for a long time with no problems.
So now I have wp-piwik it is working as far as sending data to piwik,
I just can’t get to the settings page for wp-piwik.
so this is something your going to want to look into for sure.I think I got it. It’s an old Piwik bug – Piwik is sending a plain text header if the PHP API files are included.
This was fixed some time ago, but this fix was erroneous on itself. After fixing the ob_start-literal-notice, the previous erroneous fix didn’t work anymore.
So as expected, the problem was not about the notice, but about the headers sent. 0.9.9.16 will fix this.
(0.9.9.16 will be available the next 1-2 hours. Until then you can still use the REST API.)
ok that fixed the raw html
but the error keeps showing up in the log.I’m doing a
tail -f php_errors.logwhen I go to:
http://e-tard.tv/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php
http://e-tard.tv/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php&tab=homepage
http://e-tard.tv/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php&tab=piwik
http://e-tard.tv/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php&tab=trackingI see that error come up then & there as I’m go to those urls
no bull shit.
[01-Apr-2015 22:39:34 UTC] PHP Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in wp-includes/functions.php on line 3269
So this is coming from your plugin.
Ok, so it’s working again.
The message you get is no error but a notice. The issue seems not to be a WP-Piwik specific issue (even it is caused by WP-Piwik in your case), see https://core.trac.wordpress.org/ticket/18525
I will check if I can use the WordPress team’s work to avoid the notice on my side, but I’m not finally sure if I can fix it without the WordPress patch applied.
well going to your plugins settings is the only thing that makes the zlib thing come up.
when I don’t go there & I have the wp-piwik Dashboard stats off
I never see it.p.s. the one thing that makes me love your plugin is the
js/index.php option with that & the fact my piwik dir is not called piwik
there is nothing in the code off hand that an ad blockers will go for.
most lists out there are looking for piwik.js, piwik.php or piwik.*I create a test environment and enabled zlib compression. Due to different changes related to the header configuration, I was able to remove output buffering from WP-Piwik. So I was able to remove the compression notices. -> 0.9.9.17
Interesting:
While zlib compression was enabled, I got the notice on every WordPress site – even if I removed WP-Piwik. On WP-Piwik sites I just got some more of this notices. š At least, you should get the same notice every time you use WordPress’ auto update, because the fix (https://core.trac.wordpress.org/ticket/18525) still didn’t make it into a release. But, even this fix just disables the zlib compression.
Anyway, if the WP-Piwik fix solves this issue for you, this would be great. š
Otherwise, just food for thought: Why don’t you use mod_deflate instead of PHP’s zlib compression? mod_deflate will compress all text files (e.g., html, js, css, …) while PHP’s zlib option only compresses files generated by PHP.
I got your update & no change š
I will go over my info with you one last time….
VPS Gentoo Linux with lighttpd with PHP v5.5.23
latest stable version of WPI ONLY GET THIS:
[06-Apr-2015 20:23:13 UTC] PHP Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in wp-includes/functions.php on line 3269
WHEN I GO TO:
wp-admin/options-general.php?page=wp-piwik/wp-piwik.php
wp-admin/options-general.php?page=wp-piwik/wp-piwik.php&tab=homepage
wp-admin/options-general.php?page=wp-piwik/wp-piwik.php&tab=trackingI DO NOT GET THE “zlib Notice” FROM ANY OTHER PAGE IN WP-ADMIN
I KNOW THIS BECAUSE I HAVE DONE A tail -f php_errors.log & AT THE SAME TIME GONE TO EVERY PAGE,POST,SETTINGS PAGE IN THE WP-ADMIN & I HAVE NOT GOT THE “zlib Notice”IT IS COMING FROM YOUR PLUGIN.
AS FOR WHY? I WOULD START WITH YOUR “Dashboard widget” BECAUSE I WAS GETTING THE “zlib Notice” ON MY /wp-admin/index.php UNTIL I TURNED OFF “Dashboard widget”WP-Piwik 0.9.9.18
No change on zlib Notice.
- The topic ‘v0.9.9.14 is bad’ is closed to new replies.