Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Cannot find the configuration page for shipping in drupal 8 commerce 2. /admin/commerce/config/shipping is not available.
Comment | File | Size | Author |
---|---|---|---|
#4 | admin index shipping configuration found.PNG | 37.46 KB | LiamSch |
#3 | shipping config page not found.PNG | 60.98 KB | LiamSch |
#3 | Shipping 2.0 no config link1.PNG | 45.06 KB | LiamSch |
#3 | Commerce2.0.PNG | 50.05 KB | LiamSch |
#3 | commerce 2.0 config no shipping link2.PNG | 69.44 KB | LiamSch |
Comments
Comment #2
bojanz CreditAttribution: bojanz at Centarro commentedCan't reproduce.
Can you provide more information/screenshots on what you're seeing?
Also, can you confirm you're on Commerce 2.0 and not an older version?
Comment #3
LiamSch CreditAttribution: LiamSch commentedComment #4
LiamSch CreditAttribution: LiamSch commentedI found the configuration area under /admin/index; it was buried. I guess that would make this a minor or normal issue rather than major. Here are the areas that I found and I could not find them documented anywhere for me to refer to when I was setting this all up.
I also learned/noticed, the a flat rate shipping method looks to be built in (so the flat rate shipping module is not needed), so I will test with that first.
I will begin my testing of this an let you know if I run into any other issues.
Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedconfig no shipping link2.PNG is supposed to contain a shipping group like the one shown on admin index shipping configuration found.PNG
Unfortunately I have no clue where to start debugging this issue, since I've been unable to reproduce it on a fresh install.
Are you logged in with uid: 1? If not, can you check if anything changes when you switch to uid: 1? That would tell us if it's a permission issue somewhere.
Comment #6
bojanz CreditAttribution: bojanz at Centarro commentedComment #7
LiamSch CreditAttribution: LiamSch as a volunteer and commentedI am indeed logged in as uid 1. I am using a fresh install of drupal 8.3.6 that was upgraded to 8.4. I was unable to get 8.4 loading directly (I received errors preventing me from performing the installation) and this was the only method I could be the latest drupal version loaded. Perhaps that is how the problem can be recreated? Is this a bug with drupal 8.4 and shipping perhaps?
Comment #8
LiamSch CreditAttribution: LiamSch as a volunteer and commentedI looked at this issue further and I only see a reference to the settings pages for the module under the commerce_shipping.routing.yml file in the module folder. I do not see any code that leverages the hook_menu implementation to add the module settings form and defining an admin URL (/admin/commerce/config/shipping) within Drupal for the modules settings page. Where would this normally be in the module code? Am I missing something perhaps?
Comment #9
bojanz CreditAttribution: bojanz at Centarro commentedThere is no such thing as hook_menu in D8. Look at commerce_shipping.links.menu.yml
Comment #10
LiamSch CreditAttribution: LiamSch as a volunteer and commentedAhh, hook_menu is not in D8. Sorry...and thank you for educating me on that.
I was looking at that file yesterday that you referred to and as well as the commerce_shipping.routing.yml file and could find no reference to /admin/commerce/config/shipping. I searched all of the files for any sign of this and it was no where to be found. I think I know what is probably going on. I installed version 8.x-2.0-beta3 of commerce_shipping from https://www.drupal.org/project/commerce_shipping that was release on July 10 2017. This version does not have the proper code in it for the shipping settings menu item to show up. I looked at your GitHub repository and found the reference I was expecting to see. You committed an update on aug 8 2017 to resolve the problem that I am seeing presently. I am working to update to that version to see if this is resolved.
Thanks!
Comment #11
LiamSch CreditAttribution: LiamSch as a volunteer and commentedI am having difficulty updating to the dev version. I tried using composer:
composer require drupal/commerce_shipping:2.x-dev
and it updated but then I got an error in my site and had to revert back.The compose went fine:
But then I get a status error:
thoughts?
Comment #12
LiamSch CreditAttribution: LiamSch as a volunteer and commentedWell...I totally hosed my site trying to update commerce_shipping to the dev version. I have the same exact issue as listed here now:
https://www.drupal.org/node/2910176
Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginNotFoundException: "The "commerce_shipment" entity type does not exist." .... /core/lib/Drupal/Core/Entity/EntityTypeManager.php line 133
Comment #13
bojanz CreditAttribution: bojanz at Centarro commented@drupwebdev
Your initial error is caused by updating the code but not running update.php
You must always run update.php after updating a module.
The other error is not familiar to me.
Comment #14
bojanz CreditAttribution: bojanz at Centarro commentedI have tagged a beta4. Sorry for the initial confusion, I didn't know beta3 didn't have the UI commit.
Comment #15
LiamSch CreditAttribution: LiamSch as a volunteer and commentedI ran update.php and got an error 500 after it finished updating. Now update.php does not run, it only provides error 500 every time its called. The error I get in the php error log is:
Comment #16
bojanz CreditAttribution: bojanz at Centarro commentedUnfortunately that's not an error that I know how to debug.
You'll have to search around drupal.org to see if anyone has figured out the underlying cause behind it.
Comment #17
bojanz CreditAttribution: bojanz at Centarro commented