Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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...
Comment | File | Size | Author |
---|---|---|---|
#13 | metatag-n2699173-13.patch | 4.43 KB | DamienMcKenna |
Comments
Comment #2
Didier Misson CreditAttribution: Didier Misson as a volunteer commentedComment #3
DamienMcKennaDoes this fix the problem?
Comment #4
DamienMcKennaThis 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.
Comment #5
Didier Misson CreditAttribution: Didier Misson as a volunteer commentedThanks Damien.
I go to test the 2 patches now.
Didier
Comment #6
gillesbailleuxWe make a backup and test patch #4
Comment #10
Didier Misson CreditAttribution: Didier Misson as a volunteer commentedI just test patch # 4
with MySQL and PHP7.
Test seem ok !
Site is up, running, with Metatag Open Graph enable.
Thanks.
Didier
Comment #11
DamienMcKennaThe 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).
Comment #12
DamienMcKennaSubmitting the form works ok, but the tests result in an error.
Comment #13
DamienMcKennaThe twitter_cards_type field is a required field.
Comment #17
DamienMcKennaI'm moving the test changes into #2699297: Add tests for submodules and have committed the patch from #3.
Comment #18
DamienMcKennaThis was critical.
Comment #19
Didier Misson CreditAttribution: Didier Misson as a volunteer commentedThanks Damien.
I will try to test this new release this evening.
Didier
Comment #20
Didier Misson CreditAttribution: Didier Misson as a volunteer commentedHi 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
Comment #21
DamienMcKenna@Didier Misson: I'm very happy to hear it :)