Code Monkey home page Code Monkey logo

Comments (6)

lucatume avatar lucatume commented on June 12, 2024

Could you post your composer.json file?
If you cannot at least the require and require-dev sections of your composer.json file, thanks.

from wp-browser.

BrandonBraner avatar BrandonBraner commented on June 12, 2024

Here is a link to an image with the full error stack.
http://screencast.com/t/s4MQtGdp

{
    "name": "leadpages/leadpagesconnector",
    "description": "Leadpages WordPress connector",
    "require": {
        "pimple/pimple": "^3.0",
        "leadpages/leadpages-auth": "*",
        "leadpages/pages": "*",
        "leadpages/leadboxes": "*",
        "icanboogie/inflector": "^1.4",
        "ramsey/uuid": "^2.9",
        "moontoast/math": "*"
    },
    "require-dev": {
        "codeception/codeception": "^2.2",
        "site5/phantoman": "^1.1",
        "jakoch/phantomjs-installer": "2.1.1-p06",
        "lucatume/wp-browser": "~1.16"
    },
    "autoload": {
        "psr-4": {
            "TheLoop\\": "Framework//",
            "LeadpagesWP\\": "App//",
            "LeadpagesMetrics\\": "App//Lib//LeadpagesMetrics//"
        }
    },
    "authors": [
        {
            "name": "Brandon Braner",
            "email": "[email protected]"
        }
    ],
    "scripts": {
        "post-install-cmd": [
            "PhantomInstaller\\Installer::installPhantomJS"
        ],
        "post-update-cmd": [
            "PhantomInstaller\\Installer::installPhantomJS"
        ]
    }
}

from wp-browser.

lucatume avatar lucatume commented on June 12, 2024

I've created an empty plugin using your configuration file and run composer install.
The class Request_Response is part of the rmccue/requests package; that's not a package wp-browser uses.
The rmccue/requests package is but used from the wp-cli/wp-cli package that is, in turn, required by wp-browser.
The Requests_Response::is_redirect() method is not part of version 1.6.1 of rmccue/requests but it's instead part of master; I guess one of the packages you use requires it like:

"rmccue/requests": "dev-master"

wp-cli/wp-cli requires rmccue/requests stable version ~1.6 and will hence download that and not the dev-master one: that's why the Requests_Response::is_redirect() will not be there.

The "trick" is to alias rmccue/requests dev-master branch to a version that's compatible with wp-cli/wp-cli requirement of ~1.6 like this (I'm reporting the modified require section of your composer.json file only):

"require": {
    "pimple/pimple": "^3.0",
    "leadpages/leadpages-auth": "*",
    "leadpages/pages": "*",
    "leadpages/leadboxes": "*",
    "icanboogie/inflector": "^1.4",
    "ramsey/uuid": "^2.9",
    "moontoast/math": "*",
    "rmccue/requests": "dev-master as 1.6.2beta"
}, 

In the end this is not a wp-browser issue as it's not any other package issue, it's a simple version requirement conflict.

from wp-browser.

lucatume avatar lucatume commented on June 12, 2024

Any news here? Did the proposed solution above help you?

from wp-browser.

BrandonBraner avatar BrandonBraner commented on June 12, 2024

It appears to yes.
Thank you

from wp-browser.

lucatume avatar lucatume commented on June 12, 2024

Thanks for taking the time to open an issue and follow through, much appreciated.

from wp-browser.

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.