Error al crear un p...
 
Avisos
Vaciar todo

Error al crear un pedido en el backoffice

2 Mensajes
2 Usuarios
0 Likes
45 Visitas
yocasqui
(@yocasqui)
New Member
Topic starter
 

Buenas tardes, tengo prestashop 1.7.7.8 y me genera un error crear pedidos desde el backoffice, me sale el siuiente error:

Attempted to call an undefined method named "getPageName" of class "AdminController".

[SymfonyComponentDebugExceptionUndefinedMethodException 0]

En modo depuración me sale lo siguiente:

DEBUG20:39:09doctrineSELECT name FROM ps_module WHERE active = 1

INFO20:39:14phpUser Deprecated: Creating DoctrineORMMappingUnderscoreNamingStrategy 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 "SymfonyComponentHttpKernelDataCollectorDataCollectorInterface" without the "reset()" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class "CsaBundleGuzzleBundleDataCollectorGuzzleCollector".

CRITICAL20:39:17requestUncaught PHP Exception SymfonyComponentDebugExceptionUndefinedMethodException: "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);

Muchas gracias por vuestra ayuda

 
Respondido : 03/06/2022 9:47 pm
Josraso
(@josraso)
Prominent Member
 

Parece que el modulo an_productattributes es el causante del error, prueba a desactivarlo o bien desinstalarlo.


Telegram:@Josraso
Correo

 
Respondido : 05/06/2022 8:17 pm
Compartir: