Jump to content

Error Smarty


Recommended Posts

I have error log with smarty, undefined index at line 157,69,70,71,72,109,110 in file smarty_internal_templatebase.php. And site can not display pattern same CSS error. How can i fix it ? Thanks. 

Notice: Undefined index: grid_size_lg in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 69 
Notice: Undefined index: grid_size_md in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 70 
Notice: Undefined index: grid_size_sm in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 71 
Notice: Undefined index: grid_size_ms in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 72 
Notice: Undefined index: ajax_popup in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 109 
Notice: Undefined index: productlist_view in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 110
Edited by anonymous_itop (see edit history)
Link to comment
Share on other sites

 

I have error log with smarty, undefined index at line 157,69,70,71,72,109,110 in file smarty_internal_templatebase.php. And site can not display pattern same CSS error. How can i fix it ? Thanks. 

Notice: Undefined index: grid_size_lg in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 69 
Notice: Undefined index: grid_size_md in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 70 
Notice: Undefined index: grid_size_sm in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 71 
Notice: Undefined index: grid_size_ms in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 72 
Notice: Undefined index: ajax_popup in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 109 
Notice: Undefined index: productlist_view in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 110

У меня то же самое, что с этим делать?

Link to comment
Share on other sites

  • 2 weeks later...

My site also start acting strange

my isp upgraded server php and mysq (PHP version: 5.4.32,MySQL version: 5.5.37-cll,Server software version: Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4, prestashop 1.6.0.9) after that I decided to di fresh install, but strange error on site stays

public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 102

public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 108

public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 132

public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 196

some of them in BO most in FO.

any idea?

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

  • 3 weeks later...

New to Prestashop, never had used it although I develop websites for more than 10 years.

 

I always prefered Joomla w/ Virtuemart or WordPress w/ WooCommerce. Since I have now a partner who has a ecommerce website for some time now and he is using Prestashop, I will keep it like that.

 

So, after this short introduction, I must say that I had never so many problems and errors before with any other software as I am having with Prestashop... :(

 

Maybe bad luck, maybe lack of knowledge, maybe a lot of things all together, but I don't consider myself a noob at this and I solved all problems I faced so far. BUT... (there is always a "but"), this problem I couldn't solve even replacing smarty from that specific version 1.6.0.6

 

As far as I could find on my short Google searches, it seems to be a recent problem yet with no solution.

 

This happens only in "Order" screen and I haven't even tested if this have any effect whatsoever while ordering...

 

oh man, I am so pissed with Prestashop right now and I am not even close to finish!

Link to comment
Share on other sites

When my shopping cart is empty, it appears this:

Your shopping cart contains:
Notice: Undefined index: productNumber in /home/lenteseo/dev/cache/smarty/compile/ff/f1/3a/fff13a1de5db569bd655a045cd677e8709b31a0c.file.shopping-cart.tpl.php on line 134

Notice: Trying to get property of non-object in /home/lenteseo/dev/cache/smarty/compile/ff/f1/3a/fff13a1de5db569bd655a045cd677e8709b31a0c.file.shopping-cart.tpl.php on line 134

Notice: Undefined index: productNumber in /home/lenteseo/dev/cache/smarty/compile/ff/f1/3a/fff13a1de5db569bd655a045cd677e8709b31a0c.file.shopping-cart.tpl.php on line 135

Notice: Trying to get property of non-object in /home/lenteseo/dev/cache/smarty/compile/ff/f1/3a/fff13a1de5db569bd655a045cd677e8709b31a0c.file.shopping-cart.tpl.php on line 135
products

And yes, I already cleaned cache from admin panel and also manually from FTP, nothing works and error is always the same!

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

My site also start acting strange

my isp upgraded server php and mysq (PHP version: 5.4.32,MySQL version: 5.5.37-cll,Server software version: Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4, prestashop 1.6.0.9) after that I decided to di fresh install, but strange error on site stays

public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 102

public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 108

public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 132

public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 196

some of them in BO most in FO.

any idea?

 

Hi,

 

I have me too this error when try to export orders with standard button with the new PS 1.6.9.

 

With the previous version the function export worked correcly.

 

Did you fix it?

 

Thanks

Angela

Link to comment
Share on other sites

Hi,

 

Please, what are the dir of files to replace?

 

thanks

:)

 

