WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#9182 closed defect (bug) (invalid)

diverse errors

Reported by: sybold Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

running apache2 and php5, with a clean install of wp 2.7.1
savemode off, installed just fine.

<errorentry>
	<datetime>2009-02-19 00:53:26 (CET)</datetime>
	<errornum>2048</errornum>
	<errortype>E Strict</errortype>
	<errormsg>Assigning the return value of new by reference is deprecated</errormsg>
	<scriptname>/usr/local/psa/home/vhosts/kpjoudgastel.nl/subdomains/test2/httpdocs/wp-settings.php</scriptname>
	<scriptlinenum>520</scriptlinenum>
</errorentry>

<errorentry>
	<datetime>2009-02-19 00:53:26 (CET)</datetime>
	<errornum>2048</errornum>
	<errortype>E Strict</errortype>
	<errormsg>Assigning the return value of new by reference is deprecated</errormsg>
	<scriptname>/usr/local/psa/home/vhosts/kpjoudgastel.nl/subdomains/test2/httpdocs/wp-settings.php</scriptname>
	<scriptlinenum>535</scriptlinenum>
</errorentry>

<errorentry>
	<datetime>2009-02-19 00:53:26 (CET)</datetime>
	<errornum>2048</errornum>
	<errortype>E Strict</errortype>
	<errormsg>Assigning the return value of new by reference is deprecated</errormsg>
	<scriptname>/usr/local/psa/home/vhosts/kpjoudgastel.nl/subdomains/test2/httpdocs/wp-settings.php</scriptname>
	<scriptlinenum>542</scriptlinenum>
</errorentry>

<errorentry>
	<datetime>2009-02-19 00:53:26 (CET)</datetime>
	<errornum>2048</errornum>
	<errortype>E Strict</errortype>
	<errormsg>Assigning the return value of new by reference is deprecated</errormsg>
	<scriptname>/usr/local/psa/home/vhosts/kpjoudgastel.nl/subdomains/test2/httpdocs/wp-settings.php</scriptname>
	<scriptlinenum>578</scriptlinenum>
</errorentry>

<errorentry>
	<datetime>2009-02-19 00:53:26 (CET)</datetime>
	<errornum>2048</errornum>
	<errortype>E Strict</errortype>
	<errormsg>Redefining already defined constructor for class wpdb</errormsg>
	<scriptname>/usr/local/psa/home/vhosts/kpjoudgastel.nl/subdomains/test2/httpdocs/wp-includes/wp-db.php</scriptname>
	<scriptlinenum>306</scriptlinenum>
</errorentry>

<errorentry>
	<datetime>2009-02-19 00:53:26 (CET)</datetime>
	<errornum>2</errornum>
	<errortype>Warning</errortype>
	<errormsg>mysql_num_fields(): supplied argument is not a valid MySQL result resource</errormsg>
	<scriptname>/usr/local/psa/home/vhosts/kpjoudgastel.nl/subdomains/test2/httpdocs/wp-includes/wp-db.php</scriptname>
	<scriptlinenum>630</scriptlinenum>
</errorentry>

<errorentry>
	<datetime>2009-02-19 00:53:26 (CET)</datetime>
	<errornum>2</errornum>
	<errortype>Warning</errortype>
	<errormsg>mysql_fetch_object(): supplied argument is not a valid MySQL result resource</errormsg>
	<scriptname>/usr/local/psa/home/vhosts/kpjoudgastel.nl/subdomains/test2/httpdocs/wp-includes/wp-db.php</scriptname>
	<scriptlinenum>635</scriptlinenum>
</errorentry>

<errorentry>
	<datetime>2009-02-19 00:53:26 (CET)</datetime>
	<errornum>2</errornum>
	<errortype>Warning</errortype>
	<errormsg>mysql_free_result(): supplied argument is not a valid MySQL result resource</errormsg>
	<scriptname>/usr/local/psa/home/vhosts/kpjoudgastel.nl/subdomains/test2/httpdocs/wp-includes/wp-db.php</scriptname>
	<scriptlinenum>640</scriptlinenum>
</errorentry>

<errorentry>
	<datetime>2009-02-19 00:53:26 (CET)</datetime>
	<errornum>2048</errornum>
	<errortype>E Strict</errortype>
	<errormsg>Assigning the return value of new by reference is deprecated</errormsg>
	<scriptname>/usr/local/psa/home/vhosts/kpjoudgastel.nl/subdomains/test2/httpdocs/wp-includes/cache.php</scriptname>
	<scriptlinenum>103</scriptlinenum>
</errorentry>

<errorentry>
	<datetime>2009-02-19 00:53:26 (CET)</datetime>
	<errornum>2048</errornum>
	<errortype>E Strict</errortype>
	<errormsg>Redefining already defined constructor for class WP_Object_Cache</errormsg>
	<scriptname>/usr/local/psa/home/vhosts/kpjoudgastel.nl/subdomains/test2/httpdocs/wp-includes/cache.php</scriptname>
	<scriptlinenum>431</scriptlinenum>
</errorentry>

<errorentry>
	<datetime>2009-02-19 00:53:26 (CET)</datetime>
	<errornum>2048</errornum>
	<errortype>E Strict</errortype>
	<errormsg>Assigning the return value of new by reference is deprecated</errormsg>
	<scriptname>/usr/local/psa/home/vhosts/kpjoudgastel.nl/subdomains/test2/httpdocs/wp-includes/query.php</scriptname>
	<scriptlinenum>61</scriptlinenum>
</errorentry>

<errorentry>
	<datetime>2009-02-19 00:53:26 (CET)</datetime>
	<errornum>2048</errornum>
	<errortype>E Strict</errortype>
	<errormsg>Assigning the return value of new by reference is deprecated</errormsg>
	<scriptname>/usr/local/psa/home/vhosts/kpjoudgastel.nl/subdomains/test2/httpdocs/wp-includes/theme.php</scriptname>
	<scriptlinenum>1109</scriptlinenum>
</errorentry>

<errorentry>
	<datetime>2009-02-19 00:53:26 (CET)</datetime>
	<errornum>2048</errornum>
	<errortype>E Strict</errortype>
	<errormsg>Redefining already defined constructor for class WP_Dependencies</errormsg>
	<scriptname>/usr/local/psa/home/vhosts/kpjoudgastel.nl/subdomains/test2/httpdocs/wp-includes/class.wp-dependencies.php</scriptname>
	<scriptlinenum>31</scriptlinenum>
</errorentry>

<errorentry>
	<datetime>2009-02-19 00:53:26 (CET)</datetime>
	<errornum>2048</errornum>
	<errortype>E Strict</errortype>
	<errormsg>Redefining already defined constructor for class WP_Http</errormsg>
	<scriptname>/usr/local/psa/home/vhosts/kpjoudgastel.nl/subdomains/test2/httpdocs/wp-includes/http.php</scriptname>
	<scriptlinenum>61</scriptlinenum>
</errorentry>

<errorentry>
	<datetime>2009-02-19 00:53:26 (CET)</datetime>
	<errornum>2048</errornum>
	<errortype>E Strict</errortype>
	<errormsg>Non-static method WP_Http_ExtHTTP::test() should not be called statically, assuming $this from incompatible context</errormsg>
	<scriptname>/usr/local/psa/home/vhosts/kpjoudgastel.nl/subdomains/test2/httpdocs/wp-includes/http.php</scriptname>
	<scriptlinenum>94</scriptlinenum>
</errorentry>

<errorentry>
	<datetime>2009-02-19 00:53:26 (CET)</datetime>
	<errornum>2048</errornum>
	<errortype>E Strict</errortype>
	<errormsg>Non-static method WP_Http_Curl::test() should not be called statically, assuming $this from incompatible context</errormsg>
	<scriptname>/usr/local/psa/home/vhosts/kpjoudgastel.nl/subdomains/test2/httpdocs/wp-includes/http.php</scriptname>
	<scriptlinenum>97</scriptlinenum>
