- πΊπΈ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 theadmin/config/search/metatag/settings
, I unchecked some boxes for the incrimined content type.