Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

ERRNO: 8 TEXT: Undefined property:

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
rezarex
Smarty n00b


Joined: 21 Sep 2012
Posts: 2

PostPosted: Thu Oct 11, 2012 8:59 am    Post subject: ERRNO: 8 TEXT: Undefined property: Reply with quote

Hi everyone? I am noobie tryin to learn php using the Beginning PHP and MySQL eCommerce 2nd Edition 2008.pdf, and now I am getting this error

ERRNO: 8
TEXT: Undefined property: ProductsList::$mProductListPages
LOCATION: C:\tshirtshop\presentation\templates_c\%%10^108^1083067C%%products_list.tpl.php, line 9, at October 11, 2012, 11:00 am
Showing backtrace:
include("C:\tshirtshop\presentation\templates_c\%%10^108^1083067C%%produc...") # line 1869, file: C:\tshirtshop\libs\smarty\Smarty.class.php
Smarty._smarty_include(Array[2]) # line 12, file: C:\tshirtshop\presentation\templates_c\%%CC^CCA^CCA018F7%%first_page_contents.tpl.php
include("C:\tshirtshop\presentation\templates_c\%%CC^CCA^CCA018F7%%first_...") # line 1869, file: C:\tshirtshop\libs\smarty\Smarty.class.php
Smarty._smarty_include(Array[2]) # line 33, file: C:\tshirtshop\presentation\templates_c\%%41^412^412F4E3D%%store_front.tpl.php
include("C:\tshirtshop\presentation\templates_c\%%41^412^412F4E3D%%store_...") # line 1256, file: C:\tshirtshop\libs\smarty\Smarty.class.php
Smarty.fetch("store_front.tpl", null, null, true) # line 1106, file: C:\tshirtshop\libs\smarty\Smarty.class.php
Smarty.display("store_front.tpl") # line 30, file: C:\tshirtshop\index.php


Somehow, the page numbers are working in other pages but not the home page, it throws this exception... I dont know how I can bypass this, is there any way I can get it to work? Confused
Back to top
View user's profile Send private message Send e-mail
rezarex
Smarty n00b


Joined: 21 Sep 2012
Posts: 2

PostPosted: Thu Oct 18, 2012 12:55 pm    Post subject: Reply with quote

Hey, found the isue, I had forgoten to declare the variable "public $mProductListPages;" in the prodctlist class, thanks anyway
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP