Plugin

Developer
Supported

Delete entries and comments

ExpressionEngine 1.x, ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Milo Creative

     

You must be logged in to post.

conflict with zenbu

Bug Report

interface
interface

using version 2.1 on EE 2.5.2 getting this bug:

A PHP Error was encountered

Severity
Notice

Message
Undefined indexD

Filename
zenbu/ext.zenbu.php

Line Number
36

A PHP Error was encountered

Severity
Warning

Message
Cannot modify header information headers already sent by (output started at /Users/christiangeyer/Sites/friendly_schools/system/codeigniter/system/core/Exceptions.php:170)

Filenamelibraries/Functions.php

Line Number
402 

Any ideas how to fix this?

Cheers

 

tibitabo
# 1
tibitabo

Same here… :(

Foamcow
# 2
Foamcow

This is actually a problem with Zenbu and will only show up if your server is configured to show PHP Notices and Warnings.

Zenbu is a great add-on but this is due to sloppy coding and the fact the PHP error reporting is cranked up.

The easiest thing to do is to turn off the error reporting so the notice isn’t generated. Either do this on your server config or alter ext.zenbu.php

At the top of ext.zenbu.php, directly after

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 

Add the following

error_reporting(0); 


So you end up with

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
error_reporting(0); 


This will stop the warnings being triggered and so you won’t get the headers already sent error.