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.
if add the robots meta tag, not can add node - server closed the connection.
Сhange widget to text field - everything fine, but default value equally "0 0 0 0 0 0". Now change only widget(/admin/structure/types/manage/{type}/fields/meta_robots/widget-type) to checkboxes - everything is fine and everything works as it should be.
Comments
Comment #1
davemybes CreditAttribution: davemybes commentedI'm not seeing this on my setup. Add the robots field works fine with new and existing nodes. What other tags do you have enabled (I enabled all)?
Comment #2
valthebaldComment #3
kratkar CreditAttribution: kratkar commentedUnable to recreate this problem in a new installed drupal, probably a problem with another module compatibility.
If will have opportunity to create a same site in drupal or will free time, try to find the cause.
But. If add a node, show warning:
Comment #4
nicanorflavier CreditAttribution: nicanorflavier commentedHi, it gives me the same error when creating a new node, if only I enabled the meta tag robots checkboxes.
I hope this helps to narrow down the said issue.
Comment #5
indigoxela CreditAttribution: indigoxela commentedHi, same problem here with meta tag robots checkboxes.
Warning: Invalid argument supplied for foreach () in form_type_checkboxes_value...
Error message goes away, when setting a default value for robots meta field.
The weird thing: the error does NOT come back, when removing the default value setting from this field.
Tested on two different fresh D7.15 installs with hardly any modules activated.
Before setting a default value, I tried the usual flush-flush-flush cache. It didn't help.
Another thing: as soon as the robots field (of a node) has any value (not only default), the problem is gone for this node. Even after the field value gets removed again.
Is the setting saved as string (or nothing) and suddenly turns into (and stays) an array, when touched?
Comment #5.0
indigoxela CreditAttribution: indigoxela commentedparser