kirubanidhi Posted July 26, 2017 Share Posted July 26, 2017 (edited) In local prestashop 96 times (notice) Undefined index: tracking_pixel_name" occurred."04 Jul 2017 00:53:30", File name: "/home2/prestashop/public_html/cache/smarty/compile/ea/3a/4a/ea3a4a19373c055a4152ffb87ac4daf60f97f8ff.file.product.tpl.php:36", "/home2/prestashop/public_html/cache/smarty/compile/ea/3a/4a/ea3a4a19373c055a4152ffb87ac4daf60f97f8ff.file.product.tpl.php: 54", Problem: "(Notice) Undefined index: tracking_pixel_name" File code: modules/facebookconversiontracking/views/templates/front/product.tpl {* * 2014-2016 ModMyPrestashop. * * LICENSE * You are not allowed to share this code and or files. All rights reserved Facebook Conversion Tracking - ModMyPrestashop * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade our products to newer * versions in the future. If you wish to customize our products for your * needs please contact us for more information. * * @author ModMyPrestashop <[email protected]> * @copyright 2014-2015 ModMyPrestashop * @license Facebook Conversion Tracking All rights reserved * International Registered Trademark & Property of ModMyPrestashop * * Version * 1.0 Initial Release *} {literal} <!-- BEGIN: Facebook Conversion Code for "{/literal}{$tracking_pixel_name|escape:'htmlall':'UTF-8'}{literal}" --> <script> fbq('track', 'ViewContent', { content_type: '{/literal}{$fbcontent_type|escape:'htmlall':'UTF-8'}{literal}', content_ids: ['{/literal}{$fbcontent_ids|escape:'htmlall':'UTF-8'}{literal}'], content_name: '{/literal}{$fbcontent_name|escape:'htmlall':'UTF-8'}{literal}', content_category: '{/literal}{$fbcontent_category|escape:'htmlall':'UTF-8'}{literal}', value: '{/literal}{$fbcontent_value|escape:'htmlall':'UTF-8'}{literal}', currency: '{/literal}{$fbcontent_currency|escape:'htmlall':'UTF-8'}{literal}' }); </script> <!-- END: Facebook Conversion Code for "{/literal}{$tracking_pixel_name|escape:'htmlall':'UTF-8'}{literal}" --> {/literal} /home2/prestashop/public_html/cache/smarty/compile/ea/3a/4a/ea3a4a19373c055a4152ffb87ac4daf60f97f8ff.file.product.tpl.php <?php/* Smarty version Smarty-3.1.14, created on 2017-02-17 09:18:26compiled from "/home2/prestshop/public_html/modules/facebookconversiontracking/views/templates/front/product.tpl" */?><?php/*%%SmartyHeaderCode:143806312258a70632a51422-66758733%%*/if (!defined('SMARTY_DIR')) exit('no direct access allowed');$_valid = $_smarty_tpl->decodeProperties(array( 'file_dependency' => array( 'ea3a4a19373c055a4152ffb87ac4daf60f97f8ff' => array( 0 => '/home2/prestashop/public_html/modules/facebookconversiontracking/views/templates/front/product.tpl', 1 => 1460474519, 2 => 'file' ) ), 'nocache_hash' => '143806312258a70632a51422-66758733', 'function' => array(), 'variables' => array( 'tracking_pixel_name' => 0, 'fbcontent_type' => 0, 'fbcontent_ids' => 0, 'fbcontent_name' => 0, 'fbcontent_category' => 0, 'fbcontent_value' => 0, 'fbcontent_currency' => 0 ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.14', 'unifunc' => 'content_58a70632a72f35_05238959'), false);/*/%%SmartyHeaderCode%%*/?><?phpif ($_valid && !is_callable('content_58a70632a72f35_05238959')) { function content_58a70632a72f35_05238959($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_escape')) include '/home2/prstashop/public_html/tools/smarty/plugins/modifier.escape.php';?>Line number : 36 <!-- BEGIN: Facebook Conversion Code for "<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['tracking_pixel_name']->value, 'htmlall', 'UTF-8');?>" --><script>fbq('track', 'ViewContent', { content_type: '<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['fbcontent_type']->value, 'htmlall', 'UTF-8');?>', content_ids: ['<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['fbcontent_ids']->value, 'htmlall', 'UTF-8');?>'], content_name: '<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['fbcontent_name']->value, 'htmlall', 'UTF-8');?>', content_category: '<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['fbcontent_category']->value, 'htmlall', 'UTF-8');?>', value: '<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['fbcontent_value']->value, 'htmlall', 'UTF-8');?>', currency: '<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['fbcontent_currency']->value, 'htmlall', 'UTF-8');?>'});</script>Line number : 54 <!-- END: Facebook Conversion Code for "<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['tracking_pixel_name']->value, 'htmlall', 'UTF-8');?>" --><?php }}?> how to resolve this problem Edited July 26, 2017 by kirubanidhi (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted July 26, 2017 Share Posted July 26, 2017 Disable the facebook conversion tracking module for now, it seems to be bugged Link to comment Share on other sites More sharing options...
kirubanidhi Posted July 26, 2017 Author Share Posted July 26, 2017 (edited) @nemops , I am using Facebook conversion tracking module version 1.0.5. Let me know why this module is bugged. how did you say Facebook conversion tracking module is bugged? Edited July 26, 2017 by kirubanidhi (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted July 28, 2017 Share Posted July 28, 2017 Cause it's not assigning this variable"(Notice) Undefined index: tracking_pixel_name" 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