[wp-hackers] wp-db.php throws errors in new 2.2 install

Robin Adrianse robin.adr at gmail.com
Wed May 30 20:19:46 GMT 2007


Maybe an is_resource() is needed.

On 5/30/07, Chris <chris.hearn01 at ntlworld.com> wrote:
>
> Hi
> have upgraded to WP 2.2,
> after standard new install, with default theme, noticed my debugger
> complaining as follows:
> \wp-includes\wp-db.php line 204 - mysql_num_fields(): supplied argument
> is not a valid MySQL result resource
> \wp-includes\wp-db.php line 209 - mysql_fetch_object(): supplied
> argument is not a valid MySQL result resource
> \wp-includes\wp-db.php line 214 - mysql_free_result(): supplied argument
> is not a valid MySQL result resource
>
> I think this is due to the query "SET NAMES..." which returns true, not
> a resource.
> Any one else notice this?
> Thanks
> Chris.
> --
>
>     **********************************************************************
>     Chris Hearn
>     *Tel:* 01625 827589
>     *Mob:* 07768 725141
>     *email:* chris.hearn01 at ntlworld.com
>     **********************************************************************
>     The information transmitted is intended only for the person or entity
>     to which it is addressed and may contain confidential and/or
> privileged
>     material. Any review, retransmission, dissemination or other use of,
>     or taking of any action in reliance upon, this information by persons
>     or entities other than the intended recipient is prohibited.
>     If you received this in error, please contact the sender and delete
> the
>     material from any computer.
>     **********************************************************************
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list