Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 01:02 pm EST

Geeklog Forums

Not your typical path problem?


Status: offline

Samelborp

Forum User
Newbie
Registered: 10/03/03
Posts: 12
Ok, this seems a typical path problem:

Template Error: set_root: /var/www/geeklog2//var/www/html/2/layout/clean is not a directory.
Halted.


BTW, this is not a Geeklog 2 install! (I am upgrading and keeping the old version running until everything works).

I swear that both $_CONF['path'] and $_CONF['path_html'] are correctly set up, in fact, I am getting this AFTER a successful install. But I had some problems that could give you a hint of what is going on:

After step 2 of install I get a blank successful.php page.

I check log_error and realise that some pluggins were missing (forum and mdigest), so I copy the directories from my old Geeklog install to the new one. I stop getting that errors in log_error and go to check.php to see if file permissions are ok.

I check file permissions and I change logs directory to 777 instead of 775, which wasn't working.

Then I get the above error. The problem is that, somehow, my install is returning a bad path see the double slash in "/var/www/geeklog2//var/www/html/2/layout/clean" when trying to load themes...

Any idea?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Sounds like the typical path problem to me, actually. Check $_CONF['path_html'] and the comments there. Especially the bit about concatinating with $_CONF['path'] ...

bye, Dirk
 Quote

Status: offline

Samelborp

Forum User
Newbie
Registered: 10/03/03
Posts: 12
Text Formatted Code
// This should point to the directory where your config.php file resides.
$_CONF['path']            = '/var/www/geeklog2/'; // should end in a slash

// You only need to change this if you moved or renamed the public_html
// directory. In that case, you should specify the complete path to the
// directory (i.e. without the $_CONF['path']) like this:
// $_CONF['path_html']      = '/path/to/your/public_html/';
$_CONF['path_html']         = $_CONF['path'] . '/var/www/html/2/';


This is my config.php, but what I find strange is that I could succesfully install Geeklog, so the paths should be ok? The folder tree is as follows:

-root
--var
---www
----geeklog2 (here is config.php etc)
----html (this is the root of my public html server)
-----2 (the folder I use to test the upgrade to Geeklog)
 Quote

Status: offline

Samelborp

Forum User
Newbie
Registered: 10/03/03
Posts: 12
Well, I edited line 73 from config.php (it was right in front of my eyes) as follows:

Text Formatted Code
$_CONF['path_html']         = '/var/www/html/2/';


Maybe it's a dirty trick, but now it works.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
It's not a dirty trick, it's exactly what is explained in the comments in config.php that you quoted above ...

bye, Dirk
 Quote

Status: offline

Samelborp

Forum User
Newbie
Registered: 10/03/03
Posts: 12
I am glad I did the right thing, sorry, probably I misunderstood the explanations, non english mothertongue etc...

Many thanks for your patience!
 Quote

All times are EST. The time is now 01:02 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content