Comments (9)
Are you using the master branch of the update checker or a release version? There's a GitHub-specific bug that has already been fixed in master but I haven't tagged a new release yet.
Try opening the "update now" link in a new tab (middle-click or right-click and select "Open In a New Tab"). This way you'll get more details about the update installation process. Are there any error messages? On that note, are there any recent entries in your PHP error log?
from plugin-update-checker.
I have move my plugin code into my server directory. now I am using the "Self-hosted Plugins".
this is inside my json-api.json file in my server:
{
"name" : "My Plugin",
"version" : "1.3.1.3",
"author" : "My Name",
"download_url" : "http://mysite.com/plugin-directory/myplugin.zip",
"sections" : {
"description" : "some text here"
}
}
in my myplugin-function.php I have this code:
require 'plugin-update-checker/plugin-update-checker.php';
$myUpdateChecker = PucFactory::buildUpdateChecker(
'http://mysite.com/plugin-directory/myplugin.zip/json-api.json',
FILE
);
now when I click the update now button to open in new tab it says:
Downloading update from http://example.com/plugins/my-cool-plugin.zip…
Download failed. Not Found
I have no idea why it goes like this, I have checked all the files and code; even in my local codes works and update successfully. but in my live code didn't work.
I am alsp wondering why it link into "http://example.com/plugins/my-cool-plugin.zip" where I have set the code in json-api.json into "http://mysite.com/plugin-directory/myplugin.zip" ??
please help, I am almost done with it
from plugin-update-checker.
Maybe you used that URL (http://example.com/plugins/my-cool-plugin.zip
) in json-api.json
before, and the update checker still has that old version of the file cached? By default, it only checks for changes every 12 hours or so. Go to the "Plugins" page and click the "check for updates" link under your plugin entry. That will force it to refresh the cache.
I would also recommend installing the Debug Bar plugin. You can find a lot of useful debugging information in the "PUC (your-plugin-slug)" section of Debug Bar.
from plugin-update-checker.
Any news on this?
from plugin-update-checker.
I had a similar problem. In my case the website and the repository had the same domain.
You can try to disable the wordpress http-get external domain security feature adding this line to your plugin:
add_filter( 'http_request_host_is_external', '__return_true' );
from plugin-update-checker.
Yes, that's a known issue with hosting updates on the same domain. Maybe I should add a similar workaround to the library itself...
from plugin-update-checker.
Update: Should be fixed in 7a29fda.
from plugin-update-checker.
Great! Thank you!
from plugin-update-checker.
Well, I guess it's fixed, sort of? @loremuelgadrinab , if it still doesn't work for you, feel free to comment/reopen the issue.
from plugin-update-checker.
Related Issues (20)
- "Can't to read the plugin header" errors HOT 2
- Deprecated error HOT 2
- Deprecation notices PHP8 HOT 3
- Some assistance with a universal updater for a private repo HOT 6
- Unable to check version HOT 7
- Using PUC on an external server HOT 2
- Fatal error: Uncaught Error: Class 'YahnisElsts\PluginUpdateChecker\v5p1\DebugBar\Panel' not found HOT 11
- API for self update function HOT 11
- Fatal Error: Unable to determine if plugin or theme HOT 7
- Add query arg to requested .php file HOT 4
- Exclude repo file when updating my plugin HOT 1
- Not seeing "Install Update Now" button in plugin details popup HOT 5
- installed plugin on view details showing "install Now" instead "latest Version installed" HOT 2
- Lite version of the project HOT 8
- Calling the project in a file other than core HOT 8
- Attractive proposal for development HOT 3
- My Plugin Has Update. but WP shows it's up-to-date HOT 2
- Report a bug HOT 4
- [Feature] Check for updates if WP-CLI checks for updates HOT 6
- 'puc-github-http-error' Issue HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugin-update-checker.