WordPress.org

Forums

Postie
[resolved] filterPostie.php disappers (23 posts)

  1. merlinox
    Member
    Posted 2 years ago #

    Is it normal that every time plugin has been update, filterPostie.php disappears from plugin folder?

    http://wordpress.org/extend/plugins/postie/

  2. That's an interesting one and I just tried it myself with the older version of Postie. The same thing happened on my installation. The normal plugin upgrade process won't do that (I'm pretty sure anyways).

    It was apparently the Postie Filter plugin that was upgraded as well and it did wipe out my copy of filterPostie.php. That's weird but there may be something in the documentation that I'm missing. I don't actually use that plugin myself...

  3. merlinox
    Member
    Posted 2 years ago #

    It seems upgrade remove filterPostie.php and add filterPostie.php.sample

  4. I was wrong and I just got confirmation: when you upgrade a plugin (or a theme) the old directory does get deleted. Any user created files that are in that directory such as filterPostie.php will get deleted too.

  5. Wayne Allen
    Member
    Plugin Author

    Posted 2 years ago #

    As Jan posted the WP upgrade process deletes the entire directory. So if you are trying to extend postie by using the "postie_post" filter you need to either put this code in your theme or your own separate plugin.

  6. merlinox
    Member
    Posted 2 years ago #

    Wayne you may write it to filterPostie.php.sample too.
    I don't like this solution but thanks for the reply.

  7. Wayne Allen
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, I've updated filterPostie.php.sample to help people understand what they need to do.

  8. merlinox
    Member
    Posted 2 years ago #

    Soory Wayne, but why don't you update only files you need, removing what you don't need? Thanks for update.

  9. Wayne Allen
    Member
    Plugin Author

    Posted 2 years ago #

    I don't have any control over the upgrade process. WP core does it, not me.

  10. Might I suggest you include instructions for the user on how to put that file in wp-content instead? That would prevent plugin updates from deleting that file and your plugin can check there for the existence of that filterPostie.php there.

  11. Wayne Allen
    Member
    Plugin Author

    Posted 2 years ago #

    A good idea. Thanks!

  12. l2v
    Member
    Posted 2 years ago #

    Just to clarify... You say put the file into wp-content... Is it loading from /wp-content/ ? From /wp-content/plugins/ ? Or from either directory?

  13. Wayne Allen
    Member
    Plugin Author

    Posted 2 years ago #

    /wp-content/filterPostie.php

  14. merlinox
    Member
    Posted 2 years ago #

    I put it on theme folder, now I move it.
    Thanks

  15. FabioTOLETI
    Member
    Posted 2 years ago #

    Hello,

    i have the same problem, i've opened a topics, can you help me ?

    Thank you...

    Fabio

  16. Wayne Allen
    Member
    Plugin Author

    Posted 2 years ago #

    @FabioTOLETI
    Please see my response to your other question.

  17. FabioTOLETI
    Member
    Posted 2 years ago #

    I've seen your answer, thank you Wayne. But it's always the same. i don't understand.

  18. merlinox
    Member
    Posted 2 years ago #

    I put filterpostie.php in /wp-content/filterPostie.php but it doesn't work. In the plugin directory it disappeared.

  19. Wayne Allen
    Member
    Plugin Author

    Posted 2 years ago #

    >I put filterpostie.php in /wp-content/filterPostie.php

    I'm not sure I understand this statement.

    Any custom code that you want Postie to automatically execute should be in a file named filterPostie.php in the wp-content directory.

    If you enable debug logging http://postieplugin.com/enabling-debug-output/ you will see a line that tells you that Postie found the filterPostie.php file and used it.

  20. merlinox
    Member
    Posted 2 years ago #

    Wayne you say to move filterPostie.pho in the /wp-content/ folder.
    I did it but Postie seems to not see it.

  21. Wayne Allen
    Member
    Plugin Author

    Posted 2 years ago #

    I assume "filterPostie.pho" was a typo and you meant "filterPostie.php"

    Please turn on debug logging to see where Postie things wp-content is and if Postie found your filterPostie.php file.

  22. merlinox
    Member
    Posted 2 years ago #

    Ok. Postie sees it. I'll check better filterPostie.php.
    Thanks

  23. Wayne Allen
    Member
    Plugin Author

    Posted 2 years ago #

    You may want to check the permissions on filterPostie.php or do something simple to make sure it is working.
    There is some example code here: http://postieplugin.com/postie-polylang/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Postie
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.