Jump to content

Pagina bianca in errore dopo conferma ordine di acquisto


Piero

Recommended Posts

Salve, utilizzo:

PrestaShop: 1.7.5.0

Informazioni sul server Linux #1 SMP Thu Dec 6 08:02:15 UTC 2018 x86_64

Versione software del server: Apache/2

Versione di PHP: 7.2.14

Limite di memoria: 128M

Tempo di esecuzione massimo: 30

Dimensione Max. dei file da caricare: 48M

non riesco a risolvere un problema: dopo la conferma dell'ordine di acquisto con obbligo di pagamento, col pagamento con Paypal tutto ok, col pagamento con bonifico bancario o in contrassegno, ottengo pagina bianca e in modalità debug, ottengo le seguenti pagine di errore:

(1/1) ContextErrorException

Notice: Undefined index: modules_dir

in 18f852c9e3833501a5ff6350f0d40b3d837449b7_2.file.hotinfo.tpl.php line 25
at content_5c52f22498ac17_49924929(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232
at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, null, null, 0)in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, true, false)in SmartyDevTemplate.php line 40
at SmartyDevTemplateCore->fetch()in Module.php line 2375
at ModuleCore->display('/home/ueqjwzri/domains/lirex.it/public_html/casa/modules/hotinfo/hotinfo.php', 'hotinfo.tpl')in hotinfo.php line 276
at hotinfo->hookheader(array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 5))in Hook.php line 966
at HookCore::coreCallHook(object(hotinfo), 'hookHeader', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 5))in Hook.php line 355
at HookCore::callHookOn(object(hotinfo), 'displayHeader', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 5))in Hook.php line 903
at HookCore::exec('displayHeader')in FrontController.php line 555
at FrontControllerCore->initContent()in OrderConfirmationController.php line 93
at OrderConfirmationControllerCore->initContent()in Controller.php line 281
at ControllerCore->run()in Dispatcher.php line 509
at DispatcherCore->dispatch()in index.php line 28

 

------------------------------------------------------------------------------------------------------------

 

(1/1) ContextErrorException

Warning: escapeshellcmd() has been disabled for security reasons

in MailTransport.php line 259
at Swift_Transport_MailTransport->_isShellSafe('[email protected]')in MailTransport.php line 288
at Swift_Transport_MailTransport->_formatExtraParams('-f%s', '[email protected]')in MailTransport.php line 176
at Swift_Transport_MailTransport->send(object(Swift_Message), array())in Mailer.php line 85
at Swift_Mailer->send(object(Swift_Message))in Mail.php line 586
at MailCore::send(1, 'preparation', '[casalirex] Preparazione in corso', array('{lastname}' => 'Noto', '{firstname}' => 'Monica', '{id_order}' => '136', '{order_name}' => 'WTMXGBOZF', '{total_paid}' => '7,00 €', '{shop_logo}' => 'cid:[email protected]', '{shop_name}' => 'casalirex', '{shop_url}' => 'https://www.casa.lirex.it/', '{my_account_url}' => 'https://www.casa.lirex.it/account', '{guest_tracking_url}' => 'https://www.casa.lirex.it/tracciatura-ospite', '{history_url}' => 'https://www.casa.lirex.it/cronologia-ordini', '{color}' => '#db3484'), '[email protected]', 'Monica Noto', '[email protected]', 'casalirex', null, null, '/home/ueqjwzri/domains/lirex.it/public_html/casa/themes/classic//mails/', false, 1)in OrderHistory.php line 546
at OrderHistoryCore->sendEmail(object(Order), array())in OrderHistory.php line 468
at OrderHistoryCore->addWithemail(true, array())in PaymentModule.php line 747
at PaymentModuleCore->validateOrder(1017, '3', 7.0, 'Pagamento in contrassegno', null, array(), null, false, '3397e738a89a0155fe6bf3790145b550')in validation.php line 57
at Ps_CashondeliveryValidationModuleFrontController->postProcess()in Controller.php line 270
at ControllerCore->run()in Dispatcher.php line 509
at DispatcherCore->dispatch()in index.php line 28

--------------------------------------------------------------------------------------------------------------------------

 

non so più cosa provare a fare per risolvere quesyto problema, per favore qualcino mi può dare un aiuto?

Grazie anticipatamente.

Piero.

 

 

Link to comment
Share on other sites

Ciao, ho trovato la variabile modules_dir. in questa riga:

<link rel="stylesheet" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['modules_dir']->value, ENT_QUOTES, 'UTF-8');?>

 

Cosa vuol dire?

Grazie.

Link to comment
Share on other sites

Si è alla riga 25, comunque tutto il file:

<?php
/* Smarty version 3.1.33, created on 2019-01-31 14:03:32
  from '/home/ueqjwzri/domains/lirex.it/public_html/casa/modules/hotinfo/hotinfo.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_5c52f22498ac17_49924929',
  'has_nocache_code' => false,
  'file_dependency' =>
  array (
    '18f852c9e3833501a5ff6350f0d40b3d837449b7' =>
    array (
      0 => '/home/ueqjwzri/domains/lirex.it/public_html/casa/modules/hotinfo/hotinfo.tpl',
      1 => 1546217466,
      2 => 'file',
    ),
  ),
  'includes' =>
  array (
  ),
),false)) {
function content_5c52f22498ac17_49924929 (Smarty_Internal_Template $_smarty_tpl) {
?><!-- Block HOTINFO module -->
<link rel="stylesheet" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['modules_dir']->value, ENT_QUOTES, 'UTF-8');?>
hotinfo/css/hotinfo.css"/>
<div class="hotinfo_top" align="center" style="text-align:center; background:#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['array']->value->bg_color, ENT_QUOTES, 'UTF-8');?>
; border-top:<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['array']->value->br_size, ENT_QUOTES, 'UTF-8');?>
px solid #<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['array']->value->br_color, ENT_QUOTES, 'UTF-8');?>
;">
    <table style="width:100%; height:<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['array']->value->height, ENT_QUOTES, 'UTF-8');?>
px; text-align:center;"><td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['array']->value->body, ENT_QUOTES, 'UTF-8');?>
</td></table>
</div>
<!-- /Block HOTINFO module --><?php }
}

 

Link to comment
Share on other sites

Ho sostituito così nel file:

?><!-- Block HOTINFO module -->
<link rel="stylesheet" href="/modules/hotinfo/ css/hotinfo.css"/>
hotinfo/css/hotinfo.css"/>
<div class="hotinfo_top" align="center" style="text-align:center; background:#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['array']->value->bg_color, ENT_QUOTES, 'UTF-8');?>
; border-top:<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['array']->value->br_size, ENT_QUOTES, 'UTF-8');?>
px solid #<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['array']->value->br_color, ENT_QUOTES, 'UTF-8');?>
;">
    <table style="width:100%; height:<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['array']->value->height, ENT_QUOTES, 'UTF-8');?>
px; text-align:center;"><td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['array']->value->body, ENT_QUOTES, 'UTF-8');?>
</td></table>
</div>
<!-- /Block HOTINFO module --><?php }
}

 

e dopo la conferma dell'ordine ho di nuovo una pagina bianca con il seguente errore in modalità debug:

 

 

(1/1) ContextErrorException

Notice: Undefined index: gaAnonymizeEnabled

in 7283dfbe5dd4f44ccb8e894c15d8d96146601370_2.file.ps_googleanalytics.tpl.php line 62
at content_5c52f184246011_70503667(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232
at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, null, null, 0)in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, true, false)in SmartyDevTemplate.php line 40
at SmartyDevTemplateCore->fetch()in Module.php line 2375
at ModuleCore->display('/home/ueqjwzri/domains/lirex.it/public_html/casa/modules/ps_googleanalytics/ps_googleanalytics.php', 'ps_googleanalytics.tpl')in ps_googleanalytics.php line 330
at Ps_Googleanalytics->hookdisplayHeader(array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 16))in Hook.php line 966
at HookCore::coreCallHook(object(Ps_Googleanalytics), 'hookdisplayHeader', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 16))in Hook.php line 351
at HookCore::callHookOn(object(Ps_Googleanalytics), 'displayHeader', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 16))in Hook.php line 903
at HookCore::exec('displayHeader')in FrontController.php line 555
at FrontControllerCore->initContent()in OrderConfirmationController.php line 93
at OrderConfirmationControllerCore->initContent()in Controller.php line 281
at ControllerCore->run()in Dispatcher.php line 509
at DispatcherCore->dispatch()in index.php line 28
Link to comment
Share on other sites

Alla ricerca della soluzione, ho provato a cancellare tutti i files e ricopiare quelli fatti come copia di sicurezza in passato e sicuramente funzionaanti in quel momento.

Ho provato così ed anche ripristinando vecchi backup del database, ma il problema è rimasto lo stesso!!

Quindi, tutto ciò non me lo so spiegare, cosa posso provare?

Grazie.

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

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...