1
msankhala
Error: Smarty error: the $compile_dir '/htdocs/xoops_data/ caches/smarty_compile'
  • 2010/1/30 14:25

  • msankhala

  • Just popping in

  • Posts: 5

  • Since: 2010/1/27


i have successfully installed xoops. it gives warring below the administrator page that xoops_data and xoops_lib directories are inside the site root. but when remove these directories out of the site root ..../htdocs then after refreshing the page it give Error: Smarty error: the $compile_dir '/var/www/html/xoops/htdocs/xoops_data/caches/smarty_compile' does not exist, or is not a directory. error. what to do??????

2
sailjapan
Re: Error: Smarty error: the $compile_dir '/var/www/html/xoops/htdocs/xoops_data/caches/smarty_compile'

Did you follow the release note instructions and edit mainfile.php to show the new paths?

3
msankhala
Re: Error: Smarty error: the $compile_dir '/var/www/html/xoops/htdocs/xoops_data/caches/smarty_compile'
  • 2010/1/30 14:49

  • msankhala

  • Just popping in

  • Posts: 5

  • Since: 2010/1/27


no i didn't do that. i didn't edit the mainfile.php to show the new path. what to do???

4
sailjapan
Re: Error: Smarty error: the $compile_dir '/var/www/html/xoops/htdocs/xoops_data/caches/smarty_compile'

1. Download mainfile.php from your server and open it in a text editor.
2. Find the four defines I've edited below to read as "YOURACCOUNT" and "yourdomain.com"
3. Edit these defines in your copy of mainfile.php to reflect your server's file and directory structure.
Note: Consider changing the name of the two directories (and their defines in mainfile.php) 'xoops_lib' and 'xoops_data' to something more unique.
4. Save the file and overwrite the original on your server with it.
5. Use your ftp client or server's control panel to set mainfile.php permissions to 444
6. See if your site works now.

// XOOPS Physical Paths      
// Physical path to the XOOPS documents (served) directory WITHOUT trailing slash     
define('XOOPS_ROOT_PATH''/home/YOURACCOUNT/public_html');      
// For forward compatibility     
// Physical path to the XOOPS library directory WITHOUT trailing slash
define('XOOPS_PATH''/home/YOURACCOUNT/xoops_lib');     
// Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash     
define('XOOPS_VAR_PATH''/home/YOURACCOUNT/xoops_data');     
// Alias of XOOPS_PATH, for compatibility, temporary solution     define("XOOPS_TRUST_PATH", XOOPS_PATH);      
// URL Association for SSL and Protocol Compatibility     
$http 'http://';
if (!empty(
$_SERVER['HTTPS'])) {         
$http = ($_SERVER['HTTPS']=='on') ? 'https://' 'http://';     
}     
define('XOOPS_PROT'$http);      
// XOOPS Virtual Path (URL)     
// Virtual path to your main XOOPS directory WITHOUT trailing slash     
// Example: define('XOOPS_URL', 'http://www.yourdomain.com');
define('XOOPS_URL''http://www.yourdomain.com');

5
Anonymous
Re: Error: Smarty error: the $compile_dir '/var/www/html/xoops/htdocs/xoops_data/caches/smarty_compile'
  • 2010/1/30 17:45

  • Anonymous

  • Posts: 0

  • Since:


Quote:
sailjapan wrote:

1. Download mainfile.php from your server and open it in a text editor.


If you fing that you can't download a copy of mainfile.php or it throws an error message then you may have to set its permissions to "644" or similar first

6
qolspony
Re: Error: Smarty error: the $compile_dir '/var/www/html/xoops/htdocs/xoops_data/caches/smarty_compile'
  • 2010/2/15 6:06

  • qolspony

  • Just popping in

  • Posts: 54

  • Since: 2005/3/12


I had a similar problem until I added a directory for the data files to point to. Although it does bring up my url, it is not completed with the XOOPS installation wizard.

I'm at Choose the default theme and when I click next, it takes me to a blank page.

What could be causing this to happen and how do I correct the problem?

I have one additional step to go.

Chris

7
ghia
Re: Error: Smarty error: the $compile_dir '/var/www/html/xoops/htdocs/xoops_data/caches/smarty_compile'
  • 2010/2/15 9:58

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Did you set the write permissions for them (see release notes)?

8
qolspony
Re: Error: Smarty error: the $compile_dir '/var/www/html/xoops/htdocs/xoops_data/caches/smarty_compile'
  • 2010/2/15 13:47

  • qolspony

  • Just popping in

  • Posts: 54

  • Since: 2005/3/12


After your reply I have reviewed the release notes again and it looks like I needed to add a directory. The write permissions were all reset to 777 as indicated in the RN. But I'm still having the same problem. Clicking next takes me to a blank page. I'm one step (modules) in completing this installation.

9
culex
Re: Error: Smarty error: the $compile_dir '/var/www/html/xoops/htdocs/xoops_data/caches/smarty_compile'
  • 2010/2/15 13:50

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Try only choosing system module, the rest you can add one-by-one later, and see if this is something to do with modules installation.

10
qolspony
Re: Error: Smarty error: the $compile_dir '/var/www/html/xoops/htdocs/xoops_data/caches/smarty_compile'
  • 2010/2/15 14:12

  • qolspony

  • Just popping in

  • Posts: 54

  • Since: 2005/3/12


I can't even get to that menu. I'm still at themes. Is there something in the module directory that I should be looking for?

Login

Who's Online

298 user(s) are online (201 user(s) are browsing Support Forums)


Members: 0


Guests: 298


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