Jump to content

$this->display_header = false; Throws Error since 1.6.1.0


Chrims

Recommended Posts

Hello,

 

my modul makes very intense work and needs a lot of memory.

So I disabled display_header and display_footer in the controllers constructor

	public function __construct()
	{
		$this->controllername = '';
		$this->modulname = '';
		$this->display = 'view';
		$this->meta_title = $this->l('');
		$this->bootstrap = true;

			$this->display_header = false;
			$this->display_footer = false;

		parent::__construct();

	}

Everything went fine. But since version 1.6.1.0 of prestashop i got following errors:

<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 lt-ie6 " lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8 ie7" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9 ie8" lang="en"> <![endif]-->
<!--[if gt IE 8]> <html lang="fr" class="no-js ie9" lang="en"> <![endif]-->
<html lang="<br />
<b>Notice</b>:  Undefined index: iso in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>83</b><br />
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>83</b><br />
">
<head>
	<meta charset="utf-8">

	<meta name="viewport" content="width=device-width, initial-scale=0.75, maximum-scale=0.75, user-scalable=0">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<link rel="icon" type="image/x-icon" href="<br />
<b>Notice</b>:  Undefined index: img_dir in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>90</b><br />
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>90</b><br />
favicon.ico" />
	<link rel="apple-touch-icon" href="<br />
<b>Notice</b>:  Undefined index: img_dir in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>92</b><br />
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>92</b><br />
app_icon.png" />

	<meta name="robots" content="NOFOLLOW, NOINDEX">
	<title>(0.00%) Importer - in progress... • <br />
<b>Notice</b>:  Undefined index: shop_name in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>97</b><br />
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>97</b><br />
</title>
		<script type="text/javascript">
		var help_class_name = '<br />
<b>Notice</b>:  Undefined index: controller_name in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>101</b><br />
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>101</b><br />
';
		var iso_user = '<br />
<b>Notice</b>:  Undefined index: iso_user in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>103</b><br />
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>103</b><br />
';
		var full_language_code = '<br />
<b>Notice</b>:  Undefined index: full_language_code in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>105</b><br />
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>105</b><br />
';
		var country_iso_code = '<br />
<b>Notice</b>:  Undefined index: country_iso_code in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>107</b><br />
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>107</b><br />
';
		var _PS_VERSION_ = '1.6.1.0';
		var roundMode = <br />
<b>Notice</b>:  Undefined index: round_mode in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>111</b><br />
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>111</b><br />
0;
		var youEditFieldFor = '';
		var autorefresh_notifications = '<br />
<b>Notice</b>:  Undefined index: autorefresh_notifications in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>129</b><br />
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>129</b><br />
';
		var new_order_msg = 'È stato effettuato un nuovo ordine nel tuo negozio.';
		var order_number_msg = 'Numero d\'ordine ';
		var total_msg = 'Totale ';
		var from_msg = 'Da ';
		var see_order_msg = 'Vedi quest\'ordine';
		var new_customer_msg = 'Un nuovo cliente si è registrato nel tuo negozio.';
		var customer_name_msg = 'Nome cliente ';
		var new_msg = 'Al tuo negozio è stato inviato un nuovo messaggio.';
		var see_msg = 'Leggi questo messaggio';
		var token = '0f1beaf2d4a396b261686fc0d00ba8e3';
		var token_admin_orders = '9f4958a88aa3f5e048d67374d353dc4f';
		var token_admin_customers = 'c7f47b19d62ac6c737b5e37a737d6dac';
		var token_admin_customer_threads = '1a7acea5a5905a081ac81f49d33bfcf2';
		var currentIndex = '<br />
<b>Notice</b>:  Undefined index: currentIndex in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>157</b><br />
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>157</b><br />
';
		var employee_token = '706bb03983e15ca335d4d3a26ebb5e30';
		var choose_language_translate = 'Scegli lingua';
		var default_language = '<br />
<b>Notice</b>:  Undefined index: default_language in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>163</b><br />
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>163</b><br />
0';
		var admin_modules_link = '<br />
<b>Notice</b>:  Undefined index: link in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>165</b><br />
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>165</b><br />
<br />
<b>Fatal error</b>:  Call to a member function getAdminLink() on a non-object in <b>/home/user343/public_html/cache/smarty/compile/32/9b/c0/329bc0df84c3ab5fc9920b35df05c0b5ba6063f1.file.header.tpl.php</b> on line <b>165</b><br />

The page is blank. I can only read the errors in the sourcecode.

 

Its from a customers shop.

When I try it with a fresh demo installation these errors dont come up.

Could it be that an upgrade from 1.6.0.14 -> 1.6.1.0 causes the errors?

 

When i set display_header = true; the errors disappear.

 

Thanks

Edited by Chrims (see edit history)
  • Like 1
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...