WordPress.org

Ready to get started?Download WordPress

Forums

podPress
[Plugin: Podpress] latest beta resets upload dir settings? (5 posts)

  1. raymer
    Member
    Posted 3 years ago #

    Tim,
    I noticed when I updated to the latest dev version (8.8.10 RC 5) that the uploads dirs info in podpress general settings reset to defaults. This happened on 2 of 3 sites so I am not sure if it is a problem with podpress or my database?

    -Ray

  2. ntm
    Member
    Plugin Author

    Posted 3 years ago #

    I agree. This is not acceptable. I will look into this in the next days.
    Thank you for testing this version.

    Tim

  3. raymer
    Member
    Posted 3 years ago #

    Thanks for confirming - I am not totally sure it is podpress. I had a couple other issues when upgrading to WP3.1. But I did observe the behavior I mentioned so thought you would want to know.

    -Ray

  4. ntm
    Member
    Plugin Author

    Posted 3 years ago #

    Ray,
    I was not able reproduce that behaviour. But if you still know the previous versions of podPress at these 2 blogs then I will try again to reproduce the situation.

    But I have reviewed all (all that I know of) lines which include code related to this value (the value of "Absolute path of the media files directory"). I have found some minor bugs which I could fix. But I'm not sure if I have discovered and fixed the problem.

    Can you tell whether the value of "Absolute path of the media files directory" was the only one which was set back to default?

    Maybe try the 8.8.10 RC 10 in those 2 blogs.

    Regards,
    Tim

  5. ntm
    Member
    Plugin Author

    Posted 3 years ago #

    I have read your first post again and I probably need to state my question more precisely: Can you tell whether or not values other than "Absolute path of the media files directory" and "URL of the media files directory" were set back to there default values?

    If you install podPress the first time in a blog then the "Absolute path of the media files directory" is empty. Does that value has been set back to the absolute path of the upload path of the blog or was it empty after the upgrade?

    Is it right that you have upgraded WP to 3.1 and afterwards podPress to the 8.8.10 RC 5 version? Can you tell whether these values were set back after the WP upgrade or the podPress upgrade?

    Basically these settings (and all others too) getting set to the defaults when they are not part of the podPress->settings() array (which is the same as the podPress_config data in the wp_options db table). The procedure which checks the existence of those options gets started e.g. after an version upgrade (when the PODPRESS_VERSION in the podpress.php file is bigger than the version number in the db). But this procedure ignores the "Absolute path of the media files directory" value because the default value is an empty value. The upgrade does not touches this value (the only exception is 8.8.10 RC 10 but RC 11 works as before again). The only action which overwrites this special value is the saving the general settings process.

    If checkSettings() function (in podpress_class.php) finds out that the result of the query for the podPress_config value from the wp_options table is no array then it sets the default values. If the result is an array then this function checks whether or not the single elements exist and sets the default values if the don not exist.

    Regards,
    Tim

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags