Getting rid of Creating default object from empty value

Post Reply
User avatar
Saman
Lieutenant Colonel
Lieutenant Colonel
Posts: 828
Joined: Fri Jul 31, 2009 10:32 pm
Location: Mount Lavinia

Getting rid of Creating default object from empty value

Post by Saman » Tue Aug 27, 2013 1:50 am

After updating php, so many warning started to appear on one of the phpBB installations and I came to realise that those are actually simple things to sort out. However we can even smoothly turn off the warning. This is how you could do that.

Open common.php

Find:

Code: Select all

// Report all errors, except notices
error_reporting(E_ALL ^ E_NOTICE); 
Replace with:

Code: Select all

// Report all errors, except notices
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
 
Post Reply

Return to “PHP & MySQL”