X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Template Error After Upgrade (https://forum.x-cart.com/showthread.php?t=5326)

donna8284 11-24-2003 09:49 AM

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!! :D

adpboss 11-24-2003 10:15 AM

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.

:)

donna8284 11-24-2003 10:21 AM

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

adpboss 11-24-2003 10:23 AM

Contact Funky.

His mods will be updated for sure.

MER 11-24-2003 08:25 PM

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

Ming

B00MER 11-24-2003 09:08 PM

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

teriwinkle 01-31-2004 07:49 PM

"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!

teriwinkle 01-31-2004 09:18 PM

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!


All times are GMT -8. The time now is 08:53 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.