site CRASH after upgrade of metatag 8.x-1.0-beta-6
The problem is metatag_open_graph.

[Sat Apr 02 23:31:30.852502 2016] [:error] [pid 28958] [client 178.51.201.143:59153] Uncaught PHP Exception Doctrine\\Common\\Annotations\\AnnotationException: "[Syntax Error] Expected PlainValue, got ''' at position 439 in class Drupal\\metatag_open_graph\\Plugin\\metatag\\Tag\\OgUpdatedTime." at /home/newsplusd8/pu
blic_html/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php line 42, referer: http://newsplusd8.arduinna-web.ovh/admin/config/search/metatag
[Sat Apr 02 23:32:26.327558 2016] [:error] [pid 3192] [client 178.51.201.143:59166] Uncaught PHP Exception Doctrine\\Common\\Annotations\\AnnotationException: "[Syntax Error] Expected PlainValue, got ''' at position 439 in class Drupal\\metatag_open_graph\\Plugin\\metatag\\Tag\\OgUpdatedTime." at /home/newsplusd8/pub
lic_html/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php line 42, referer: http://newsplusd8.arduinna-web.ovh/admin/config/search/metatag
[Sat Apr 02 23:32:34.310659 2016] [:error] [pid 3192] [client 178.51.201.143:59173] Uncaught PHP Exception Doctrine\\Common\\Annotations\\AnnotationException: "[Syntax Error] Expected PlainValue, got ''' at position 439 in class Drupal\\metatag_open_graph\\Plugin\\metatag\\Tag\\OgUpdatedTime." at /home/newsplusd8/pub
lic_html/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php line 42, referer: http://newsplusd8.arduinna-web.ovh/admin/config/search/metatag
[Sat Apr 02 23:32:49.147012 2016] [:error] [pid 6885] [client 178.51.201.143:59180] Uncaught PHP Exception Doctrine\\Common\\Annotations\\AnnotationException: "[Syntax Error] Expected PlainValue, got ''' at position 439 in class Drupal\\metatag_open_graph\\Plugin\\metatag\\Tag\\OgUpdatedTime." at /home/newsplusd8/pub
lic_html/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php line 42, referer: http://newsplusd8.arduinna-web.ovh/admin/structure
[Sat Apr 02 23:32:51.236435 2016] [:error] [pid 5780] [client 178.51.201.143:59182] Uncaught PHP Exception Doctrine\\Common\\Annotations\\AnnotationException: "[Syntax Error] Expected PlainValue, got ''' at position 439 in class Drupal\\metatag_open_graph\\Plugin\\metatag\\Tag\\OgUpdatedTime." at /home/newsplusd8/pub
lic_html/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php line 42, referer: http://newsplusd8.arduinna-web.ovh/admin/structure

by-pass is to uninstall metatag_open_graph :

drush pm-uninstall metatag_open_graph

Same problem on 2 D8 sites...

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Didier Misson created an issue. See original summary.

Didier Misson’s picture

Issue summary: View changes
DamienMcKenna’s picture

Priority: Normal » Major
Status: Active » Needs review
FileSize
470 bytes

Does this fix the problem?

DamienMcKenna’s picture

This updates one of the tests to also enable the Open Graph and Twitter Cards submodules, just to make sure simply enabling them doesn't break the site.

Didier Misson’s picture

Thanks Damien.
I go to test the 2 patches now.
Didier

gillesbailleux’s picture

We make a backup and test patch #4

Status: Needs review » Needs work

The last submitted patch, 4: metatag-n2699173-4.patch, failed testing.

The last submitted patch, 4: metatag-n2699173-4.patch, failed testing.

The last submitted patch, 4: metatag-n2699173-4.patch, failed testing.

Didier Misson’s picture

I just test patch # 4
with MySQL and PHP7.

.../public_html/modules/metatag# patch -p1 <  /root/download/metatag-n2699173-4.patch 
patching file metatag_open_graph/src/Plugin/metatag/Tag/OgUpdatedTime.php
patching file src/Tests/MetatagAdminTest.php

Test seem ok !
Site is up, running, with Metatag Open Graph enable.

Thanks.
Didier

DamienMcKenna’s picture

The following error is triggered when saving admin/config/search/metatag/global:
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for metatag.metatag_defaults.global with the following errors: metatag.metatag_defaults.global:tags.twitter_cards_type missing schema in Drupal\Core\Config\Testing\ConfigSchemaChecker->onConfigSave() (line 98 of core/lib/Drupal/Core/Config/Testing/ConfigSchemaChecker.php).

DamienMcKenna’s picture

Submitting the form works ok, but the tests result in an error.

DamienMcKenna’s picture

The twitter_cards_type field is a required field.

Status: Needs review » Needs work

The last submitted patch, 13: metatag-n2699173-13.patch, failed testing.

The last submitted patch, 13: metatag-n2699173-13.patch, failed testing.

  • DamienMcKenna committed 40e54fc on 8.x-1.x
    Issue #2699173 by DamienMcKenna: Fix OgUpdatedTime annotations.
    
DamienMcKenna’s picture

Status: Needs work » Fixed
Parent issue: » #2699057: Plan for Metatag 8.x-1.0-beta7 release

I'm moving the test changes into #2699297: Add tests for submodules and have committed the patch from #3.

DamienMcKenna’s picture

Priority: Major » Critical

This was critical.

Didier Misson’s picture

Thanks Damien.

I will try to test this new release this evening.
Didier

Didier Misson’s picture

Hi Damien

We have test and upgrade several sites, and all seem ok now, with Beta 7 !

Thanks for your very fast action to correct this bug.
;-)
Didier

DamienMcKenna’s picture

@Didier Misson: I'm very happy to hear it :)

Status: Fixed » Closed (fixed)

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