Jump to content
  • 0

PRESTA 1.7.7.1 zakładka Klienci na zapleczu error


Grzegorz

Question

Witam .

Mam taki problem. Coś jest nie halo z filtrami które się znajdują na tej stronie wpisałem w polu datę do i teraz nie mogę się w ogóle dostać się to tej strony. Otrzymuję taki wyjątek:
 

Notice: Undefined index: from

Exception

Logs 2

Stack Trace

Symfony\Component\Debug\Exception\ ContextErrorException


in src/Core/Grid/Query/CustomerQueryBuilder.php (line 213)

                continue;

            }

            if ('date_add' === $filterName) {

                $qb->andWhere('c.date_add >= :date_from AND c.date_add <= :date_to');

                $qb->setParameter('date_from', sprintf('%s 0:0:0', $filterValue['from']));

                $qb->setParameter('date_to', sprintf('%s 23:59:59', $filterValue['to']));

                if (isset($filterValue['from'])) {

                    $qb->andWhere('c.date_add >= :date_from');

                    $qb->setParameter('date_from', sprintf('%s 0:0:0', $filterValue['from']));


CustomerQueryBuilder->applyFilters(array('date_add' => array('to' => '2021-07-28')), object(QueryBuilder)) in src/Core/Grid/Query/CustomerQueryBuilder.php (line 132)


CustomerQueryBuilder->getCustomerQueryBuilder(object(CustomerFilters)) in src/Core/Grid/Query/CustomerQueryBuilder.php (line 79)


CustomerQueryBuilder->getSearchQueryBuilder(object(CustomerFilters)) in src/Core/Grid/Data/Factory/DoctrineGridDataFactory.php (line 87)


DoctrineGridDataFactory->getData(object(CustomerFilters)) in src/Core/Grid/Data/Factory/CustomerGridDataFactoryDecorator.php (line 75)


CustomerGridDataFactoryDecorator->getData(object(CustomerFilters)) in src/Core/Grid/GridFactory.php (line 90)


GridFactory->getGrid(object(CustomerFilters)) in src/PrestaShopBundle/Controller/Admin/Sell/Customer/CustomerController.php (line 99)


CustomerController->indexAction(object(Request), object(CustomerFilters)) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 151)


HttpKernel->handleRaw(object(Request), 1) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68)


HttpKernel->handle(object(Request), 1, false) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 200)


Kernel->handle(object(Request), 1, false) in drop_greg/index.php (line 82) 
     Exception Logs 2 Stack Trace 

Level 	Channel 	Message
DEBUG 14:11:43 	doctrine 	SELECT name FROM ps_module WHERE active = 1
DEBUG 14:11:43 	php 	Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
INFO 14:11:43 	request 	Matched route "admin_customers_index".
DEBUG 14:11:43 	security 	Read existing security token from the session.
DEBUG 14:11:43 	security 	User was reloaded from a user provider.
DEBUG 14:11:43 	php 	Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
INFO 14:11:43 	php 	User Deprecated: Creating Doctrine\ORM\Mapping\UnderscoreNamingStrategy without making it number aware is deprecated and will be removed in Doctrine ORM 3.0.
DEBUG 14:11:43 	php 	Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
DEBUG 14:11:43 	php 	Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
DEBUG 14:11:43 	doctrine 	SELECT t0.id AS id_1, t0.employee AS employee_2, t0.shop AS shop_3, t0.controller AS controller_4, t0.action AS action_5, t0.filter AS filter_6, t0.filter_id AS filter_id_7 FROM ps_admin_filter t0 WHERE t0.employee = ? AND t0.shop = ? AND t0.filter_id = ? LIMIT 1
DEBUG 14:11:43 	doctrine 	SELECT t0.id AS id_1, t0.employee AS employee_2, t0.shop AS shop_3, t0.controller AS controller_4, t0.action AS action_5, t0.filter AS filter_6, t0.filter_id AS filter_id_7 FROM ps_admin_filter t0 WHERE t0.employee = ? AND t0.shop = ? AND t0.filter_id = ? LIMIT 1
DEBUG 14:11:43 	php 	Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
WARNING 14:11:44 	translation 	Translation not found.
WARNING 14:11:44 	translation 	Translation not found.
WARNING 14:11:44 	translation 	Translation not found.
WARNING 14:11:44 	translation 	Translation not found.
DEBUG 14:11:44 	php 	Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
INFO 14:11:44 	php 	User Deprecated: Implementing "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface" without the "reset()" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class "Csa\Bundle\GuzzleBundle\DataCollector\GuzzleCollector".
CRITICAL 14:11:44 	php 	Uncaught Notice: Undefined index: from
CRITICAL 14:11:44 	request 	Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Notice: Undefined index: from" at /home/platne/lightgregor/public_html/dropshop/src/Core/Grid/Query/CustomerQueryBuilder.php line 213

 

Edited by Grzegorz (see edit history)
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...