• Resolved naomir

    (@naomir)


    Hi, following on from my previous issue I have downgraded PHP to 7.4 and now composer has installed woocommerce.

    However, there are a couple of new issues now:

    1) When I activate the plugin, the woocommerce menu items do not appear, and there is a message saying “Your installation of WooCommerce is incomplete. If you installed WooCommerce from GitHub, please refer to this document to set up your development environment.” I am not able to use the plugin at all

    2) Some other plugins came along with it that I don’t want – Action Scheduler, Woocommerce Admin and Woocommerce Blocks. The versions of all of these plugins are out of date, and in the case of the first two, the latest version of them hasn’t been tested with wordpress 5.9. I don’t want to install untested versions nor do I want to have outdated plugins on the site. I could manually delete them but I am using composer with automated deployment and I don’t want to have to manually delete things on production

Viewing 6 replies - 1 through 6 (of 6 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @naomir,

    When I activate the plugin, the woocommerce menu items do not appear

    I’d recommend that you follow the Composer support documentation and raise any issues on their Github repository where Composer developers are in the best position to assist you: https://github.com/composer/composer.

    Some other plugins came along with it that I don’t want – Action Scheduler, Woocommerce Admin and Woocommerce Blocks.

    WooCommerce core latest version 5.9 has WooCommerce Blocks 6.1, WooCommerce Admin 2.8.0 , Action Scheduler package 3.3.0 built-in and you can read more on this release here: https://developer.woocommerce.com/2021/11/09/woocommerce-5-9-released/.

    If you have standalone plugins installed you may want to remove them from your installation and for this reach out to the Composer support team if you require further assistance.

    Kindly note that this support forum is for questions and issues around the core WooCommerce plugin itself, and third-party tools are outside of the scope of support we are able to provide. The developers of these third-party tools are in the best position to answer any concerns or issues you may encounter after using their tools.

    Thanks.

    Thread Starter naomir

    (@naomir)

    Hi Mirko,

    My issue is not with Composer, and I am very familiar with using Composer and do not require help with that.

    My issue is with the woocommerce/woocommerce package on Packagist. Which I think was created by the woocommerce team? The package does not appear to install a working copy of woocommerce, and also it contains other plugins which are out of date and in one case untested with the current WP version.

    The package is locked to an old version of action-scheduler, for example. preventing me from upgrading action-scheduler when presumably woocommerce does support the latest version.

    However I understand from your reply that you do not wish to support this package and are not interested in how it could be improved; fair enough, I will not bother you further about it.

    Naomi

    Mirko P.

    (@rainfallnixfig)

    Hi @naomir,

    My issue is with the woocommerce/woocommerce package on Packagist. Which I think was created by the woocommerce team?

    As far as I am aware Packagist is not an Automattic project. Automattic is the company behind WooCommerce and also has contributions to WordPress.

    Here you have WooCommerce core official development channels where you can also download the plugin:

    https://github.com/woocommerce/woocommerce
    https://woocommerce.com/

    It looks like Packagist has other founders and you can read more here: https://packagist.com/about/.

    Please note that on this forum we are unable to help provide support for third-party tools, so regarding this specific issue, it is best if you contact the application authors directly.

    Cheers.

    Thread Starter naomir

    (@naomir)

    Packagist is a PHP package repository, which works fine. My issue was with this package https://packagist.org/packages/woocommerce/woocommerce which I assumed was an official one published by Automattic

    But it seems not – I guess someone else must uploaded it. Sorry for the misunderstanding.

    Workaround to get Woocommerce working with Composer:

    1. Download the zip of woocommerce
    2. Extract it
    3. Add a composer.json (in the root of the woocommerce directory you just created) with these contents:

    
    {
      "name": "<your_company>/woocommerce",
      "type": "wordpress-plugin"
    }
    
    

    4. Put it all in a git repo
    5. Add the repo to the composer.json for your project (see https://getcomposer.org/doc/05-repositories.md#vcs)
    6. Also add requires to your project for the child plugins (will fetch the latest versions)

    
        "woocommerce/woocommerce-admin": "*",
        "woocommerce/action-scheduler": "*",
        "woocommerce/woocommerce-blocks": "*",
    
    

    Having done this I now have a working install, haven’t tested extensively but have been able to import some products and all looks well.

    Mirko P.

    (@rainfallnixfig)

    Hello @naomir,

    Awesome! Thank you so much for sharing your solution which could be very helpful for other users having the same issue.

    I’d recommend that you open a new topic if you have more questions.

    Have a great day!

    I repro’d what @naomir was seeing. Turns out you will get that error if you reference the wppackagist repository and load the repo as, e.g.,

    "woocommerce/woocommerce": "4.9.4"

    However, interestingly you do not get the error if you reference it as

    "wpackagist-plugin/woocommerce": "4.9.4"

    so there may be a broken “woocommerce/woocommerce” in there but you can avoid it.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Plugin not working after installing via composer, and extra plugins appeared’ is closed to new replies.