Cannot find the configuration page for shipping in drupal 8 commerce 2. /admin/commerce/config/shipping is not available.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drupwebdev created an issue. See original summary.

bojanz’s picture

Can'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?

LiamSch’s picture

Priority: Major » Normal
Issue tags: -admin config ui +admin config ui shipping
FileSize
69.44 KB
50.05 KB
45.06 KB
60.98 KB
LiamSch’s picture

I 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.

  • /admin/commerce/config/package-types
  • /admin/commerce/config/shipment-types
  • /admin/commerce/config/shipping-methods

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.

bojanz’s picture

Issue tags: -admin config ui shipping

config 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.

bojanz’s picture

Title: Cannot find shipping admin config page » Shipping group not shown on admin/commerce/config
LiamSch’s picture

I 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?

LiamSch’s picture

I 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?

bojanz’s picture

There is no such thing as hook_menu in D8. Look at commerce_shipping.links.menu.yml

LiamSch’s picture

Ahh, 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!

LiamSch’s picture

I 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:

./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
  - Updating drupal/commerce_shipping (2.0.0-beta3 => dev-2.x 7e9755f):  Checking out 7e9755f470
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
Writing lock file
Generating autoload files
> Drupal\Core\Composer\Composer::preAutoloadDump
> Drupal\Core\Composer\Composer::ensureHtaccess

But then I get a status error:

Entity/field definitions 

Mismatched entity and/or field definitions 
The following changes were detected in the entity type and field definitions. 

Shipping method
•The Conditions field needs to be installed.
•The Condition operator field needs to be installed.

thoughts?

LiamSch’s picture

Well...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

bojanz’s picture

@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.

bojanz’s picture

Category: Bug report » Support request

I have tagged a beta4. Sorry for the initial confusion, I didn't know beta3 didn't have the UI commit.

LiamSch’s picture

I 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:

[18-Oct-2017 19:55:02 America/New_York] Drupal\Component\Plugin\Exception\PluginNotFoundException: The "commerce_shipment" entity type does not exist. in /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Entity/EntityTypeManager.php on line 133 #0 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Entity/EntityManager.php(54): Drupal\Core\Entity\EntityTypeManager->getDefinition('commerce_shipme...', true)
#1 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php(116): Drupal\Core\Entity\EntityManager->getDefinition('commerce_shipme...')
#2 /homepages/41/d291222287/htdocs/schneiderlab.com/core/modules/field/src/Entity/FieldStorageConfig.php(451): Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::schema(Object(Drupal\field\Entity\FieldStorageConfig))
#3 /homepages/41/d291222287/htdocs/schneiderlab.com/core/modules/field/src/Entity/FieldStorageConfig.php(488): Drupal\field\Entity\FieldStorageConfig->getSchema()
#4 /homepages/41/d291222287/htdocs/schneiderlab.com/core/modules/views/views.views.inc(312): Drupal\field\Entity\FieldStorageConfig->getColumns()
#5 /homepages/41/d291222287/htdocs/schneiderlab.com/core/modules/views/views.views.inc(761): views_field_default_views_data(Object(Drupal\field\Entity\FieldStorageConfig))
#6 [internal function]: core_field_views_data(Object(Drupal\field\Entity\FieldStorageConfig))
#7 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Extension/ModuleHandler.php(391): call_user_func_array('core_field_view...', Array)
#8 /homepages/41/d291222287/htdocs/schneiderlab.com/core/modules/views/views.views.inc(184): Drupal\Core\Extension\ModuleHandler->invoke('core', 'field_views_dat...', Array)
#9 [internal function]: views_views_data()
#10 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Extension/ModuleHandler.php(391): call_user_func_array('views_views_dat...', Array)
#11 /homepages/41/d291222287/htdocs/schneiderlab.com/core/modules/views/src/ViewsData.php(245): Drupal\Core\Extension\ModuleHandler->invoke('views', 'views_data')
#12 /homepages/41/d291222287/htdocs/schneiderlab.com/core/modules/views/src/ViewsData.php(162): Drupal\views\ViewsData->getData()
#13 /homepages/41/d291222287/htdocs/schneiderlab.com/core/modules/views/src/Plugin/Derivative/ViewsEntityRow.php(91): Drupal\views\ViewsData->get('block_content')
#14 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php(101): Drupal\views\Plugin\Derivative\ViewsEntityRow->getDerivativeDefinitions(Array)
#15 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php(87): Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDerivatives(Array)
#16 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(283): Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions()
#17 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(174): Drupal\Core\Plugin\DefaultPluginManager->findDefinitions()
#18 /homepages/41/d291222287/htdocs/schneiderlab.com/core/modules/views/views.module(146): Drupal\Core\Plugin\DefaultPluginManager->getDefinitions()
#19 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Theme/Registry.php(446): views_theme(Array, 'module', 'views', 'core/modules/vi...')
#20 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Theme/Registry.php(333): Drupal\Core\Theme\Registry->processExtension(Array, 'views', 'module', 'views', 'core/modules/vi...')
#21 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Theme/Registry.php(232): Drupal\Core\Theme\Registry->build()
#22 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Utility/ThemeRegistry.php(86): Drupal\Core\Theme\Registry->get()
#23 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Utility/ThemeRegistry.php(67): Drupal\Core\Utility\ThemeRegistry->initializeRegistry()
#24 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Theme/Registry.php(252): Drupal\Core\Utility\ThemeRegistry->__construct('theme_registry:...', Object(Drupal\Core\Cache\DatabaseBackend), Object(Drupal\Core\ProxyClass\Lock\DatabaseLockBackend), Array, true)
#25 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Theme/ThemeManager.php(142): Drupal\Core\Theme\Registry->getRuntime()
#26 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Render/Renderer.php(437): Drupal\Core\Theme\ThemeManager->render('html', Array)
#27 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, true)
#28 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Render/Renderer.php(139): Drupal\Core\Render\Renderer->render(Array, true)
#29 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Render/Renderer.php(576): Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}()
#30 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Render/Renderer.php(140): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#31 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Render/BareHtmlPageRenderer.php(66): Drupal\Core\Render\Renderer->renderRoot(Array)
#32 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/ProxyClass/Render/BareHtmlPageRenderer.php(76): Drupal\Core\Render\BareHtmlPageRenderer->renderBarePage(Array, Object(Drupal\Core\StringTranslation\TranslatableMarkup), 'maintenance_pag...', Array)
#33 /homepages/41/d291222287/htdocs/schneiderlab.com/core/modules/system/src/Controller/DbUpdateController.php(196): Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer->renderBarePage(Array, Object(Drupal\Core\StringTranslation\TranslatableMarkup), 'maintenance_pag...', Array)
#34 [internal function]: Drupal\system\Controller\DbUpdateController->handle('info', Object(Symfony\Component\HttpFoundation\Request))
#35 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Update/UpdateKernel.php(110): call_user_func_array(Array, Array)
#36 /homepages/41/d291222287/htdocs/schneiderlab.com/core/lib/Drupal/Core/Update/UpdateKernel.php(73): Drupal\Core\Update\UpdateKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request))
#37 /homepages/41/d291222287/htdocs/schneiderlab.com/update.php(28): Drupal\Core\Update\UpdateKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#38 {main}
bojanz’s picture

Unfortunately 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.

bojanz’s picture

Status: Active » Closed (outdated)