Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-5775

Covers block: invalid attribute type


    • Icon: Bug Bug
    • Resolution: Released
    • Icon: Should have Should have
    • 2.45.3
    • None
    • 2
    • Block: Covers
    • Sprint #150

      On some older Covers blocks, a _doing_it_wrong is raised from rest_validate_value_from_schema, because of an invalid attribute type declared in class-covers.php. See https://github.com/greenpeace/planet4-plugin-gutenberg-blocks/blob/f7046210ab679ae0fb013c04d05ab5abfc0fcc39/classes/blocks/class-covers.php#L76

      Notice: rest_validate_value_from_schema was called incorrectly. The "type" schema keyword for can only be one of the built-in types: array, object, string, number, integer, boolean, and null.

      This seems to blocks the editor locally.

        1. Screenshot from 2020-12-07 12-00-38.png
          32 kB
          Florent Hernandez
        2. Screenshot from 2020-12-07 12-02-51.png
          16 kB
          Florent Hernandez

            fhernand Florent Hernandez
            fhernand Florent Hernandez
            0 Vote for this issue
            0 Start watching this issue