Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Template Error After Upgrade

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-24-2003, 09:49 AM
 
donna8284 donna8284 is offline
 

Newbie
  
Join Date: May 2003
Posts: 7
 

Default Template Error After Upgrade

Hi Guys!

After upgrading my cart to (v)3.5.0 several of my mods are not working. For example "send to friend" and "faq module" (by: funkydunk). Once you click on the link a page opens up that says:

Can't to find template engine!

Any ideas of what the problem is or how to fix would be greatly appreciated!!
Reply With Quote
  #2  
Old 11-24-2003, 10:15 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Uhm....

How about those mods aren't tested with 3.5.0?

Upgrading is going to break some of your custom mods until they are manually updated.

I hope you backed up and/or installed 3.5.0 on a demo store.

Reply With Quote
  #3  
Old 11-24-2003, 10:21 AM
 
donna8284 donna8284 is offline
 

Newbie
  
Join Date: May 2003
Posts: 7
 

Default

I understand that they are not tested with 3.5.0. I was just hoping somebody knew what the error I was receiving meant or somebody has the same problem and figured out how to fix it, thats all.
Reply With Quote
  #4  
Old 11-24-2003, 10:23 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Contact Funky.

His mods will be updated for sure.
Reply With Quote
  #5  
Old 11-24-2003, 08:25 PM
 
MER MER is offline
 

Newbie
  
Join Date: Jun 2003
Posts: 8
 

Default

I have identical error message on 3.5.0 for some MODs used working in 3.4.x. Does anyone have similar experience?

Ming
Reply With Quote
  #6  
Old 11-24-2003, 09:08 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

3.5.0 smarty.php:

Code:
# # Define SMARTY_DIR to avoid problems with PHP 4.2.3 & SunOS # define('SMARTY_DIR', $xcart_dir.DIRECTORY_SEPARATOR."Smarty-2.5.0".DIRECTORY_SEPARATOR); if (!@include(SMARTY_DIR."Smarty.class.php")) { echo "Can't to find template engine!"; exit; }

3.4.9 smarty.php:

Code:
# # If we are in subdir of X-Cart dir, then include with '../' # else include with './' # if (!@include("../Smarty-2.5.0/Smarty.class.php")) @include("./Smarty-2.5.0/Smarty.class.php");

commenting out the new code, and replacing it with the old should do the trick

Not sure why an attempt at including it a second time ../ one parent directory back before failing. (which seems to be the case here).

Anyhow, hth.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #7  
Old 01-31-2004, 07:49 PM
 
teriwinkle teriwinkle is offline
 

Advanced Member
  
Join Date: Aug 2003
Location: Los Angeles
Posts: 63
 

Default "can't to find template"

I tried replacing the smarty code as above but then I couldn't acess my home page. I got the following message:

Quote:
Can't launch template engine.


p.s I got the same error message
Quote:
can't to find template
as above after an upgrade from 3.48 to 3.5.1

Any ideas how to fix this?

Thanks!
Reply With Quote
  #8  
Old 01-31-2004, 09:18 PM
 
teriwinkle teriwinkle is offline
 

Advanced Member
  
Join Date: Aug 2003
Location: Los Angeles
Posts: 63
 

Default

I should have provided more information... Here is a better description of my problem:

I recently upgraded my site from 3.4.8 to 3.5.1. I didn't notice any problems until I tried to use a admin custom mod. The custom mod was one of funkydunks, the subscriber list, found from this thread, which worked in version 3.4.8:

http://forum.x-cart.com/viewtopic.php?p=17493&highlight=#17493.

Then I got the error message:

Quote:
"can't to find template engine"

I found this thread, and I replaced the new smarty code with the old smary code per Boomers suggestion.

Quote:
3.5.0 smarty.php:

Code:

#
# Define SMARTY_DIR to avoid problems with PHP 4.2.3 & SunOS
#
define('SMARTY_DIR', $xcart_dir.DIRECTORY_SEPARATOR."Smarty-2.5.0".DIRECTORY_SEPARATOR);

if (!@include(SMARTY_DIR."Smarty.class.php")) {
echo "Can't to find template engine!";
exit;
}



3.4.9 smarty.php:

Code:

#
# If we are in subdir of X-Cart dir, then include with '../'
# else include with './'
#
if (!@include("../Smarty-2.5.0/Smarty.class.php"))
@include("./Smarty-2.5.0/Smarty.class.php");
After I replaced the new smarty code with the old smarty code, I would get the following message upon entering my website home page. (before I could freely roam my website, I just couldn't use the subscriber list mod.

Quote:
"can't launch template editor"

So, I have put the smarty.php back to orig 3.50 version, and can roam my site, but I cannot use the subscriber list feature mod.

Any ideas as to how fix the compatability problem for the new mod to the 3.5.1 xcart? Thanks!
__________________
Red Hat Linux/Apache
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:32 PM.

   

 
X-Cart forums © 2001-2020