Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conflict with "rise" theme #35

Closed
seyfro opened this issue Aug 20, 2015 · 3 comments
Closed

conflict with "rise" theme #35

seyfro opened this issue Aug 20, 2015 · 3 comments

Comments

@seyfro
Copy link

seyfro commented Aug 20, 2015

Hi Yahnis,

I discovered that there is an issue when using your plugin-update-checker together with the "rise" theme from http://thrivethemes.com/, showing the following error in the dashboard:

Warning: The URL http://members.thrivethemes.com/plugin_versions/content_builder/update.json?checking_for_updates=1&installed_version=1.100.1 does not point to a valid plugin metadata file. WP HTTP error: Could not resolve host: http (Domain name not found) in /(wp-content/plugins/leaflet-maps-marker-pro/inc/class-plugin-update-checker.php on line 248

it seems that the GET parameter checking_for_updates is also used by the theme and causing this issue.

Perhaps renaming checking_for_updates to puc_checking_for_updates would solve this and any further related issues...
best,

Robert

@YahnisElsts
Copy link
Owner

I'm reluctant to break backwards compatibility just to work around a buggy theme.

Look at it this way: you could rename the query parameters and force everyone who uses them to update their code, but who's to say that the new URL won't conflict with some other buggy theme or plugin? Maybe another theme uses the same path suffix ("_versions") or file name ("update.json"), or looks for a "members." prefix in the domain name. Maybe some poorly written plugin breaks all HTTP requests that use a particular timeout setting or where the URL is more than 100 characters long.

Would it really be a good idea to stuff a plugin full of workarounds for every buggy WordPress product out there?

@seyfro
Copy link
Author

seyfro commented Aug 20, 2015

did not think about that changing that parameter would break backward compatibility - if that is the case, I wouldnt change this either. Just thought, I let you know about this issue. Will contact the theme developer instead and tell him about this issue...

@seyfro seyfro closed this as completed Aug 20, 2015
@YahnisElsts
Copy link
Owner

Yeah, if plugin-update-checker was a brand-new library I would just change the parameter and be done with it. However, "checking_for_updates" and "installed_version" were introduced more than two years ago. There are probably developers who rely on them. In this case, contacting the theme author seems like the best approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants