Comments (11)
It looks like Query Monitor attempts to emulate the Debug Bar plugin when that plugin isn't active. PUC has limited Debug Bar integration, so under certain conditions, it adds a callback to the debug_bar_panels
filter that QM calls here:
Debug_Bar::init_panels() wp-content/plugins/query-monitor/classes/debug_bar.php:53
During that, PUC tries to load some classes related to the Debug Bar. Which apparently doesn't work because the Debug_Bar_Panel
class doesn't exist. I think this probably happens because QM autoloads its version of Debug_Bar_Panel
, and PUC specifically disables autoloading for the relevant class_exists()
check.
However, I can't figure out what scenario could actually lead to that chain of events. You need a situation where the Debug_Bar
class already exists but Debug_Bar_Panel
does not. Maybe something else makes QM load Debug_Bar
earlier than usual? Do any of the other plugins on those sites use Debug Bar? Their tabs might also show up in QM.
from plugin-update-checker.
Unfortunately, I don't have any other information about the issue. The affected sites, both of which threw the error between yesterday and today, belong to clients, but I don't have access to them, due to data protection policies. Neither client is tech savvy, nor do they have a person who can provide technical details, therefore we're still at a preliminary investigation level, at least until someone can provide more details about the conditions that cause the issue.
from plugin-update-checker.
Well, I have an idea about how the error can be avoided, but I don't have a way to verify if it will actually work since I can't reproduce the error. And if you don't have access to the sites, you might not be able to verify the fix either.
If you'd like to try it anyway, switch from version 5.1 of PUC to what's currently in the master
branch.
from plugin-update-checker.
I would be happy to try the master branch, but I wasn't able to reproduce the error myself, either. Due to that, there's no way of knowing if the fix will work.
I will ask the clients if they could grant access to a staging site for testing. If they agree, I will report back here. If not, I will have to wait until I get the chance to run the test.
from plugin-update-checker.
Noting I hit the same error this morning. Deactivated Query Monitor via WP-CLI so I could access the Dashboard.
from plugin-update-checker.
@YahnisElsts Just a quick update. Another user reported the same error. Unfortunately, I couldn't get access to a staging site (they are all very strict with the access), so I couldn't test the proposed fix. If there's going to be a new version coming soon, please let me know and I will update my plugins too.
from plugin-update-checker.
I could create a new release pretty easily, but I'm a bit reluctant to do that when I don't know if the fix actually works.
from plugin-update-checker.
@YahnisElsts What's the best way to test (if I hit it again)? Do I run the develop branch, or just change that line manually in my plugin on the site with issues?
from plugin-update-checker.
I think either would work. Changing the line yourself might be slightly safer because the repository could (at some point) include other, unrelated changes.
from plugin-update-checker.
@YahnisElsts I prepared a build of my plugin that includes the proposed changes, then asked some of my customers to try it on their sites. After installing the update, the error went away. It reappeared shortly after, due to the presence of another plugin (Admin Menu Editor Pro) which includes the "old", unpatched version of the Plugin Update Checker library, but that is a further confirmation that the patched version works.
from plugin-update-checker.
All right, I've made a new release, version 5.3. I will also update Admin Menu Editor Pro sometime this week.
from plugin-update-checker.
Related Issues (20)
- 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
- Request : Please Update *How to Release an Update* Section HOT 2
- How to set up a Github App for a private repository HOT 2
- GitHub API error. Base URL: "/repos/:user/:repo/contents/update-checker.php", HTTP status code: 404 HOT 1
- Activate plugin: Uncaught Error: Class "YahnisElsts\PluginUpdateChecker\v5p3\Plugin\Ui" not found in /var/www/html/wp-content/plugins/seoai-client/plugin-update-checker-5.3/Puc/v5p3/Plugin/UpdateChecker.php:78 HOT 2
- Updated from version 5.3 to 5.4 and receiving Puc/v5p4/Autoloader.php not found HOT 3
- Plugin Description and Changelog HOT 6
- PUC on shared hosting HOT 4
- Releases and Tags HOT 2
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.