Comments (15)
Got the same issue :(
from profile-command.
Reproduced this issue on Ubuntu 16.04, PHP FPM 7.0, WP-CLI 2.1.0, WordPress version 5.1.1, same command "wp profile stages" and variants result in HTML source download from the home page.
from profile-command.
Cannot immediately reproduce this on my local system.
A first guess would be that there is a redirect being triggered. Are you able to check debug/trace whether such a redirect is happening?
from profile-command.
I am using a plugin that enforces traffic to go through https
. Could that be the redirect?
@BernardZijlstra do you have anything like this as well?
from profile-command.
@joseairosa Yes, that could be a likely culprit. Did you try to skip loading that plugin with --skip-plugins=<plugin>
?
from profile-command.
@schlessera I will try tonight :)
from profile-command.
I haven't had the time to look into this more until now. It was a simple site with 3 plugins, setup over HTTPS without any plugins or redirects. After testing --skip-plugins
, it turns out Thrive Visual Editor
plugin is causing profile command to return homepage source code.
So if anyone else has that plugin, here's a command to test it:
wp profile stage --all --skip-plugins=thrive-visual-editor --allow-root
from profile-command.
A quick update, I haven't found the why and where it breaks jet. We don't use redirect plugins at all. Yes we use redirects to https on proxy's and on Nginx webservers. I tested the profile package on a couple of these systems and with some it just works and some it doesn't. For me it now feels like code breaks the profile package and not redirections to https. For instance it also breaks on a test system which is http only. To be continued.
from profile-command.
So in my case, looks like there was something with woocommerce-all-in-one-currency-converter
. I'm still getting a full extract of the source code, however, I'm now getting the benchmark back.
from profile-command.
We have this same issue.
from profile-command.
This appears to happen with https://codecanyon.net/item/testimonials-showcase-wordpress-plugin/6588139 too., though only partial HTML output. My assumption is some sort of crash?
from profile-command.
We have same issue. How we can fix this?
from profile-command.
im getting this issue for virtually all profile command calls. We dont have any redirection plugins installed
from profile-command.
Same here... outputs html of page only
from profile-command.
Since this is not an issue with the profile command but rather a plugin conflict and it can be any number of plugins, I'll close my issue.
For anyone trying to troubleshoot it, you need to figure out which plugin is causing this. You can simply run WP-CLI command to skip plugins based on the plugin's slug:
wp profile stage --all --skip-plugins=plugin-slug --allow-root
Once you're able to see correct output of the profile command, you know which plugin is causing the issue and should report it to the plugin's developer. In our case, we simply had an outdated plugin that had to be manually updated. Once updated, the profile command was working fine.
from profile-command.
Related Issues (20)
- Skipping Fatal errors possible? HOT 2
- Broken docs for --format argument
- Move command over to new v2 structure
- Invalid field: callback_count with --format=json and --fields not specified HOT 1
- A Trailing Slash Gets Added To URL Causing A Redirect HOT 1
- Adopt and enforce new `WP_CLI_CS` standard
- Warning: count(): Parameter must be an array or an object that implements Countable inc/class-logger.php on line 65 HOT 6
- Warning during installation: PHP Notice: Trying to access array offset on value of type null HOT 1
- Installation error: Your requirements could not be resolved to an installable set of packages HOT 3
- PHP Fatal error: Allowed memory size on install package HOT 1
- broken link on readme HOT 1
- Getting "fatal: No such remote 'composer'" while installing this command HOT 4
- Unexpected End Of File HOT 1
- SSL certificate problem on install. HOT 7
- Description missing for "wp profile" Command HOT 1
- Warnings on PHP 8.3
- SQLite Compatibility
- Dynamic property warnings in `Logger` class on PHP 8.2 HOT 6
- PHP 7 error reported when profiling intermediate hook with LSPHP 8.1.24 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 profile-command.