WordPress.org

Ready to get started?Download WordPress

Forums

2.1 asks me to download PHP file instead of executing action (19 posts)

  1. anela
    Member
    Posted 7 years ago #

    I have searched for this but either no one else is having this problem or I just don't know how to search for this. I am trying to find out if this is a WordPress issue in some way or a server only issue.

    Sometimes, when moderating comments or publishing posts, the site will try for a longer time to do what you've told it to do but it can't and a dialog from FireFox will pop up asking me to download moderation.php or post.php. This does not happen every time and when it does, it's usually only once, canceling the download dialog and trying again usually sends it through after that.

    Any ideas? I'm running PHP 4.4.4 and MySQL 4.1.21-standard-log.

    Thanks!

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Next time it happens, try downloading the file and then looking at it in a text editor. Often it's an error message of some sort when this occurs, and this sometimes indicates where the issue is. Usually it's some kind of server error or misconfiguration or even a transient load.

  3. anela
    Member
    Posted 7 years ago #

    Hi there -- today I managed to grab a moderation.php and an options-general.php when this happened again. However, both files were completely empty/blank.

    Thanks!

  4. navigadget
    Member
    Posted 7 years ago #

    Hi Anela,

    This happens to me a lot. I'm still at 2.0.7 though. I was hoping it would go away at 2.1.

    Anyhow, who is your host? I'm with yahoo (bad idea!) and I think their mysql is to blame. Who knows...

  5. Chris_K
    Member
    Posted 7 years ago #

    I'd be checking error logs. Do you have access to 'em with your host(s)?

    What plugins?

    Running out of php max memory?

  6. navigadget
    Member
    Posted 7 years ago #

    So I found a log file called scripts.log

    And it is filled with these:

    [14-Feb-2007 02:25:36] PHP Warning: Unknown(): The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in Unknown on line 0
    [14-Feb-2007 02:25:36] PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

    Could this be the reason?

  7. anela
    Member
    Posted 7 years ago #

    @ navigadget - I'm with site5.com - looove them.

    @ HandySolo - the only thing in my error_log is two lines where I mistyped a function when making some template changes last night. Here's a list of my plugins also listed with links here (bottom of page).

    * 404 Notifier
    * Amazon Wishlist
    * AntiLeech
    * AutoLinker
    * Brian’s Latest Comments
    * Comment Analysis
    * Deep Thoughts
    * Extended Live Archives
    * Favatars
    * Flash Filter Plus
    * Google Sitemaps
    * Ma.gnolia
    * Now Reading
    * Owen’s Spam Action (OSA)
    * PXS Mail Form
    * Paged Comments
    * Preview Theme
    * Redirectify
    * Related Posts
    * Role Manager
    * Scrobbles
    * Sociable
    * Subscribe To Comments
    * Text Link Ads v2.0
    * Ultimate Tag Warrior
    * Ultimate Tag Warrior: Tag Archive
    * Viper’s Plugins Used
    * WP Flickr Post Bar
    * WP-Stats
    * WP-UserOnline
    * Weighted Categories
    * WordPress Database Backup
    * XML Parser
    * flickrRSS
    * todayAgo
    * wordTube

    Some of those are new to my site - ie added after this thing started happening.

  8. Samuel B
    moderator
    Posted 7 years ago #

    In my limited experience, 9 times out of 10 this is a php memory issue. Ask your host(s) to bump the php memory from 8M to 16M. Most hosts will do this no problem.

  9. Chris_K
    Member
    Posted 7 years ago #

    ... and, just for grins, disable the google sitemap plugin and see if that changes anything.

  10. navigadget
    Member
    Posted 7 years ago #

    How would I find out how much php memory my host allows?...

    Oh wait...I just googled phpinfo and came accross a function called memory_get_usage().

    Now I just have to find out how to run this function. Shouldn't be that difficult. I'll update once I do that.

    Handysolo I'll also try disabling google sitemaps, I have that running too like Anela.

  11. anela
    Member
    Posted 7 years ago #

    I don't think Google sitemaps is making a difference. I'll be changing my php memory soon. I have to do it myself, according to my host, so have to figure that out (from their faqs).

    Thanks everyone :)

  12. navigadget
    Member
    Posted 7 years ago #

    So I looked into phpinfo() output and my hosts allows 20MB memory for php. Is that enough? How can I tell how much resources wordpress and its plugins consume? Maybe I can get rid of the most expensive plugin.

    Any ideas?

  13. shawnblanc
    Member
    Posted 7 years ago #

    I'm having the same issue in 2.1

    When trying to edit a post I get a blank screen in Safari (or a Download in Firefox) after hitting save. I switched to the Google Sitemaps 3Beta and am not even able to edit posts. I get a 'lost network connection' when I click the edit button.

    All problems go away when I dissable Google Sitemap Plugin.

    I didn't have the issue in 2.0.6.

  14. Jonathan Landrum
    Member
    Posted 7 years ago #

    Well, that's strange. If it's a memory problem, and if I'm reading phpinfo() correctly, then I have 128M of RAM available to PHP ... that, and I still get this issue at times, although not nearly as often after the switch to 2.1.

  15. anela
    Member
    Posted 7 years ago #

    Yeah, this is definitely a Google Sitemaps problem... that makes me sad. :( I'm not sure if I want to get rid of the plugin, maybe I'll just have to deal with it...

  16. Wurlitzer
    Member
    Posted 7 years ago #

    I'm having this issue sometimes, and I don't have the Google Sitemaps plugin.

  17. shawnblanc
    Member
    Posted 7 years ago #

    I posted php_value memory_limit 16M in my .htaccess file and it fixed the problem. Obviusly it was a memory issue for me.

  18. Jonathan Landrum
    Member
    Posted 7 years ago #

    It's probably a few different gremlins that cause similar results, and so there is no One Solution for everyone.

    So far we have:

    1. Possibly faulty MySQL install,
    2. PHP memory limit too low,
    3. And Google Sitemaps plugin or other such PHP-heavy plugins.
  19. k0rp0rate
    Member
    Posted 7 years ago #

    After upgrading to WP 2.2bleeding I get blank page when trying to edit a post.

    In my case the problem was the plugin Kill Preview 2, after deactivating the plugin all goes ok.

Topic Closed

This topic has been closed to new replies.

About this Topic