Problem/Motivation

There are projects where the Language module is not enabled, hence there is an error in CookiePro.php at line 675
if ($config->get('url.source') === LanguageNegotiationUrl::CONFIG_DOMAIN) {

Fatal error: Uncaught Error: Class "Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUrl" not found in /app/web/modules/contrib/cookiepro_plus/src/CookiePro.php:675

Proposed resolution

Verify if the language module is enabled.

Remaining tasks

Add patch.

CommentFileSizeAuthor
#2 3353738-2.patch2.66 KBbogdan.racz
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bogdan.racz created an issue. See original summary.

bogdan.racz’s picture

Status: Active » Needs review
StatusFileSize
new2.66 KB

Added patch.
Please review!

andreasderijcke made their first commit to this issue’s fork.

  • andreasderijcke committed c391c80b on 1.0.x
    Issue #3353738 by bogdan.racz, andreasderijcke: LanguageNegotiationUrl...
andreasderijcke’s picture

Status: Needs review » Fixed

Whoops, so used to multi-language sites it didn't even occur the module might be disabled.
Thanks for reporting this and providing the patch!

Release with the fix will follow in a few minutes.

andreasderijcke’s picture

You can use release 1.0.5.

Status: Fixed » Closed (fixed)

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