Problem/Motivation

I am seeing this error appearing in the logs after accessing this path. /burndown/project

The person getting the error does not have access to that rout so I am guessing it is coming from the breadcrumb being built for a path

Deprecated function: addcslashes(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\Core\Database\Connection->escapeLike() (line 1089 of /web/core/lib/Drupal/Core/Database/Connection.php)
#0 /web/core/includes/bootstrap.inc(104): _drupal_error_handler_real()
#1 [internal function]: _drupal_error_handler()
#2 /web/core/lib/Drupal/Core/Database/Connection.php(1089): addcslashes()
#3 /web/core/lib/Drupal/Core/Database/Query/Select.php(428): Drupal\Core\Database\Connection->escapeLike()
#4 /web/core/lib/Drupal/Core/Entity/Query/Sql/Condition.php(128): Drupal\Core\Database\Query\Select->escapeLike()
#5 /web/core/lib/Drupal/Core/Entity/Query/Sql/Condition.php(73): Drupal\Core\Entity\Query\Sql\Condition::translateCondition()
#6 /web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php(193): Drupal\Core\Entity\Query\Sql\Condition->compile()
#7 /web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php(82): Drupal\Core\Entity\Query\Sql\Query->compile()
#8/web/modules/contrib/burndown/src/Entity/Project.php(95): Drupal\Core\Entity\Query\Sql\Query->execute()
#9 /web/modules/contrib/burndown/src/Controller/BoardController.php(85): Drupal\burndown\Entity\Project::loadFromShortcode()

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork burndown-3611738

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

swirt created an issue. See original summary.

swirt’s picture

I am also seeing it related to adding some menu items below the burndown menu

/admin/structure/menu/manage/admin
admin/structure/menu/manage/admin/add?parent=burndown.dashboard&destination=/admin/structure/menu/manage/admin

swirt’s picture

The bit in common is the call to loadFromShortcode().

swirt’s picture

Status: Active » Needs review

This should fix it.

  • swirt committed e87efd5b on 1.0.x
    fix #3611738 Guard against empty query.
    
jeremylichtman’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

jeremylichtman’s picture

Status: Fixed » Closed (fixed)

Released on 1.0.69.