[wp-testers] "Categories" 2 bug under the Dashboard.

Peter Westwood peter.westwood at ftwr.co.uk
Fri Mar 21 12:28:21 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Frank Helmschrott wrote:
|>  I modifed wp-db.php to attempt to reconnect when the lost connection
|>  error occurs.  A new version of wp-db.php can be downloaded here:
|>
|>  http://trac.wordpress.org/attachment/ticket/6305/wp-db.php?format=raw
|>
|>  Replace your existing wp-includes/wp-db.php with that.
|
| ok did this. Succeeded on first try to add a new category with a
warning left:
|
|> Warning: mysql_ping() expects parameter 1 to be resource, boolean
given in
|> /mnt/.../wp-includes/wp-db.php on line 120
|
| and (of course)
|
|> Warning: Cannot modify header information - headers already sent by
|> (output started at /mnt/.../wp-includes/wp-db.php:120) in
|> /mnt/.../wp-includes/classes.php on line 802 test1 sdfsdf 0 ]]>
|
| The new cat first didn't appear in the list but it did after
| refreshing the category manage page.
|
| After trying to edit a page i get these errors on a white page showing
| nothing besides the errord:
|
|> Warning: mysql_ping() expects parameter 1 to be resource, boolean
|> given in /mnt/g.../wp-includes/wp-db.php on line 120
|
|> Warning: mysql_ping() expects parameter 1 to be resource, boolean
|> given in /mnt/.../wp-includes/wp-db.php on line 120
|
|> Warning: Cannot modify header information - headers already sent
|> by (output started at /mnt/g.../wp-includes/wp-db.php:120) in
|> /mnt/.../wp-includes/pluggable.php on line 693
|

I've attached a new patch on the ticket for people to try.

We shouldn't ping the resource if we failed to reconnect which we were
in Ryan's original patch.

Please try this and feed back here or on the ticket.

westi
- --
Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
~ C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH46nlVPRdzag0AcURAqfIAKCIsy2FQ+bT5fp6pKDvYw8Ss5uzSwCgrH+6
pJDYhrUmRUD3J8NZh2EUHhQ=
=vaXq
-----END PGP SIGNATURE-----


More information about the wp-testers mailing list