</errorentry>

<errorentry>
	<datetime>2009-02-19 00:53:26 (CET)</datetime>
	<errornum>2048</errornum>
	<errortype>E Strict</errortype>
	<errormsg>Non-static method WP_Http_ExtHTTP::test() should not be called statically, assuming $this from incompatible context</errormsg>
	<scriptname>/usr/local/psa/home/vhosts/kpjoudgastel.nl/subdomains/test2/httpdocs/wp-includes/http.php</scriptname>
	<scriptlinenum>142</scriptlinenum>
</errorentry>

<errorentry>
	<datetime>2009-02-19 00:53:26 (CET)</datetime>
	<errornum>2048</errornum>
	<errortype>E Strict</errortype>
	<errormsg>Non-static method WP_Http_Streams::test() should not be called statically, assuming $this from incompatible context</errormsg>
	<scriptname>/usr/local/psa/home/vhosts/kpjoudgastel.nl/subdomains/test2/httpdocs/wp-includes/http.php</scriptname>
	<scriptlinenum>145</scriptlinenum>
</errorentry>

Change History (10)

comment:1 @jacobsantos6 years ago

  • Component changed from HTTP to XML-RPC
  • Owner set to josephscott

comment:2 @sybold6 years ago

ehm, my error log format is in xml. i don't think it's related to the XML-RPC component. please correct me if i'm wrong.

comment:3 @ryan6 years ago

"Assigning the return value of new by reference is deprecated" and "Redefining already defined constructor for class wpdb" are due to php4 compatibility. We have to live with those.

2.7.1 should hide strict warnings unless WP_DEBUG is defined. Do you have that defined?

comment:4 @sybold6 years ago

i'm running my own error reporting script to display the errors, after the installation all pages went white.

comment:6 @DD326 years ago

  • Component changed from XML-RPC to General
  • Resolution set to wontfix
  • Status changed from new to closed

WordPress disables the output of E_STRICT errors due to their nature, WordPress supports PHP4.3+, Its impossible to abide by PHP5 strict rules as well as the available language constructs available in PHP 4.3

Assigning the return value of new by reference is deprecated

Which isnt deprecated in PHP4, only some version of PHP5, Works well in achieving the goal in PHP4

Redefining already defined constructor for class WP_Object_Cache

For PHP4 you need to have both construct() and ClassName() functions, as it doesnt reconise *() functions

Non-static method WP_Http_Streams::test() should not be called statically, assuming $this from incompatible context

Not sure, But i think that could be silenced by adding 'static' to the class method definition for the ::test()'s, but really dont see why it should be needed.. Esp. the fact that its only the latest PHP5 which is throwing this (silenced) error.

My point is, WordPress doesnt yet support PHP5 E_STRICT (Heck, It barely supports E_NOTICE most of the time), Resolving this as WOTNFIX (For the time being)

comment:7 @jacobsantos6 years ago

  • Resolution wontfix deleted
  • Status changed from closed to reopened

Dude, if you are running your own script, then it is your screw up and not WordPress. Here I was thinking, that the E_STRICT fix wasn't working and you have some custom code. If you try to "fix" E_STRICT in PHP5, you inadvertently enable it. It is the reason it is specifically not defined in the error reporting when it is set.

When WordPress does make the transition to PHP5+, those static errors will be fixed. I didn't feel like making them functions and well, PHP4 has no concept of "static" or methods anyway, as long as you don't try to use $this when calling a method statically.

Reopening to remove josephscott

comment:8 @jacobsantos6 years ago

  • Owner josephscott deleted
  • Status changed from reopened to new

comment:9 @jacobsantos6 years ago

  • Milestone 2.8 deleted
  • Resolution set to invalid
  • Status changed from new to closed

comment:10 @hakre5 years ago

Realted: #9158

Note: See TracTickets for help on using tickets.