Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

class not found errors

 
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
Gokhank58
Smarty n00b


Joined: 13 Jun 2019
Posts: 3

PostPosted: Thu Jun 13, 2019 3:23 pm    Post subject: class not found errors Reply with quote

Smarty is not working
I get the following error.
Code:

Fatal error: Uncaught Error: Class 'Smarty_Internal_Debug' not found in /opt/lampp/htdocs/smarty_php/libs/Smarty.class.php:1044 Stack trace: #0 /opt/lampp/htdocs/smarty_php/libs/sysplugins/smarty_internal_templatebase.php(189): Smarty->createTemplate('index.tpl', NULL, NULL, Object(Smarty), false) #1 /opt/lampp/htdocs/smarty_php/libs/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute('index.tpl', NULL, NULL, NULL, 1) #2 /opt/lampp/htdocs/smarty_php/index.php(35): Smarty_Internal_TemplateBase->display('index.tpl') #3 {main} thrown in /opt/lampp/htdocs/smarty_php/libs/Smarty.class.php on line 1044


I have php 7
Back to top
View user's profile Send private message
bsmither
Smarty Pro


Joined: 20 Dec 2011
Posts: 242
Location: West Coast

PostPosted: Thu Jun 13, 2019 7:54 pm    Post subject: Reply with quote

Do you have this file:
Code:
\opt\lampp\htdocs\smarty_php\libs\sysplugins\smarty_internal_debug.php
Back to top
View user's profile Send private message
Gokhank58
Smarty n00b


Joined: 13 Jun 2019
Posts: 3

PostPosted: Fri Jun 14, 2019 12:55 pm    Post subject: Reply with quote

bsmither wrote:
Do you have this file:
Code:
\opt\lampp\htdocs\smarty_php\libs\sysplugins\smarty_internal_debug.php


yes file available
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1568

PostPosted: Fri Jun 14, 2019 9:06 pm    Post subject: Reply with quote

How did you include smarty in your project to begin with?
Back to top
View user's profile Send private message
Gokhank58
Smarty n00b


Joined: 13 Jun 2019
Posts: 3

PostPosted: Sat Jun 15, 2019 11:12 am    Post subject: Reply with quote

AnrDaemon wrote:
How did you include smarty in your project to begin with?


Hi, thanks for the answers.

I followed the steps in the video below
https://www.youtube.com/watch?v=eHDgi4ugXWI
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1568

PostPosted: Sat Jun 15, 2019 8:32 pm    Post subject: Reply with quote

I don't have time to waste with random youtube.
Why don't you follow steps explained in the documentation instead?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup 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