sojweb
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Posts are being automatically deletedYeah, I find this whole thing very strange. There isn’t anything unusual hooked at the moment, but these deletions only happen during cron jobs, so maybe something gets hooked in at that point.
Of course, it’s possible that whatever’s doing the deleting isn’t hooking into anything, in which case it wouldn’t put anything in the filter array. For that reason, I’m also dumping a full backtrace when posts are deleted.
At any rate, when it happens again, I’ll (hopefully) know exactly what happened, if not how. This has been a very, very strange problem.
Forum: Fixing WordPress
In reply to: Posts are being automatically deletedSorry for not getting back to you guys sooner. It does have to be coming from within WordPress because the ‘delete_post’ action is being invoked. That wouldn’t happen if the database entries were being deleted outside of WP.
Thanks for the tip about
$wp_filter; I’m waiting for something to get deleted again to see what’s hooking into this action. I’ll post what I find out.Forum: Fixing WordPress
In reply to: Posts are being automatically deletedI put a check in
wp-cron.phpfor that hook so that it skips it; I assume that has the effect of disabling it.I’ve got a bunch of stuff that accesses the database, but nothing that would invoke the WordPress functions for deleting posts. I mean, it’s invoking the hooked actions, so the actual delete post function must be being called. That’s the part that’s strange. I can’t figure out what would be calling it, or how.
Forum: Fixing WordPress
In reply to: Posts are being automatically deletedYeah, I’ve checked the cron option, and it’s empty, but I’ve disabled the scheduled delete function all the same. It’s not that the posts just aren’t showing up, they’re actually being deleted; I wrote a plugin that sends notifications out when posts are edited, and I’ve been getting notifications of posts being deleted, which I’m taking to mean that
wp_delete_postis being invoked–and they’re not just in the trash, they’re gone.I host the site on a local server, where it’s been for almost four years. I’ve never had anything like this happen. I’m starting to think I should just trash the entire install and redo it… it’s due for an upgrade anyway… but something like this happening really worries me, and I’d like to know what’s going on.
I’m starting to think it might be some kind of malicious code running, even though it seems like kind of a weird attack to write. Have you heard of anything like that?
Forum: Fixing WordPress
In reply to: Posts are being automatically deletedA few, but none that delete posts.
Forum: Everything else WordPress
In reply to: Select category for post in a custom publishing post pageI still don’t quite understand what you’re doing… and parts of your code don’t make sense. Where is the
$rowarray coming from, and what are you doing with$my_post? What does theselected()function do? (It looks like it’s trying to mark the selected option, but that won’t work because the<option>tag is closed in the line above it.) And why are you using theucfirst()function? It won’t do anything because the first character of$video_categoryis non-alphabetic.Forum: Everything else WordPress
In reply to: Select category for post in a custom publishing post pageWhat is not working about it?
Forum: Fixing WordPress
In reply to: Create static page for subfolderIf there is an
index.htmlfile in that folder, that would usually be displayed. I’m a bit confused, though, about what you have: Is there a “test” directory with an HTML file inside of it? If so, the path should be http://www.shazas.com/test/test.htmlForum: Fixing WordPress
In reply to: Create static page for subfolderWhen you say it didn’t work, what do you mean? Did you get any error message? If the file exists at the root of your Web site (next to, but not inside of,
wp-contentand the rest), you should be able to visit it as you described.Forum: Fixing WordPress
In reply to: Screwed up settings page – can’t get back in!Glad it worked; right, if those WP_SITEURL and WP_HOME constants aren’t there, you just add them. But the phpMyAdmin method is equally effective.
Forum: Fixing WordPress
In reply to: Create static page for subfolderCreate the folder on your Web site with the static file in it. That address of a actual file will override a WordPress address, so even if some WP post/page ends up with the permalink mysite.com/subfolder, the real subfolder will take precedence.
Forum: Fixing WordPress
In reply to: Screwed up settings page – can’t get back in!Take a look at this thread: http://ww.wp.xz.cn/support/topic/259789
Forum: Fixing WordPress
In reply to: Desperate need of help with wordpressTake out this bit:
<? endelsethat you have towards the end. Just delete that line. That should do it.
Forum: Fixing WordPress
In reply to: Custom FieldsWell, yes, to the extent that there’s no way for your theme to know which custom field to pull and what to do with it. You might also find themes with custom field support built in, or I’m sure there are widgets/plugins out there that handle them in some way.
Forum: Fixing WordPress
In reply to: Custom Field IssueWell, you’re blog page is listing multiple pages, so there’s no way for it to know which text you want to use. You could just stick some text in the template file.