yocasqui Posted June 3, 2022 Share Posted June 3, 2022 Buenas tardes, no puedo generar pedidos manuales en el backoffice desde que actualizé a 1.7.7.8, hasta ahora no le había dado importancia pero empiezo a necesitarlo, me genera este error: Attempted to call an undefined method named "getPageName" of class "AdminController". [Symfony\Component\Debug\Exception\UndefinedMethodException 0] Alguien me podría ayudar¿? Link to comment Share on other sites More sharing options...
yocasqui Posted June 3, 2022 Author Share Posted June 3, 2022 Al poner el modulo depuración me sale la siguiente info: DEBUG20:39:09doctrineSELECT name FROM ps_module WHERE active = 1 INFO20:39:14phpUser Deprecated: Creating Doctrine\ORM\Mapping\UnderscoreNamingStrategy without making it number aware is deprecated and will be removed in Doctrine ORM 3.0. INFO20:39:14requestMatched route "admin_orders_place". DEBUG20:39:14securityRead existing security token from the session. DEBUG20:39:14securityUser was reloaded from a user provider. WARNING20:39:15translationTranslation not found. WARNING20:39:16translationTranslation not found. WARNING20:39:16translationTranslation not found. WARNING20:39:16translationTranslation not found. WARNING20:39:16translationTranslation not found. WARNING20:39:16translationTranslation not found. WARNING20:39:16translationTranslation not found. WARNING20:39:16translationTranslation not found. DEBUG20:39:17doctrine"START TRANSACTION" DEBUG20:39:17doctrineINSERT INTO ps_stock_mvt (id_stock, id_order, id_supply_order, id_stock_mvt_reason, id_employee, employee_lastname, employee_firstname, physical_quantity, date_add, sign, price_te, last_wa, current_wa, referer) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) DEBUG20:39:17doctrine"COMMIT" WARNING20:39:17translationTranslation not found. WARNING20:39:17translationTranslation not found. CRITICAL20:39:17phpCall to undefined method AdminController::getPageName() INFO20:39:17phpUser 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". CRITICAL20:39:17requestUncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedMethodException: "Attempted to call an undefined method named "getPageName" of class "AdminController"." at /home/q149118/public_html/modules/an_productattributes/an_productattributes.php line 472 in modules/an_productattributes/an_productattributes.php (line 472) return $this->display(__FILE__, 'views/templates/front/js_header.tpl'); } public function hookDisplayProductPriceBlock($params) { $pageName = $this->context->controller->getPageName(); // На будущее, может реализую проверку if ($params['type'] == 'weight' && !isset($params['hook_origin'])){ $productObj = new Product($params['product']['id_product']); $product = $this->productPrepare($productObj); Link to comment Share on other sites More sharing options...
SAKSCM Posted June 4, 2022 Share Posted June 4, 2022 Hola, Que version de php tienes? Para esa versión de prestashop deberías tener la 7.3 Un saludo Link to comment Share on other sites More sharing options...
yocasqui Posted June 5, 2022 Author Share Posted June 5, 2022 Hola, tengo la 7.3 Link to comment Share on other sites More sharing options...
SAKSCM Posted June 5, 2022 Share Posted June 5, 2022 Hola, El caso es que el error a veces parece de base de datos a veces de archivo... Te digo lo que probaría yo así sin saber mucho más. Prueba a renombrar las carpetas de admin, classes y controllers y meter las carpetas de una instalacion de prestashop de la misma versión borra cache y prueba de nuevo. Si el error es el mismo se me ocurren dos cosas 1. Puede ser que en algún momento en la versión previa tuvieras algún módulo o programacion a media para tener alguna opción extra en los clientes / productos / pedidos? 2. Si no, que la base de datos no haya actualizado correctamente cuando hiciste el update... Te dio algún error? Un saludo. Link to comment Share on other sites More sharing options...
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 accountSign in
Already have an account? Sign in here.
Sign In Now