Skip to content

SQLSTATE[42000] in 3.0.159  #1198

Closed
Closed
@jacmaes

Description

@jacmaes

Short description of the issue

The following lines:

echo $page->numChildren('level.name=suave');
echo $page->numChildren('level.name=medio');
echo $page->numChildren('level.name=fuerte');

work correctly in 3.0.155, but after upgrading to 3.0.159, I'm getting the following error:

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE (pages.parent_id=1470) AND (pages.status<1024) AND pages.templates_id IN' at line 5 (in /wire/core/WireDatabasePDO.php line 547)

  • ProcessWire version: 3.0.159
  • (Optional) PHP version: 7.4.6
  • (Optional) MySQL version: MariaDB on latest version of Plesk, Ubuntu 18.04.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions