help! I can’t delete posts or pages…
-
Help! I can’t delete posts or pages… when I try, my bowser automatically downloads a php file then my dreamweaver automatically launches and open with that php file inside (which is a balk file). What’s going on?
Thanks for any tips you can give!
-
Have you tried using a different web browser?
yes. IE and Firefox. In firefox it downloads the php file, in IE it get the “Internet Explorer cannot display the webpage” message.
Site url?
What is the extension for that PHP file? If it could be a handler problem. When a server sends you a PHP file instead of executing it, it generally is because it (apache) does not know how to process it.
ANother possibility, if there is a code parse error (usually at the top) then it interprets as html and not php code. Would help to see the first few lines of the file being sent.
Also could be transient errors (reboot fixes them) like database issues where writes are not accepted. Is Writes or deletes in other areas working? Or php isn’t loading something it needs like a module. or many others
The file is called “post.php” and when it opens in dreamweaver, it’s blank, there’s nothing there.
Tried a reboot, same problem.
@webjunk: If it was a simple handler problem, I would have thought that the public side of the blog would show similar symptoms but it all looks fine to me.
@melodicwarrior: Have you tried opening the file in a text editor? Any chance you could try deleting a post or page using another machine? We need to rule out a machine-specific problem.
yes, it’s acting the same on two separate machines. By the way, here is the error:
[Sun May 31 08:42:21 2009] [error] [client 123.26.212.148] WordPress database error Duplicate entry ‘082007.m4v’ for key 1 for query INSERT INTO wordpress_podpress_statcounts (postID, media, web) VALUES (64, ‘082007.m4v’, 1) made by require, require_once, require_once, require_once, include_once, podpress_statsdownloadredirect, podpress_processdownloadredirect, podpress_statcounter
This post has not been touched since it was posted in 2007. Not sure why it’s saying there is a duplicate entry.
I tried deactivating podpress but I still get the same error.
Can you check the wordpress_podpress_statcounts table via PhpMyadmin? Do you rely heavily on this plugin? Could you try uninstalling it?
Esmi, I have a friend who is working on it but she may not be able to figure out what’s wrong. Could I hire you to log in and see if you can figure out the problem? I feel it’s a minimal problem and will only require a skilled hand and eye a little time to rectify it. Write me at niko@nikoonline.com
I’m not sure I could help. Right now, the only thing I can think of is to uninstall the podpress plugin and then re-check the db via PhpMyAdmin. If the wordpress_podpress_statcounts table still exists, backup the db and then destroy that table. However, how badly this will impact on your site, I couldn’t say. Depends how much you use this particular plugin.
melodicwarrior: That looks like the auto increment is not set or working. So whats may be happenening is its trying to use a Post ID that is already used.
Would go into phpmyadmin and check that the ID field is set to auto increment in the attributes. Should be pretty easy to fix if that is the issue.
esmi: Have seen some Themes that have files with the php4, php5, and other extensions. (Yes have had to fix this before for people) They should work but some hosting companies don’t pre-configure for them and just seem to tell their customers those files are not supported.This post has not been touched since it was posted in 2007. Not sure why it’s saying there is a duplicate entry.
Looking at the table name, I assumed that this table was being used to record pod views/downloads. That could account for more than one entry per pod depending upon how the plugin stores stats.
Another thought: although you haven’t changed that post since 2007, have you tried embedding/linking to that .m4v file in another post? I’m trying to think of any situation which would cause a second record to be added to the table.
If you are trying to delete a Post why not delete it out of Phpmyadmin in case the entry is corrupted?
The error looks like it was generated from a Post (to WP almost everything is a post) being edited or created it needs to assign a New ID doesn’t it? If the field is not set to Autoincrement you will get a duplicate entry error.How about doing a Repairr on the database?
The topic ‘help! I can’t delete posts or pages…’ is closed to new replies.