Details
-
Bug
-
Resolution: Duplicate
-
High
-
None
-
2013.07, 2013.09, 2014.03
-
php 5.3.x
Description
It seems there is invalid arguments passed through the CriterionLogicalAnd constructor for the copySubtree method of the location service.
line 26:
use eZ\Publish\API\Repository\Values\Content\Query\Criterion\LogicalAnd as CriterionLogicalAnd;
line 143:
$query = new Query( array( 'limit' => 0, 'filter' => new CriterionLogicalAnd( new CriterionSubtree( $loadedSubtree->pathString ), new CriterionLogicalNot( $contentReadCriterion ) ) ) );
If we check to the LogicalAnd criterion class:
https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/API/Repository/Values/Content/Query/Criterion/LogicalAnd.php
and the LogicalOperator criterion class:
https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/API/Repository/Values/Content/Query/Criterion/LogicalOperator.php
We can see that the constructor attemps an array as a first argument.
In the location service we put two arguments (CriterionSubtree and CriterionLogicalNot).
The consequence, for some case we get the current error:
PHP Catchable fatal error: Argument 1 passed to eZ\\Publish\\API\\Repository\\Values\\Content\\Query\\Criterion
LogicalOperator::__construct() must be an array
Attachments
Issue Links
- duplicates
-
EZP-23578 Fatal error in LocationService copy/move when content/read has limitations
- Closed