WordPress.org

Ready to get started?Download WordPress

Forums

Self Hosted Plugins
[resolved] Need Help with a Couple of Issues (45 posts)

  1. Daniel Dudzic
    Member
    Posted 2 years ago #

    Hi,

    Thanks You so much for this plugin.

    Im having some trouble making it work though...

    I uploaded 2 versions of my plugin: 1.0 and 1.0.1, i installed under other domain the version 1.0, and runned the update check.
    It didn't show any available updates. I tried a few times. Still nothing.

    Can you suggest what could go wrong?

    Best Regards,

  2. topquarky
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Daniel,

    The update script in Version 1.0 is likely still looking on the old domain. If you want it to check the new domain, you'll need to change the line near the end of your main plugin file:

    $__UpdateChecker = new PluginUpdateChecker('http://the_new_domain.com/extend/plugins/my-plugin-slug/update', __FILE__,'my-plugin-slug');

    This line gets inserted by Self Hosted Plugins to facilitate the update. It gets inserted when you upload the ZIP, so if you uploaded Version 1.0 to DomainA and Version 1.0.1 to DomainB, then 1.0 checks for updates on DomainA and 1.0.1 checks on DomainB.

    Make sense?

  3. Daniel Dudzic
    Member
    Posted 2 years ago #

    Yes, but that's not the case here. Maybe I didn't explain it properly.

    I host my plugin (ver. 1.0) on a http://www.domain.com, i uploaded the file there, and then downloaded the modified plugin zip.

    I uploaded and activated the modified plugin on a new WP on the http://www.domain.com/demo

    Then I uploaded the update(ver. 1.0.1) on the http://www.domain.com

    Then i runned the plugin check on the http://www.domain.com/demo. The result is that WP doesn't see that there is new update available.

    I checked the $__UpdateChecker link on the installed plugin (www.domain.com/demo) and it shows properly the www.domain.com/extend/plugins/wlp/update

    Thanks,

  4. topquarky
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Daniel,

    Try adding ?forceCheck=foo to the URL on the plugins page (i.e. http://www.domain.com/demo/wp-admin/plugins.php?forceCheck=foo)

    If $_REQUEST['forceCheck'] is set (to anything), then the plugin checker will check for updates. Otherwise it only checks every 12 hours.

    Does that work?

  5. Daniel Dudzic
    Member
    Posted 2 years ago #

    Holy crap!

    That actually works!

    I was using the Core Control plugin to check for updates before.

    The ?forceCheck=foo hack did the job.

    Thank You so much!

  6. topquarky
    Member
    Plugin Author

    Posted 2 years ago #

    Great. Glad it worked.

  7. dianemercier
    Member
    Posted 2 years ago #

    I had this error message
    "Invalid Object Passed: PEAR_Error"
    when I tried to execute the plugins

    What's wrong?

    DM

  8. topquarky
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Diane,

    At what point do you get that error?

    Thanks
    Trevor

  9. robwhiteus
    Member
    Posted 2 years ago #

    Just installed your Self Hosted Plugins and everytime I try to upload a zipped plugin, I get the message: Error: You must have a valid WordPress readme.txt file within the plugin zip.

    I am using Windows 7 and the latest version of WinZip. My redame.txt file passes the validator with flying colors and I have tried different compression settings, etc. to get this to work, and still no love. Any ideas??

  10. topquarky
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Rob,

    Yes, it turns out that Self Hosted Plugins has difficulty with ZIP files created with WinZip. It looks for the readme.txt file based off of the first entry in the zip, which in *nix based systems is the directory name. On WinZip (or right-click send to Archive) zips on Windows, that's not the case, so Self Hosted Plugins can't find the readme.txt. I'll work on fixing this issue in a future release, but in the meantime, I've heard that winrar works properly for zipping the files on Windows. I think command line zip would work too.

    Hope this helps.

    Cheers
    Trevor

  11. robwhiteus
    Member
    Posted 2 years ago #

    Thanks for the info. I have tried WinRar with the same results. I have tried a myriad of other zip programs, again, with the same results.

  12. topquarky
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Rob,

    Would you mind sending me your ZIP to support@topquark.com. I'll take a look and see what I can see.

    Cheers
    Trevor

  13. topquarky
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Rob,

    Thanks for sending the file. It looks like you just zipped the files. Can you try using winrar to zip the directory instead?

    Thanks
    Trevor

  14. robwhiteus
    Member
    Posted 2 years ago #

    You da man! That worked like a charm! Thanks for clearing this issue up for me!

  15. topquarky
    Member
    Plugin Author

    Posted 2 years ago #

    Glad I could help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic