<![CDATA[ Disable E_DEPRECATED error reporting by default? - My Forums]]> https://forums.modx.com/thread/?thread=83583 <![CDATA[Re: Disable E_DEPRECATED error reporting by default?]]> https://forums.modx.com/thread/83583/disable-e-deprecated-error-reporting-by-default#dis-post-461345 randall Apr 02, 2013, 08:31 PM https://forums.modx.com/thread/83583/disable-e-deprecated-error-reporting-by-default#dis-post-461345 <![CDATA[Re: Disable E_DEPRECATED error reporting by default?]]> https://forums.modx.com/thread/83583/disable-e-deprecated-error-reporting-by-default#dis-post-461340
$categories[] = new $this->item->feed->

That should not have caused any problems; all "new" declarations are by reference by default, so the & is now redundant.
]]>
sottwell Apr 02, 2013, 08:05 PM https://forums.modx.com/thread/83583/disable-e-deprecated-error-reporting-by-default#dis-post-461340
<![CDATA[Re: Disable E_DEPRECATED error reporting by default?]]> https://forums.modx.com/thread/83583/disable-e-deprecated-error-reporting-by-default#dis-post-461335
Undefined property: DocumentParser::$mstart
« MODX Parse Error »
MODX encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error : 	Assigning the return value of new by reference is deprecated
ErrorType[num] : 	DEPRECATED[8192]
File : 	[HIDDEN}/assets/snippets/simplepie/simplepie.inc
Line : 	5866
Source : 	$categories[] =& new $this->item->feed->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
Basic info
REQUEST_URI : 	/robots.txt
Resource : 	[1]Home
Current Snippet : 	pieX
Current Plugin : 	PHx(OnParseDocument)
Referer : 	
User Agent : 	Mozilla/5.0 (compatible; Ezooms/1.0; [email protected])
IP : 	208.115.111.68
Parser timing
MySQL : 	0.0974 s (287 Requests)
PHP : 	0.6670 s
Total : 	0.7644 s


simplepie.inc is throwing up the most errors, for example on lines: 5453, 5214, 5858, 5862, 5866, 5914, 5936, 5941, 5945, 5997, 6019, 7654, 7796 and many more

simplepie_hatena.inc is showing an error on line 210

In the space of just 8 minutes, 19 pages full of Systems Events were recorded for PieX alone on a rarely visited site. My fix was to change all the '=&' to '=' but that caused the site to crash not surprisingly!]]>
randall Apr 02, 2013, 07:47 PM https://forums.modx.com/thread/83583/disable-e-deprecated-error-reporting-by-default#dis-post-461335
<![CDATA[Re: Disable E_DEPRECATED error reporting by default?]]> https://forums.modx.com/thread/83583/disable-e-deprecated-error-reporting-by-default#dis-post-461329
That's why I don't like "clever" code. I'd rather have an extra two or three lines of code than have it so "clever" that nobody else can do anything with it.

I've never used PieX; can you post the actual error so that I can see the line numbers of the offending function? I might be able to provide a fix from that.]]>
sottwell Apr 02, 2013, 06:48 PM https://forums.modx.com/thread/83583/disable-e-deprecated-error-reporting-by-default#dis-post-461329
<![CDATA[Re: Disable E_DEPRECATED error reporting by default?]]> https://forums.modx.com/thread/83583/disable-e-deprecated-error-reporting-by-default#dis-post-461326 randall Apr 02, 2013, 06:37 PM https://forums.modx.com/thread/83583/disable-e-deprecated-error-reporting-by-default#dis-post-461326 <![CDATA[Re: Disable E_DEPRECATED error reporting by default?]]> https://forums.modx.com/thread/83583/disable-e-deprecated-error-reporting-by-default#dis-post-461229 sottwell Apr 02, 2013, 05:56 AM https://forums.modx.com/thread/83583/disable-e-deprecated-error-reporting-by-default#dis-post-461229 <![CDATA[Re: Disable E_DEPRECATED error reporting by default?]]> https://forums.modx.com/thread/83583/disable-e-deprecated-error-reporting-by-default#dis-post-461227
I see that it is set to "Ignore the warning of a slight notice level" by default, this should have prevented the deprecated error from logging however it didn't. Perhaps that's because I was using an existing config file.]]>
randall Apr 02, 2013, 05:53 AM https://forums.modx.com/thread/83583/disable-e-deprecated-error-reporting-by-default#dis-post-461227
<![CDATA[Re: Disable E_DEPRECATED error reporting by default?]]> https://forums.modx.com/thread/83583/disable-e-deprecated-error-reporting-by-default#dis-post-461197
New config in Evo1.0.9

Tools->System configuration->User
"Detection level of the PHP error"

How about this?]]>
yama Apr 01, 2013, 10:58 PM https://forums.modx.com/thread/83583/disable-e-deprecated-error-reporting-by-default#dis-post-461197
<![CDATA[Disable E_DEPRECATED error reporting by default?]]> https://forums.modx.com/thread/83583/disable-e-deprecated-error-reporting-by-default#dis-post-461137 http://forums.modx.com/index.php/topic,37293.0.html

I use the PieX extra on one site which uses PHP 5.3.21, and within 24hours it can log 200MB of errors into the database although it runs fine to the end user. I don't know if other older extras have a similar problem

Maybe E_DEPRECATED error reporting should be enabled in RC versions but disabled for production releases. There might be a very good reason why this wouldn't a good idea but can't think of one at the moment.]]>
randall Apr 01, 2013, 12:32 PM https://forums.modx.com/thread/83583/disable-e-deprecated-error-reporting-by-default#dis-post-461137