Giter Club home page Giter Club logo

Comments (15)

joseairosa avatar joseairosa commented on June 1, 2024

Got the same issue :(

from profile-command.

BernardZijlstra avatar BernardZijlstra commented on June 1, 2024

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.

schlessera avatar schlessera commented on June 1, 2024

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.

joseairosa avatar joseairosa commented on June 1, 2024

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.

schlessera avatar schlessera commented on June 1, 2024

@joseairosa Yes, that could be a likely culprit. Did you try to skip loading that plugin with --skip-plugins=<plugin> ?

from profile-command.

joseairosa avatar joseairosa commented on June 1, 2024

@schlessera I will try tonight :)

from profile-command.

viktorix avatar viktorix commented on June 1, 2024

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.

BernardZijlstra avatar BernardZijlstra commented on June 1, 2024

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.

joseairosa avatar joseairosa commented on June 1, 2024

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.

treyrich avatar treyrich commented on June 1, 2024

We have this same issue.

from profile-command.

pcfreak30 avatar pcfreak30 commented on June 1, 2024

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.

nsgnc avatar nsgnc commented on June 1, 2024

We have same issue. How we can fix this?

from profile-command.

oempire avatar oempire commented on June 1, 2024

im getting this issue for virtually all profile command calls. We dont have any redirection plugins installed

from profile-command.

rockoo avatar rockoo commented on June 1, 2024

Same here... outputs html of page only

from profile-command.

viktorix avatar viktorix commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.