Giter Site home page Giter Site logo

Comments (6)

froger-me avatar froger-me commented on June 26, 2024

Hello,

Aside from the strange amount of / in the snippet :p, there doesn't seem to be any issue.

Please let me know the package id of the theme or the name of the package (I assume it's zb_restate or zb_restate.zip), the current version installed, and the version to update to. When trying to get the package's metadata at http://one.ace.org.pk/wppus-update-api/?action=get_metadata&package_id=zb_restate&update_type=Theme, the response came back empty.

On a side note, it is highly recommended to use https on the WordPress install where WP Plugin Update Server is installed - I actually plan to enforce it in the next version.

from wp-package-updater.

froger-me avatar froger-me commented on June 26, 2024

Also, after investigating the update API endpoint at http://one.ace.org.pk/wppus-update-api/action=get_metadata&package_id=zb_restate, it seems there is either an error triggered in the background or a conflict with another plugin preventing it from being reached: indeed, the blank page has a status 200 (if the package ID was wrong, it would be 500 ; if the action was wrong, it would be 400).
With a status 200, the endpoint is supposed to return an application/json response. However, when testing, I receive a text/html response.

To investigate more, I would recommend to (in order, and on the server, not the client):

  • visit the permalinks admin page to ensure the endpoint is set and test again
  • try again and check the error logs
  • add define('WP_DEBUG', true); to wp-config.php and try again, and check the error logs
  • deactivate a maximum amount of plugins and test again (the mu-plugin should prevent them from executing, but we never know)
  • switching to a default theme and test again (the mu-plugin should prevent your theme's function.php from executing, but we never know)

If nothing does the trick, I would be happy to debug for you, provided I have SSH access (and I know it's not a small thing to ask, so it's last resort).

from wp-package-updater.

froger-me avatar froger-me commented on June 26, 2024

To facilitate troubleshooting, I have changed how the update API endpoint is handling its parameters. Please update WP Plugin Update Server to v1.4.2 - no call to http://one.ace.org.pk/wppus-update-api should result in a blank page, no matters the parameters passed (either a 400 or 404 error should show in case of issue).

from wp-package-updater.

simplyaakif avatar simplyaakif commented on June 26, 2024

First of all, I would like to say that I really appreciate you answering this with light speeds. 👍
I have not seen many people do that. To post not one but multiple answers to solve the issue.

Apparently, with your help, it is running as its supposed to in terms of JSON response.

I followed your advice regarding plugin confliction and so on. Turns out it was a stupid permalink issue which was turned to the plain by multiple migrations. So bad on my end.

One last thing is that using the endpoint
http://one.ace.org.pk/wppus-update-api/?action=get_metadata&package_id=zb_restate&update_type=Theme
I get the Jason and can download from the link.

Now I tried to update it and got this
An error occurred while updating AR RealEstate: Download failed. Service Unavailable

My question is because I am trying to update it on the same site, it's being hosted or something similar.

Once again I would like to offer my gratitude to you for making such an awesome plugin. I will really do my best in spreading the word of this great plugin.

from wp-package-updater.

froger-me avatar froger-me commented on June 26, 2024

Hey @simplyaakif !
Thanks for the kind words, and glad to see it's going in the right direction!

If I do understand well, you client and your server are on the same installation. If that's the case, it is normal the service is unavailable: when WordPress updates plugins, it puts locks in place preventing the server from doing its job, and it gets a 503 response.

To actually test, you could simply have the server run on a subdomain:

I hope this helps!

from wp-package-updater.

froger-me avatar froger-me commented on June 26, 2024

No follow up in 2 months - closing

from wp-package-updater.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.