Running on drupal 8.0.2
Receiving error when adding forum or container I receive wsod:

Fatal error: Call to a member function get() on null in [mysite]/modules/pathauto/src/Plugin/pathauto/AliasType/ForumAliasType.php on line 45.

I'm not able to edit or create existing and additional forums or containers.
The forum created by default is working fine.
No problem for adding topics.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

VBN created an issue. See original summary.

VBN’s picture

I partly solved this by removing the pattern that i used for forum nodes.
[term:vocabulary]/[term:name]

I'll create some new forums and containers first and then try to create a forum pattern again.
Wip...

Berdir’s picture

Yes, the forum integration is currently completely untested and apparently broken.

VBN’s picture

So no need to keep on testing when we know it's broken right?

Berdir’s picture

I'm wondering if we should just remove that integration for now. I've closed multiple duplicate issues already.

AFAIK, forum/ID urls are currently even broken in core. So even if our code would work, it still would be broken.

Berdir’s picture

Assigned: Unassigned » Dave Reid
Status: Active » Needs review
FileSize
1.28 KB

Doing just that.

Dave Reid’s picture

Does core intend to fix the forum routing? Is there a linked issue to that?

Berdir’s picture

Dave Reid’s picture

As much as I hate the forum special-casing, I'm not sure ripping the code out is the best method. I still feel strongly about supporting core use cases for aliasing, which as long as core includes forum, we should support it. What is wrong with our current code and why can't it be fixed? Or can we just always return FALSE in the applies() method for now?

Berdir’s picture

I think workaround like that will be way more confusing than simply not having that option for now.

We can make it a critical, 1.0 blocker to add it again (with test coverage). But it just seems pointless to try and do things correctly now when core doesn't actually work with forum/N url's in the first place.

Dave Reid’s picture

We can at least get things working so when core is fixed this will work. The problem was $this->configFactory wasn't defined. I think we just need test coverage to ensure this is working as expected, instead of ripping it out.

Dave Reid’s picture

The last submitted patch, 11: 2680503-fix-forum-integration.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 12: 2680503-fix-forum-integration.patch, failed testing.

The last submitted patch, 11: 2680503-fix-forum-integration.patch, failed testing.

The last submitted patch, 12: 2680503-fix-forum-integration.patch, failed testing.

Dave Reid’s picture

Errant key strokes generally ruin testability...

Dave Reid’s picture

Status: Needs review » Fixed
Issue tags: -pathauto +beta blocker

Committed #17 to 8.x-1.x so that I can get a new release out.

  • Dave Reid committed 3628aac on 8.x-1.x
    Issue #2680503 by Dave Reid, Berdir: Fixed ForumAliasType caused fatal...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.