Comments (17)
why you duplicating the info there? first with version 1.0 then again 1.1? I think if its only 1 plugin, you dont need to ust replace the info with the latest
i think you confusing the script by having 1.0 and 1.1 there lol
from automatic-theme-plugin-update.
I thought the idea was that you kept a version history in the $packages variable
from automatic-theme-plugin-update.
i'm sure you can keep a version history in the change log or some text file or whatever
from automatic-theme-plugin-update.
@mommaroodles - I got rid of the 1.0 version - now the code is only 1.1 but the updater is still asking for an update same as the image above.
from automatic-theme-plugin-update.
are you installing the update? and if you are have you changed the version number in the actual plugin itself?
from automatic-theme-plugin-update.
Yes to both. As you can see from the graphic the installed version is 1.1
but the update says the new version is also 1.1
On Thursday, 21 February 2013, Melanie Shepherd wrote:
are you installing the update? and if you are have you changed the version
number in the actual plugin itself?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-13833942.
Wil Brown
Lime Canvas
Web Design & Marketing in Ireland
We ♥ WordPress
[email protected]
@LimeCanvas http://tiwtter.com/LimeCanvas
from automatic-theme-plugin-update.
and those view lines of code that had to commented out during testing - looks like this
//Comment out these two lines during testing.
//if (empty($checked_data->checked))
//return $checked_data;
from automatic-theme-plugin-update.
@mommaroodles Yes this is most likely the cause of the problem. @limecanvas make sure that all testing code is commented out.
from automatic-theme-plugin-update.
In the plugin those two lines are uncommented.
Here's the main plugin code.
from automatic-theme-plugin-update.
But the comment above it says to comment out the two lines during testing.
Does that not imply to uncommented them in the finished version?
from automatic-theme-plugin-update.
When it says "comment out" do you mean uncomment?
from automatic-theme-plugin-update.
No when you are wanting to check for updates at every page load those two lines need to be commented out. Otherwise in the final version they should be uncommented. What I was saying was that if those two lines where still commented out it might be causing problems if you still had some of the testing code active but not those two lines commented out.
But looking over your plugin code I don't think that is the problem. One thing that helps me diganose problems with this is after this line in the check_for_plugin_update function.
$raw_response = wp_remote_post($this->api_url, $request_string);
add this
var_dump($raw_response);
This will dump what the api server responded with. When I get a minute today I'll take your plugin code and put it on my test server and see if I can replicate this issue.
from automatic-theme-plugin-update.
I appreciate you taking the time Jeremy.
The $raw_response dumps this:
array(5) { ["headers"]=> array(5) { ["date"]=> string(29) "Thu, 21 Feb 2013 03:16:21 GMT" ["server"]=> string(8) "Apache/2" ["x-powered-by"]=> string(10) "PHP/5.3.10" ["connection"]=> string(5) "close" ["content-type"]=> string(9) "text/html" } ["body"]=> string(1072) "O:8:"stdClass":13:{s:7:"version";s:3:"1.1";s:4:"date";s:10:"2013-02-18";s:6:"author";s:11:"Lime Canvas";s:8:"requires";s:3:"3.0";s:6:"tested";s:5:"3.5.1";s:8:"homepage";s:50:"http://www.limecanvas.com/support-and-maintenance/";s:10:"downloaded";s:1:"1";s:8:"external";s:0:"";s:7:"package";s:79:"http://www.limecanvas.com/api/download.php?key=ee083de47f92850fc2d5fdddd4236110";s:9:"file_name";s:28:"lime-canvas-support-v1.1.zip";s:8:"sections";a:6:{s:11:"description";s:26:"Lime Canvas Support Plugin";s:12:"installation";s:64:"Install, active and enter your Customer ID on the settings page.";s:11:"screenshots";s:3:"n/a";s:9:"changelog";s:97:"
= 1.1 =
* Adds support for Customer ID and current support level
* Auto updates
";s:3:"faq";s:212:"
= Can you hide the dashboard widgets =
Yes. Select "Screen Options" from the top RHS dropdown and uncheck each widget.
We would recommend that you keep the support widget visible at all times.
";s:11:"other_notes";s:3:"n/a";}s:4:"slug";s:19:"lime-canvas-support";s:11:"new_version";s:3:"1.1";}" ["response"]=> array(2) { ["code"]=> int(200) ["message"]=> string(2) "OK" } ["cookies"]=> array(0) { } ["filename"]=> NULL }
Or nicely formatted:
array(5) {
["headers"]=> array(5) {
["date"]=> string(29) "Thu, 21 Feb 2013 03:16:21 GMT"
["server"]=> string(8) "Apache/2"
["x-powered-by"]=> string(10) "PHP/5.3.10"
["connection"]=> string(5) "close"
["content-type"]=> string(9) "text/html" }
["body"]=> string(1072) "O:8:"stdClass":13:{
s:7:"version";
s:3:"1.1";
s:4:"date";
s:10:"2013-02-18";
s:6:"author";
s:11:"Lime Canvas";
s:8:"requires";
s:3:"3.0";
s:6:"tested";
s:5:"3.5.1";
s:8:"homepage";
s:50:"http://www.limecanvas.com/support-and-maintenance/";
s:10:"downloaded";
s:1:"1";
s:8:"external";
s:0:"";
s:7:"package";
s:79:"http://www.limecanvas.com/api/download.php?key=ee083de47f92850fc2d5fdddd4236110";
s:9:"file_name";
s:28:"lime-canvas-support-v1.1.zip";
s:8:"sections";
a:6:{
s:11:"description";
s:26:"Lime Canvas Support Plugin";
s:12:"installation";
s:64:"Install, active and enter your Customer ID on the settings page.";
s:11:"screenshots";
s:3:"n/a";
s:9:"changelog";
s:97:"= 1.1 =
* Adds support for Customer ID and current support level
* Auto updates";
s:3:"faq";
s:212:"= Can you hide the dashboard widgets =
Yes. Select "Screen Options" from the top RHS dropdown and uncheck each widget.
We would recommend that you keep the support widget visible at all times.";
s:11:"other_notes";
s:3:"n/a";}
s:4:"slug";
s:19:"lime-canvas-support";
s:11:"new_version";
s:3:"1.1";}"
["response"]=> array(2) {
["code"]=> int(200)
["message"]=> string(2) "OK" }
["cookies"]=> array(0) { }
["filename"]=> NULL }
Wil.
from automatic-theme-plugin-update.
Did you see anything in the response that would indicate why the plugin is constantly updating?
from automatic-theme-plugin-update.
No that seems fine to me. I'll pull down the plugin code and see if I get the same result on my server.
from automatic-theme-plugin-update.
@mommaroodles could you send me your $packages array please so that I can compare?
I just can't figure out why my plugin keeps updating with the same version.
Of course, remove your private info.
Thanks,
Wil.
from automatic-theme-plugin-update.
Thanks for both of your time.
I found the error - it was in the plugin where the version was being put together.
I had
'version' => $checked_data->checked[$this->plugin_slug .'/'. $test->plugin_slug .'.php'],
Don't know where the $test object came from but that's what was causing the problem.
I noticed that the version wasn't being set correctly in the request string.
["request"]=> string(60) "a:2:{s:4:"slug";s:19:"lime-canvas-support";s:7:"version";N;}"
All is working great now.
Cheerz,
Wil.
from automatic-theme-plugin-update.
Related Issues (20)
- License information HOT 6
- An error occurred while updating... HOT 2
- Multisite $checked_data->checked[$pluginname] empty HOT 5
- Help me, it can not run in my theme
- download.tmp
- WP Network Multisite HOT 3
- Error when viewing plugin version details HOT 3
- Solving WordPress server error message in Add New theme screen HOT 1
- The
- causing a [PHP Fatal error: Call to undefined function auth_redirect()] HOT 1
- Doesn't work with filter 'pre_set_site_transient_update_themes'
- Cannot modify header information HOT 2
- Update theme works but wrong theme folder name HOT 1
- is this still working? i can't get it to work HOT 1
- Afte update Plugin Folder name is appended with some strings HOT 1
- plugin update failed HOT 1
- f(x) Updater - Auto Update Theme & Plugin With UI
- Child Theme - theme X update process - no update
- Recent Issues - Wordpress 5.5 HOT 1
- Theme update results in new theme folder name of "download-XXXX" HOT 1
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 automatic-theme-plugin-update.