|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
bhakti Smarty n00b
Joined: 15 Mar 2011 Posts: 2
|
Posted: Wed Mar 16, 2011 10:55 am Post subject: Failed opening 'Smarty/Internal/Data.php' |
|
|
I am making my way through Practrical Web 2.0 Applications with PHP.
I am using: Smarty 3.0.7 + Zend Framework 1.11.3
I have read about possible conflict between Zend and Smarty 3 autoloaders here:
http://www.smarty.net/forums/viewtopic.php?t=16900&sid=0eaf14e2d39d380cc752549c32316a69
Full error message I get is:
Code: |
Warning: include_once() [function.include]: Failed opening 'Smarty/Internal/Data.php' for inclusion (include_path='.:/www/vhtdocs/phpweb20/include:/usr/local/PEAR') in /usr/local/home/httpd/vhtdocs/phpweb20/include/Zend/Loader.php on line 146
|
(...There are other similar errs)
I have just d/loaded and installed Smarty 2.6.26 and it works!
Can anybody help a newby with this Smarty 3 problem?
Kind Rgds
Bhakti |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Mar 16, 2011 1:37 pm Post subject: |
|
|
Be sure to clear all compiled files when switching versions. Also be sure to install all required library files. |
|
Back to top |
|
bhakti Smarty n00b
Joined: 15 Mar 2011 Posts: 2
|
Posted: Wed Mar 16, 2011 1:59 pm Post subject: |
|
|
mohrt wrote: | Be sure to clear all compiled files when switching versions. Also be sure to install all required library files. |
Thanks, if I stay with Smarty 2.26, I will remove all trace of S3. I guess this is due to autoloaders traversing include_path directories? I have just removed S3 from my include path and S2.26 is still working
I hope everything was installed when I unpacked S3. In S3 I had Code: |
[admin@sawds xSmarty]$ ls
Smarty.class.php debug.tpl plugins sysplugins
|
Incidentally, running S2.26 successfully, all I had to change was:
Code: | require_once('Smarty/Smarty.class.php');
|
to
Code: | require_once('Smarty/libs/Smarty.class.php');
|
I am sure running S 2.26 will have shortfalls. Unless Ive not installed all necessary library files, im not sure what the problem is with S3
Thanks for your help |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Mar 16, 2011 2:21 pm Post subject: |
|
|
If you switch S2->S3, be certain to clear all compile/cache files. See also the upgrade notes that ship with the Smarty 3 distro. |
|
Back to top |
|
petitchamp Smarty n00b
Joined: 29 May 2011 Posts: 1
|
Posted: Sun May 29, 2011 11:49 pm Post subject: |
|
|
hi man ,
try to add this to your index.php
Zend_Loader_Autoloader::getInstance()->pushAutoloader(NULL, 'Smarty_' ); |
|
Back to top |
|
saturnisbig Smarty n00b
Joined: 02 Aug 2011 Posts: 1
|
Posted: Tue Aug 02, 2011 1:05 pm Post subject: |
|
|
petitchamp wrote: | hi man ,
try to add this to your index.php
Zend_Loader_Autoloader::getInstance()->pushAutoloader(NULL, 'Smarty_' ); | This work well, tkx |
|
Back to top |
|
|
|
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
|