11
Marco
Re: 2.0.18.1 to 2.3.0 Final Error: Smarty error
  • 2008/9/28 16:35

  • Marco

  • Home away from home

  • Posts: 1256

  • Since: 2004/3/15


guys, could you give us your php/mysql environment. it seems it occurs under special circumstances
thx
Do synergy or die.

12
Daethian
Re: 2.0.18.1 to 2.3.0 Final Error: Smarty error
  • 2008/9/28 16:37

  • Daethian

  • Quite a regular

  • Posts: 305

  • Since: 2005/3/4 1


Apache version 2.0.61
PHP version 5.2.5
MySQL version 4.1.22-standard
Architecture i686
Operating system Linux
hhttp://www.artfire.com/daethian
My Artfire store- Vintage Jewelry and New Bead Jewelry

13
tank1955
Re: 2.0.18.1 to 2.3.0 Final Error: Smarty error
  • 2008/9/28 16:49

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


Operating system Linux
Machine Type i686
Apache version 1.3.41 (Unix)
PHP version 5.2.6
MySQL version 5.0.51a-community

14
Anonymous
Re: 2.0.18.1 to 2.3.0 Final Error: Smarty error
  • 2008/9/28 19:51

  • Anonymous

  • Posts: 0

  • Since:


Quote:
tank1955 wrote:
I recently upgraded several sites to 2.3.0 and had the same error where the system told me it could not find XOOPS_VAR_PATH/caches/smarty_compile.


Same here when I tried to upgrade using RC2.

Quote:
tank1955 wrote:

In the 2.3.0 install package locate the following file:
xoops-2.3.0\htdocs\class\template.php

Open the file and locate the following code near the beginning of the file

$this->template_dir XOOPS_THEME_PATH;
        
$this->cache_dir XOOPS_VAR_PATH "/caches/smarty_cache";
        
$this->compile_dir XOOPS_VAR_PATH "/caches/smarty_compile";


Change the compile_dir definition line so it appears like this:

$this->template_dir XOOPS_THEME_PATH;
        
$this->cache_dir XOOPS_VAR_PATH "/caches/smarty_cache";
        
$this->compile_dir XOOPS_ROOT_PATH "/xoops_data/caches/smarty_compile";


Man, that's a nice looking fix for me too. I'll be giving this a go tomorrow evening (no time now!) and will report back.

Thanks for sharing

John V
XOOPS Version: XOOPS 2.0.18.2
PHP Version: 5.2.5
MySQL Version: 4.1.20-log
Server API Version: cgi-fcgi
OS Version: Linux

15
restrada
Re: 2.0.18.1 to 2.3.0 Final Error: Smarty error
  • 2008/9/29 4:39

  • restrada

  • Just popping in

  • Posts: 11

  • Since: 2006/2/20


The correct fix is to define in mainfile.php the path to the data files:

define("XOOPS_VAR_PATH", "path");


16
Mamba
Re: 2.0.18.1 to 2.3.0 Final Error: Smarty error
  • 2008/9/29 6:14

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
The correct fix is to define in mainfile.php the path to the data files:

define("XOOPS_VAR_PATH", "path");

Could the users who had the original problems check in their mainfile.php, if they had the correct definition of "XOOPS_VAR_PATH"?

As restrada said, there should be a relative path in the mainfile.php, and you shouldn't have to use a "hard coded path" in the template.php
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

17
Anonymous
Re: 2.0.18.1 to 2.3.0 Final Error: Smarty error
  • 2008/9/29 8:04

  • Anonymous

  • Posts: 0

  • Since:


IIRC (I'm in work as I type this and so can't check!), those of us upgrading from 2.0.18.x don't have xoops_var_path defined in mainfile.php

Does the upgrade script add this or do we need to add it manually prior to the upgrade? If so, is there an uptimum place in mainfile.php? I'm assuming near the top with the other defines but is the order critical?

Many thanks

18
Daethian
Re: 2.0.18.1 to 2.3.0 Final Error: Smarty error
  • 2008/9/29 11:41

  • Daethian

  • Quite a regular

  • Posts: 305

  • Since: 2005/3/4 1


My path appeared to be right. It was pointing to my XOOPS directory.
hhttp://www.artfire.com/daethian
My Artfire store- Vintage Jewelry and New Bead Jewelry

19
limecity
Re: 2.0.18.1 to 2.3.0 Final Error: Smarty error
  • 2008/9/29 12:54

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


JAVesey,

I had manually made the changes to the mainfile.php and was able to proceed with the upgrade. I think this will work for most people.
hhttp://www.mounthiking.com
all your hiking gears and gadgets


20
Mamba
Re: 2.0.18.1 to 2.3.0 Final Error: Smarty error
  • 2008/9/29 15:18

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
My path appeared to be right. It was pointing to my XOOPS directory.

This could be exactly the problem. The XOOPS_VAR_PATH should NOT point to your XOOPS directory, but to /xoops_data directory.

Assuming that your physical location of XOOPS is at /home/xoops, The correct paths should be in your mainfile.php defined as:

Quote:
// Physical path to the XOOPS documents (served) directory WITHOUT trailing slash
define( 'XOOPS_ROOT_PATH', '/home/xoops' );

// Physical path to the XOOPS library directory WITHOUT trailing slash
define( 'XOOPS_PATH', '/home/xoops/xoops_lib' );
// Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash
define( 'XOOPS_VAR_PATH', '/home/xoops/xoops_data' );
// Alias of XOOPS_PATH, for compatibility, temporary solution
define("XOOPS_TRUST_PATH", XOOPS_PATH);

Please note: the paths in green, can be changed for security purposes to other location outside of your XOOPS path (if your server allows that). But at least you should change the names of your subdirectories, which are in orange

Example:
Quote:
define( 'XOOPS_PATH', '/home/myvault/xoopsROCKS_895lib' );

XOOPS 2.3 gives you more flexibility in making XOOPS more secure. For more info about security in 2.3, read this tutorial
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

Login

Who's Online

323 user(s) are online (260 user(s) are browsing Support Forums)


Members: 0


Guests: 323


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits