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

Blocks report API throws an exception in some websites

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Merged
    • Icon: Should have Should have
    • 2.107.0
    • None
    • 3
    • Blocks (all)
    • neptune

      The Blocks report API endpoint is currently broken in some websites (eg. Africa).

      Locally we can see a more detailed exception log:

      Warning: vsprintf(): Too few arguments in /var/www/html/wp-includes/class-wpdb.php on line 1777 Warning: array_map(): Expected parameter 2 to be an array, null given in /var/www/html/wp-content/plugins/planet4-plugin-gutenberg-blocks/classes/search/class-patternsearch.php on line 124 Fatal error: Uncaught TypeError: Return value of P4GBKS\Search\PatternSearch::query_by_pattern_classname() must be of the type array, null returned in /var/www/html/wp-content/plugins/planet4-plugin-gutenberg-blocks/classes/search/class-patternsearch.php:124 Stack trace: #0 /var/www/html/wp-content/plugins/planet4-plugin-gutenberg-blocks/classes/search/class-patternsearch.php(46): P4GBKS\Search\PatternSearch->query_by_pattern_classname(Object(P4GBKS\Search\Pattern\Query\Parameters), Object(P4GBKS\Search\Pattern\PatternData), Object(P4GBKS\Search\Pattern\PatternData), Object(P4GBKS\Search\Pattern\PatternData), Object(P4GBKS\Search\Pattern\PatternData), Object(P4GBKS\Search\Pattern\PatternData), Object(P4GBKS\Search\Pattern\PatternData), Object(P4GBKS\Search\Pattern\PatternData), Object(P4GBKS\Search\Pattern\PatternData), Object(P4GBKS\Search\Pattern\PatternData), Object(P4GBKS\Search\Pattern\PatternData), Object(P4GBKS\Search\Pattern\PatternData), Object(P4GBKS\Search\Pattern\PatternData), Object(P4GBKS\Search\Pattern\Patt in /var/www/html/wp-content/plugins/planet4-plugin-gutenberg-blocks/classes/search/class-patternsearch.php on line 124
      

            sdeshmuk Sagar Deshmukh
            nroussos Nikos Roussos
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: