102 posts
  • Author Level 5
  • Collector Level 2
  • Trendsetter
  • Exclusive Author
+1 more

I’m a little surprised with my WP 3 .31. Several months ago I installed WP 3 .31. When I switch wp_debug from (false) to (true), my theme shows some errors:

1. PHP Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home2/XXX/public_html/XXX/demo/wp-includes/functions.php on line 3587

2. Trying to get property of non-object in /home2/XXX/public_html/XXX/demo/wp-includes/post-template.php on line 30

3. Warning: Cannot modify header information – headers already sent by (output started at /home/XXX/public_html/wp-includes/functions.php:3458) in /home/XXX/public_html/wp-includes/pluggable.php on line 866

Last night I downloaded new WP 3 .31 from this link http://wordpress.org/download. Then install it manually. I activated wp_debug. And strangely, all the error in my theme disappeared.

I do not want to believe I have clean theme yet.

In the latest wordpress 3.3.1 which I downloaded, there is a description “This maintenance release fixes 15 issues with WordPress 3.3, as well as a fix for a cross-site scripting vulnerability That affected version 3.3.”

Is there a bug in WP 3 .3.1 which I used before?

Anyone have any experience like this?