I upload to the my server, I cannot even go to the plugin option. This is the error I get “Fatal error: Call to undefined function: update_post_cache() in /home/rocky/public_html/wp-content/plugins/sem-recent-posts.php on line 281”
I am at work now, I don’t have access to software that will tell me what is line 281?
Oops. Looks like Denis included the use of a 1.5.1 function :). rocky, you’d need to be running one of the 1.5.1 nightlies.
thanks for pointing it out.
i added a test before caching. it should work now.
I hope people will upgrade quickly to 1.5.1 once it’s released. I need that caching done for another plugin I’m writing. ;P
silly me… 😉
now that i declared the global variable too, it should work =P
i fixed a couple of other issues. i could use a beta tester or two at this point, to check if everything works properly on a 1.5 platform. and i’d be interested to know if it works on a 1.2 platform as well.
I just updated to 2.0 beta and this is what came up on my sidebar.
#
WordPress database error: [Out of memory. Restart daemon and try again (needed 65500 bytes)]
/* sem_recent_updates */ SELECT DISTINCT posts.* FROM wp_posts AS posts WHERE ( posts.post_status = ‘static’ ) AND posts.post_date_gmt <= ‘2005-04-16 18:25:59’ AND posts.post_date_gmt >= ‘2005-04-13 21:25:00’ ORDER BY posts.post_modified DESC
WordPress database error: [Out of memory. Restart daemon and try again (needed 65500 bytes)]
/* sem_recent_updates */ SELECT DISTINCT posts.* FROM wp_posts AS posts WHERE ( posts.post_status = ‘static’ ) AND posts.post_date_gmt <= ‘2005-04-16 18:25:59’ ORDER BY posts.post_modified DESC LIMIT 3
As usual, all help is greatly appreciated. If no one can help soon, please at least can Denis post a link to good ol’ 1.2? I seem to have updated without saving a backup copy and this… is bad.
RaynerApe — thanks for pointing the bug out.
i’ve really no clue what is causing it — the queries you are pointing at are valid and far from resource hogging. Moreover, the second one is the same as the one used in 1.2.
i suspect it might come from tabs and carriage return formats, so i gave removing those a try. you might want to try downloading beta-5 and report your findings by email (denis _|at|_ semiologic _|dot|_ com), here, or in the plugin’s comments. i’d be curious to try to pinpoint what is causing it.
else, i suggest you try asking Paula for a past version. I no longer have it, but considering she missed my announcement of v.2 beta after unsubscribing from the comments, she might.
Paula’s blog is: http://paulaoffutt.com/blog/
i could use a few more beta testers before i officially make the current release stable…