On the main root find the "Tools" dir, then the "Smarty" dir and then the "sysplugins" dir. I replaced everything there with the same files from the 1.6.0.6 version and problem solved.

 

Exact path: .../tools/smarty/sysplugins

  • Like 1
Link to comment
Share on other sites

On the main root find the "Tools" dir, then the "Smarty" dir and then the "sysplugins" dir. I replaced everything there with the same files from the 1.6.0.6 version and problem solved.

 

Exact path: .../tools/smarty/sysplugins

Many thanks,

 

but unfortunately I have again error:

 

This is now the error when i try to export orders : 

21-Oct-2014 18:06:16 Europe/Rome] PHP Fatal error:  Call to a member function getAdminLink() on a non-object in mysite/cache/smarty/compile/06/ba/3b/06ba3bb0b0f4141c8ba4fe682fcb4593366083ac.file._print_pdf_icon.tpl.php on line 34

 

any idea?

 

thanks

angela

Link to comment
Share on other sites

Many thanks,

 

but unfortunately I have again error:

 

This is now the error when i try to export orders : 

21-Oct-2014 18:06:16 Europe/Rome] PHP Fatal error:  Call to a member function getAdminLink() on a non-object in mysite/cache/smarty/compile/06/ba/3b/06ba3bb0b0f4141c8ba4fe682fcb4593366083ac.file._print_pdf_icon.tpl.php on line 34

 

any idea?

 

thanks

angela

 

Go to your public_html, open the "cache" directory and then the "smarty" directory. Then rename the "compile" directory to "compile_' and try again.

Link to comment
Share on other sites

I had done all these things and I keep ALWAYS receiving the same errors, again and again... :(

 

Your shopping cart contains:
Notice: Undefined index: productNumber in /home/host/dev/cache/smarty/compile/ff/f1/3a/fff13a1de5db569bd655a045cd677e8709b31a0c.file.shopping-cart.tpl.php on line 134

Notice: Trying to get property of non-object in /home/host/dev/cache/smarty/compile/ff/f1/3a/fff13a1de5db569bd655a045cd677e8709b31a0c.file.shopping-cart.tpl.php on line 134

Notice: Undefined index: productNumber in /home/host/dev/cache/smarty/compile/ff/f1/3a/fff13a1de5db569bd655a045cd677e8709b31a0c.file.shopping-cart.tpl.php on line 135

Notice: Trying to get property of non-object in /home/host/dev/cache/smarty/compile/ff/f1/3a/fff13a1de5db569bd655a045cd677e8709b31a0c.file.shopping-cart.tpl.php on line 135
products

 

EDIT:

This happens only when my shopping cart is empty...

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

@plima (make sure to post new topics for your questions)
 
do you have actual issue , i.e. cart problems?
 
IF NOT:
------

turn off prestashop error reporting..these are just notices...

having prestashop display errors/noices etc. turned on can lead to unexpected problems.

  • Like 1
Link to comment
Share on other sites

 

@plima (make sure to post new topics for your questions)
 
do you have actual issue , i.e. cart problems?
 
IF NOT:
------

turn off prestashop error reporting..these are just notices...

having prestashop display errors/noices etc. turned on can lead to unexpected problems.

 

 

Oh I see! Since I'm using Prestashop 1.6 I went to "config/defines.inc.php" and saw this:

 

define('_PS_MODE_DEV_', true);

 

Then I saw this bellow:

 

if (_PS_MODE_DEV_){

    @ini_set('display_errors', 'on');

    @error_reporting(E_ALL | E_STRICT);

    define('_PS_DEBUG_SQL_', true);

}else{

    @ini_set('display_errors', 'off');

    define('_PS_DEBUG_SQL_', false);

}

 

And everything makes sense to me now. :)

 

Thank you for your help.

Edited by plima (see edit history)
  • Like 3
Link to comment
Share on other sites

  • 3 months later...

Hello,

 

