500 error on Metatag field

Created on 23 January 2023, about 2 years ago
Updated 1 February 2023, about 2 years ago

Hello,

When I add the field Metatag to a content type to allow users modifying meta data, this cause 500 error on edit mode for this content type node item.

I've few debug info to provide apart this:
mod_fcgid: process /usr/bin/env(352384) exit(lifetime expired), terminated by calling exit(), return code: 0



Thanks for help or informations

πŸ’¬ Support request
Status

Active

Version

1.22

Component

Code

Created by

πŸ‡«πŸ‡·France aiphes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    That's weird - I'm sorry you're having this problem.

    What version of Drupal are you using? What version of PHP is used? Are there any relevant messages in the site logs (dblog)?

  • πŸ‡«πŸ‡·France aiphes

    Drupal 951 and 952, PHP 8.1.6
    No messages in dblog, nothing relevant in server logs. I did by comparison with my dev website modules (enabled/disabled) ;)

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    Could you please try setting the error reporting (admin/config/development/logging) to "All messages, with backtrace information" and see what it says?

  • πŸ‡«πŸ‡·France aiphes

    Done. No info displayed apart the 500 error. Nothing in watchdog. Make weeks I'm looking for clue to know what could be the source issue.

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    When the error is shown is the browser's URL the node/NID/edit page or is it the node's display page?

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    The other issues are too generic to be related to Metatag's code.

  • πŸ‡«πŸ‡·France aiphes

    it happen on edit page. When I disable the metatag field from edit form display, the edit mode come back as usual.

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    Ah, thanks for clarifying.

    What is PHP's memory limit set to? How many Metatag submodules have you enabled on the site?

  • πŸ‡«πŸ‡·France aiphes

    Here,

    PHP Version 8.1.6 (plus d'information) Limite de mΓ©moire 2G
    Metatag submodules:

    Metatag (metatag)                                                 Enabled    8.x-1.22  
      SEO             Metatag: App Links (metatag_app_links)                            Disabled   8.x-1.22  
      SEO             Metatag: Dublin Core (metatag_dc)                                 Enabled    8.x-1.22  
      SEO             Metatag: Dublin Core Advanced (metatag_dc_advanced)               Disabled   8.x-1.22  
      SEO             Metatag Extended Permissions (metatag_extended_perms)             Disabled   8.x-1.22  
      SEO             Metatag: Facebook (metatag_facebook)                              Enabled    8.x-1.22  
      SEO             Metatag: Favicons (metatag_favicons)                              Disabled   8.x-1.22  
      SEO             Metatag: Google Custom Search Engine (CSE) (metatag_google_cse)   Enabled    8.x-1.22  
      SEO             Metatag: Google Plus (metatag_google_plus)                        Disabled   8.x-1.22  
      SEO             Metatag: Hreflang (metatag_hreflang)                              Enabled    8.x-1.22  
      SEO             Metatag: Mobile & UI Adjustments (metatag_mobile)                 Enabled    8.x-1.22  
      SEO             Metatag: Open Graph (metatag_open_graph)                          Enabled    8.x-1.22  
      SEO             Metatag: Open Graph Products (metatag_open_graph_products)        Disabled   8.x-1.22  
      SEO             Metatag: Page Manager (metatag_page_manager)                      Disabled   8.x-1.22  
      SEO             Metatag: Pinterest (metatag_pinterest)                            Disabled   8.x-1.22  
      SEO             Metatag Custom Routes (Paths) (metatag_routes)                    Disabled   8.x-1.22  
      SEO             Metatag: Twitter Cards (metatag_twitter_cards)                    Enabled    8.x-1.22  
      SEO             Metatag: Verification (metatag_verification)                      Enabled    8.x-1.22  
      SEO             Metatag: Views (metatag_views)                                    Disabled   8.x-1.22  
      SEO             Schema.org Metatag Example (schema_article_example)               Disabled   8.x-2.4   
      SEO             Schema.org Metatag (schema_metatag)                               Enabled    8.x-2.4   
    
  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    How many of the Schema Metatag submodules are enabled? How many meta tags are listed on the reports page (admin/reports/metatag-plugins)? While the report doesn't show yet (#3336142), you can find out by running this line of JavaScript in your browser's console from the reports page: jQuery('#block-gin-content tbody h3').length;

  • πŸ‡«πŸ‡·France aiphes

    There are a lot !
    The page doesn't give number, only a (very long) list with details.

    JS give this:

    jQuery('#block-gin-content tbody h3').length;
    0

    This is the url: https://www.provence-formation.fr/

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    Doh. Sorry, I forgot I was testing locally with the Gin theme.

    Try this instead: jQuery('table h3').length;

    Also this will show how many (sub)modules are enabled in total: jQuery('table.sticky-enabled').length;

  • πŸ‡«πŸ‡·France aiphes

    Not better. :/

    jQuery('table.sticky-enabled').length;
    0
    jQuery('table h3').length;
    0
  • πŸ‡«πŸ‡·France aiphes

    Put back the form in the content type and no 500 on edit, but still there on viewing mode for authenticated. So I guess, another module put the mess. For example, the url rewriting doesn't work, and I can't check the box to make it automatic...another weird thing

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    What admin theme are you using?

    Honestly if you have a lot of Metatag submodules (including Schema Metatag ones) it's likely you're running into an out-of-memory error as it builds the field. πŸ“Œ Content forms are painfully slow if multiple sub-modules are enabled Needs work is related to this.

    You should use the settings page (admin/config/search/metatag/settings) and change which meta tag groups show up for each entity type in the "Entity type / Group Mapping" section.

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    I added a documentation page about this problem:

    Hopefully this helps.

  • πŸ‡«πŸ‡·France aiphes

    I'm using Claro for now, perhaps it helps ?
    After visiting the admin/config/search/metatag/settings , I unchecked some boxes for the incrimined content type.

Production build 0.71.5 2024