-
Bug
-
Resolution: Merged
-
Should have
-
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