I'm getting similar errors as in this post.

 

 Notice on line 64 in file /home/<homedir>/public_html/<prestadir>/cache/smarty/compile/41/a8/b0/41a8b0b9fa92fc88d107c355d1994bc74eb5c887.file.content.tpl.php

[8] Undefined index: nbErrors

Notice on line 64 in file /home/<homedir>/public_html/<prestadir>/cache/smarty/compile/41/a8/b0/41a8b0b9fa92fc88d107c355d1994bc74eb5c887.file.content.tpl.php
[8] Trying to get property of non-object

 

PS 1.6.0.9

No major changes. 

Debug mode shows below error when I go to back office sign in page.

I have cleared cache, disabled all performance options, cleared smarty cache manually still no luck.

Also copied all contents of ..../tools/smarty/ from a backup 1.6.0.9 fresh installation, still same error.

 

Please help as my production server is hit :(

 

post-874455-0-33932800-1423507111_thumb.png

post-874455-0-36622200-1423507113_thumb.png

Link to comment
Share on other sites

  • 1 month later...

I got a similar problem after upgrading to 1.6.0.14 (from 1.6.0.6). It happens when I access any product editor page in BO.

PHP Fatal error:  Call to undefined method Product::resolveBoMinQty() in ~/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 714

While in inspect element I get:

ReferenceError: Can't find variable: $

I tried to follow your advice to copy the /tools/smarty/sysplugins/ content of the previous version, but the ReferenceError remains and in error_log I get:

PHP Fatal error:  Call to undefined method Product::resolveBoMinQty() in ~/public_html/cache/smarty/compile/94/e7/cf/94e7cf9f45c8beb6b12f883571fc251a495ec901.file.form.tpl.php on line 714

Did anybody of you manage to solve this issue?

 

Thanks

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

  • 2 weeks later...

I am using 1.6.0.14 and standard theme, I got the same error when showing the product's reference number. 

tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code
I have tried disable cache, rename smarty/compile folder ... still get the same error. But this is not fatal...
For other parts, it seems normal !
 
Thanks in advance.
Link to comment
Share on other sites

I have this error:

 PHP Notice:  Undefined index: customization_quantity in /var/www/prestashop/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 60, referer: http://multidenda.gara.net/prestashop/es/module/bankwire/payment

And this is the line 157 in smarty_internal_templatebase.php:

eval("?>" . $code);

IIn my case I solved this error when closing the php tag ?> in ParentOrderController.php. 

Link to comment
Share on other sites

I have this error:

 PHP Notice:  Undefined index: customization_quantity in /var/www/prestashop/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 60, referer: http://multidenda.gara.net/prestashop/es/module/bankwire/payment

And this is the line 157 in smarty_internal_templatebase.php:

eval("?>" . $code);

IIn my case I solved this error when closing the php tag ?> in ParentOrderController.php. 

Thanks.

 

In my case, cache/smarty/compile/c8/5e/3d/c85e3d722f1d7672a0cd389f3851215b87d1b79f.file.product-list.tpl.cache.php on line 199

I try to find it in product-list.tpl but the file do not require  ?>...

 

Any tips  ?

Link to comment
Share on other sites

Thanks.

 

In my case, cache/smarty/compile/c8/5e/3d/c85e3d722f1d7672a0cd389f3851215b87d1b79f.file.product-list.tpl.cache.php on line 199

I try to find it in product-list.tpl but the file do not require  ?>...

 

Any tips  ?

Finally, I fixed it but the solution  does not relate to "?>".

 

Summary: I wanted to display product.reference to product, bestselling, popular block. But, product.reference has not been retrieved from SQL. Finally, I added them back (with this thread https://www.prestashop.com/forums/topic/437169-product-reference-in-product-list-prestashop-16-again/?do=findComment&comment=2031335). 

Error "eval("?>" . $code);" no longer exist. 

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

To solve the Eval error,

1. try put the cache in system files, not mysql (clear cache)

2. if not solve, use system files cache, and use php 5.3

 

I get this erros in php 5.4, with modules that using clearcache function and when enable the mysql in cache.

 

Thanks

Mauro

Link to comment
Share on other sites

  • 1 month later...

Error eval()'d is not generated by standard files Prestashop, but by a nonstandard module - try to disable one by one active modules that are not signed by PrestaShop. One of the modules not properly used the php tags <? ?>

After identifying the module that generates the problem, check in yours code the tags PHP (<?php and ?>)

Link to comment
Share on other sites

  • 2 months later...

Hi to All,

 

When i am connecting to payu india i am geting this error how to solve this i am using prestashop 1.6.0.9+

 

Notice: Undefined index: is_article in /home/burj/public_html/include/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 58

Notice: Trying to get property of non-object in /home/burj/public_html/include/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 58

 

 

Thanks

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 weeks later...
  • 2 months later...

I have the same sort of error, just started. No updated made, no modules changed from when it worked without problem. I cleared the cache and cleaned the database, but no change. It happens when I go to an order page, then a list of 11 errors appears, all in the form of:

 

Notice on line 42 in file /homepages/36/ [deleted part of address relating to htdocs in case this is a security issue] /cache/smarty/compile/30/eb/86/30eb86fc5c265ec97be9a114bc59fcb0126bac91.file.adminOrder.tpl.php
[8] Undefined index: ipAddress

 

In common is adminOrder.tpl.php but the final part (here as ipAddress) changes, like 'latitude' and 'timezone' with different line numbers.

 

Some orders work fine, others have this behaviour but appear to otherwise work. I do not know enough of how to start to fix this; I do not understand much of coding. It never happened before with a working site. What can I try to fix this?

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...

Hi,

I have same error when I try to open new order in my BO (PS 1.6.0.9.). Strange is the order is without any product and without status. The payment arrived to paypal, but the order in BO doesnt have even "awaiting payment" status or any status at all......

 

It will happend randomly. Some order is OK, some ends in this weird condition with no products inside the order.

 

Notice on row 120 in file /web/shop/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code
[8] Trying to get property of non-object
 
Notice on row 361 in file /web/shop/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code
[8] Trying to get property of non-object
Link to comment
Share on other sites

 

Hi,

I have same error when I try to open new order in my BO (PS 1.6.0.9.). Strange is the order is without any product and without status. The payment arrived to paypal, but the order in BO doesnt have even "awaiting payment" status or any status at all......

 

It will happend randomly. Some order is OK, some ends in this weird condition with no products inside the order.

 

Notice on row 120 in file /web/shop/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code
[8] Trying to get property of non-object
 
Notice on row 361 in file /web/shop/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code
[8] Trying to get property of non-object

 

 

One observation - customer told me it was after he paid on paypal. He should return to my store but he saw only white page with some errors... strange is there is nothing in error log of the actual hsoting service on that time.

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

I've installed prestashop 1.6.1.4 and in error_log file on host, i'm getting these errors:

PHP Notice:  Undefined index: homeSize in /home/user/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 75
PHP Notice:  Trying to get property of non-object in /home/user/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 75

how can I fix this?

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

  • 2 weeks later...
  • 4 weeks later...

Hi,

I have similar problem with my e-commerce

Notice: Trying to get property of non-object in /home/salonsho/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 124

Notice: Undefined index: PTS_SKIN_DEFAULT in /home/salonsho/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 129

Notice: Trying to get property of non-object in /home/salonsho/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 129

Notice: Undefined index: PTS_LANG_RTL in /home/salonsho/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 136

When access  from the mobile device...

Prestashop Version 1.6.0.13

php 5.3.29

 

I guess that is caused with the database....

Can you tell me in which tables in the database are stored information that can be associated with this error?

 

Please ASAP help!

post-815230-0-31352000-1458235025_thumb.png

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

  • 5 months later...

Hello,I use prestashop 1.61.2 and I use multishop option
I duplicate the theme to customize it for each shop
but when I enable the duplicated shop I have this error in the front office.I was have 500 errors but when I enable define('_PS_MODE_DEV_', true); I got this error
I am using a prenium theme

Fatal error: Class 'OvicLayoutControl' not found in tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 62

Any idea please

Link to comment
Share on other sites

I have disabled all plugins and I also have tha same problem so I enable them one by one and I got this error:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes) in/srv/data/web/vhosts/www.nevadalove.paris/htdocs/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 188

 

on line 188: I have this :

 

$_template->properties['unifunc']($_template);

Link to comment
Share on other sites

  • 1 month later...

I had this issue after migrating to a new server. I moved to a dedicated server with twice the horsepower and the public facing side of the site was running 20 second load times, and super high CGI CPU.  Running on IIS,  you need to update all the file/folder permissions.  Ensure your IIS user has read, write and modify permission.  The modify was the ticket as PS was not able to delete certain file.  

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
  • 2 months later...

My site also start acting strange

my isp upgraded server php and mysq (PHP version: 5.4.32,MySQL version: 5.5.37-cll,Server software version: Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4, prestashop 1.6.0.9) after that I decided to di fresh install, but strange error on site stays

public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 102

public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 108

public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 132

public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 196

some of them in BO most in FO.

any idea?

 

 

ok, a really old post. I just received a similar error after migrating to php7, centos 7. So a quick compare of php ini indicated the new server memory limit was too low. Increased from the 32M set during server build to 200M and the errors went away.

Link to comment
Share on other sites

  • 1 month later...

i have problem  on PS 1.7 maybe some one can help me?

 

ContextErrorException in 6ce08f6ef210ea2912f5994301aa4e1a1abcda68.file.product.tpl.php line 554:Notice: Undefined index: category
  1. in 6ce08f6ef210ea2912f5994301aa4e1a1abcda68.file.product.tpl.php line 554
  2. at ErrorHandler->handleError('8', 'Undefined index: category', '/home/mole24/domains/testas.mobile24.lt/public_html/app/cache/dev/smarty/compile/layouts_layout_right_column_tpl/6c/e0/8f/6ce08f6ef210ea2912f5994301aa4e1a1abcda68.file.product.tpl.php', '554', array('_smarty_tpl' => object(Smarty_Dev_Template), '_tpl_stack' => array(), '_from' => array())) in 6ce08f6ef210ea2912f5994301aa4e1a1abcda68.file.product.tpl.php line 554
  3. at content_5904cc51d0d498_52052731(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php line 188
  4. at Smarty_Internal_TemplateBase->fetch('catalog/product.tpl', null, 'layouts/layout-right-column.tpl', object(SmartyDev), falsetruefalse) in SmartyDev.php line 41
  5. at SmartyDev->fetch('catalog/product.tpl', null, 'layouts/layout-right-column.tpl') in FrontController.php line 660
  6. at FrontControllerCore->smartyOutputContent('catalog/product.tpl') in FrontController.php line 644
  7. at FrontControllerCore->display() in Controller.php line 225
  8. at ControllerCore->run() in Dispatcher.php line 369
  9. at DispatcherCore->dispatch() in index.php line 28

 

Link to comment
Share on other sites

  • 2 months later...

 Notice: Undefined index: hazmat_fees in /var/www/html/cy_prestashop/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 384

 

Notice: Undefined index: poison_fees in /var/www/html/cy_prestashop/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 398

 

Notice: Undefined index: refrigerated_fees in /var/www/html/cy_prestashop/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 412

 

How to resolve this problem. I am using prestashop version 1.6.1.15

Link to comment
Share on other sites

PrestaShop doesn't have $hazmat_fees, $poison_fees or $refrigerated_fees variables, so you must have installed a third-party module that creates these variables. Find that module and contact the developer of the module for support.

Link to comment
Share on other sites

  • 4 months later...

I have same kind of issue in my prestashop store. I have Prestashop 1.6..0.4 when i click the category so can't show a black page with this error "

This page isn’t working

www.apparelprime.com is currently unable to handle this request.

HTTP ERROR 500

"

Please help me. any solution?

 

category.png

Link to comment
Share on other sites

ContextErrorException en 4f4a0120120279100d12a6e9be1d212162eda7e3.file.login.tpl.php línea 36 :
Aviso: índice indefinido: tpl_dir
en 4f4a0120120279100d12a6e9be1d212162eda7e3.file.login.tpl.php línea 36
en ErrorHandler -> handleError ('8', 'Índice no definido: tpl_dir', 

a content_5a3309d23148a3_66186756 ( objeto ( Smarty_Custom_Template )) en la línea 188 de smarty_internal_templatebase.php
en Smarty_Internal_TemplateBase -> fetch ( objeto ( Smarty_Custom_Template ), nulo , nulo , nulo , falso , verdadero , falso ) en SmartyCustom.php línea 317
en Smarty_Custom_Template -> fetch () en Module.php línea 2241

en TrackingFront -> displayLogin () en stats.php línea 35

Me da este error al intentar acceder a la url de afiliados a traves del modulo TrackingFront

Alguna sugerencia?

Link to comment
Share on other sites

From the error message, it appears the problem is on line 33 (in PrestaShop v1.6.1.17) of modules/trackingfront/views/template/front/login.tpl:

{include file="$tpl_dir./errors.tpl"}

On your website, $tpl_dir is not defined, which is weird, since it should be defined on line 444 (in PrestaShop v1.6.1.17) of classes/FrontController.php:

            'tpl_dir'             => _PS_THEME_DIR_,

Are you trying to use the PrestaShop v1.6 tracking module in PrestaShop v1.7? That would explain this error, since the module does not support PrestaShop v1.7.

 

Link to comment
Share on other sites

8 minutes ago, rocky said:

Del mensaje de error, parece que el problema está en la línea 33 (en PrestaShop v1.6.1.17) de modules / trackingfront / views / template / front / login.tpl:

{include file = "$ tpl_dir./errors.tpl"}

En su sitio web, $ tpl_dir no está definido, lo cual es extraño, ya que debe definirse en la línea 444 (en PrestaShop v1.6.1.17) de clases / FrontController.php:

            'tpl_dir' => _PS_THEME_DIR_,

¿Está tratando de usar el módulo de seguimiento PrestaShop v1.6 en PrestaShop v1.7? Eso explicaría este error, ya que el módulo no es compatible con PrestaShop v1.7.

 

ok, Thanks! I have Prestashop v1.7.

Link to comment
Share on other sites

  • 1 year later...

Hi,

I am getting this error:

Notice: Undefined index: quan in /home/savdanac/public_html/cache/smarty/compile/87/9e/e7/879ee725fa3cfb1d580be3d886242a16ff32cf72.file.product.tpl.php on line 101

Notice: Trying to get property of non-object in /home/savdanac/public_html/cache/smarty/compile/87/9e/e7/879ee725fa3cfb1d580be3d886242a16ff32cf72.file.product.tpl.php on line 101

 

Anyone knows what's happening?

 

Link to comment
Share on other sites

  • 4 months later...

Hi,

I am getting error while executing code: $first.product_list[0].carrier_list[0] in order-carrier.tpl

error: <b>Notice</b>: Undefined offset: 0 in <b>/home/saifkvc5/public_html/mystore/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code</b> on line <b>252</b><br /> hide">

 

<table class="delivery_option_carrier selected resume table table-bordered"><tbody><tr><td rowspan="2" class="delivery_option_radio first_item"> <div class="radio" id="uniform-delivery_option_27_0"><span class="checked"><input id="delivery_option_27_0" class="delivery_option_radio" type="radio" name="delivery_option[27]" data-key="90,89," data-id_address="27" value="90,89," checked="checked"></span></div></td>  <td class="delivery_option_logo<br /> <b>Notice</b>: Undefined offset: 0 in <b>/home/saifkvc5/public_html/mystore/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code</b> on line <b>252</b><br /> hide"> <img class="order_carrier_logo" src="/mystore/img/s/90.jpg" alt="free shipping"></td><td class="<br /> <b>Notice</b>: Undefined offset: 0 in <b>/home/saifkvc5/public_html/mystore/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code</b> on line <b>262</b><br /> hide"> <input type="hidden" value="90" name="id_carrier"> <i class="icon-info-sign"></i> 2-3&nbsp;(For this product: WigOWig Long Beautiful Extension for Ladies(Washable &amp; Curlable hair) Hair Extension)</td><td rowspan="2" class="delivery_option_price"><div class="delivery_option_price">Frees</div></td></tr><tr><td class="delivery_option_logo<br /> <b>Notice</b>: Undefined offset: 0 in <b>/home/saifkvc5/public_html/mystore/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code</b> on line <b>330</b><br /> hide"> <img class="order_carrier_logo" src="/mystore/img/s/89.jpg" alt="Free Shipping non cod"></td><td class="<br /> <b>Notice</b>: Undefined offset: 0 in <b>/home/saifkvc5/public_html/mystore/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code</b> on line <b>340</b><br /> hide"> <input type="hidden" value="90" name="id_carrier"> <i class="icon-info-sign"></i> 4-5&nbsp;(For this product: Curren Men Black Decker Planet Ocean Analog Watch)</td></tr></tbody></table>

Link to comment
Share on other sites

  • 5 months later...

Hi...i see it's an old story with this one...

I reviced the legen 500 error, and after reading all the above, all i could done, was to recive this new thing. Can someone explain how to fix it? Thanks.

(1/1) ContextErrorException

Notice: Undefined index: path

in Smarty.class.php line 1127

at Smarty->_realpath('<!-- begin module:ps_linklist/views/templates/hook/linkblock.tpl --><!-- begin /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><div class="col-md-6 links"> <div class="row"> </div></div><!-- end /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><!-- end module:ps_linklist/views/templates/hook/linkblock.tpl -->', true)in smarty_internal_resource_file.php line 169

at Smarty_Internal_Resource_File->buildFilepath(object(Smarty_Template_Source), object(SmartyDevTemplate))in smarty_internal_resource_file.php line 30

at Smarty_Internal_Resource_File->populate(object(Smarty_Template_Source), object(SmartyDevTemplate))in smarty_template_source.php line 182

at Smarty_Template_Source::load(object(SmartyDevTemplate))in smarty_internal_template.php line 168

at Smarty_Internal_Template->__construct('<!-- begin module:ps_linklist/views/templates/hook/linkblock.tpl --><!-- begin /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><div class="col-md-6 links"> <div class="row"> </div></div><!-- end /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><!-- end module:ps_linklist/views/templates/hook/linkblock.tpl -->', object(SmartyDev), null, null, 'layouts/layout-full-width.tpl', null, null)in Smarty.class.php line 1029

at Smarty->createTemplate('<!-- begin module:ps_linklist/views/templates/hook/linkblock.tpl --><!-- begin /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><div class="col-md-6 links"> <div class="row"> </div></div><!-- end /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><!-- end module:ps_linklist/views/templates/hook/linkblock.tpl -->', null, 'layouts/layout-full-width.tpl', object(SmartyDev), false)in smarty_internal_templatebase.php line 189

at Smarty_Internal_TemplateBase->_execute('<!-- begin module:ps_linklist/views/templates/hook/linkblock.tpl --><!-- begin /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><div class="col-md-6 links"> <div class="row"> </div></div><!-- end /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><!-- end module:ps_linklist/views/templates/hook/linkblock.tpl -->', null, 'layouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116

at Smarty_Internal_TemplateBase->fetch('<!-- begin module:ps_linklist/views/templates/hook/linkblock.tpl --><!-- begin /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><div class="col-md-6 links"> <div class="row"> </div></div><!-- end /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><!-- end module:ps_linklist/views/templates/hook/linkblock.tpl -->', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40

at SmartyDev->fetch('<!-- begin module:ps_linklist/views/templates/hook/linkblock.tpl --><!-- begin /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><div class="col-md-6 links"> <div class="row"> </div></div><!-- end /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><!-- end module:ps_linklist/views/templates/hook/linkblock.tpl -->', null, 'layouts/layout-full-width.tpl')in FrontController.php line 683

at FrontControllerCore->smartyOutputContent('<!-- begin module:ps_linklist/views/templates/hook/linkblock.tpl --><!-- begin /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><div class="col-md-6 links"> <div class="row"> </div></div><!-- end /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><!-- end module:ps_linklist/views/templates/hook/linkblock.tpl -->')in FrontController.php line 667

at FrontControllerCore->display()in Controller.php line 312

at ControllerCore->run()in Dispatcher.php line 515

at DispatcherCore->dispatch()in index.php line 28

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