Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 12:15 am EST

Geeklog Forums

Forum installed can't configure


Ofey

Anonymous
hopeful
I got a sucessful install message, after installing plugin forum. But no forum icon in 'command and control'. Forum has been added to 'admin only' block and is listed with the two other plugins 'static pages' and 'xspam'. When I go to forum I get:

Warning: main(../lib-common.php): failed to open stream: No such file or directory in /hsphere/local/home/fjryanio/trojanswimclub.ie/admin/plugins/forum/index.php on line 37

Fatal error: main(): Failed opening required '../lib-common.php' (include_path='.:/hsphere/shared/apache/php/lib/php') in /hsphere/local/home/fjryanio/trojanswimclub.ie/admin/plugins/forum/index.php on line 37

I followed all of the step 3 of install_doc.html
I did the full install twice got same thing after each time.

Any help would be greatly appreciated. Wink
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Hi,

It looks like you have the public_html directory under the admin/plugins/forum directory.

Try to move the original public_html directory to the forum directory which you created in your root of your public web directory.

Have a look at the installation doc.

Text Formatted Code
  public_html/           - Main program files

The files in the public directory under your new plugins/forum folder need to be moved to <geeklog_dir>/public_html/forum directory

You will need to first create the:

<geeklog_dir>/public_html/forum directory
 


Best Regards,
Boris
Vanrillaer.com - our Family Portal
 Quote

Ofey

Anonymous
Hi Boris,
Thanks for your help.
I think I have done as you say.
I'll show what I've done using full and exact path names and it might be easier to explain where I'm going wrong.

I moved everything in:
/geeklog/plugins/forum/public_html
to:
/geeklog/public_html/forum

The error seems to suggest the file ../lib-common.php
is called by the file
/hsphere/local/home/fjryanio/trojanswimclub.ie/admin/plugins/forum/index.php
But the full pathname of ../lib-common.php isn't given. So where is it expecting to find the ../lib-common.php ?
Actually I know there is such a file at:
/trojanswimclub.ie/lib-common.php

Also I don't seem to have put anything into
/trojanswimclub.ie/
I just thought something should go in there. But I'm probably wrong.
Leaves me speechless Stupid question, I shouldn't ask this but;
is /trojanswimclub.ie/ my public web directory and if it is then I presume
/geeklog/... is my private directory?

Regards
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Hi Ofrey,

From what I understand and see at your website you installed geeklog in your public root directory which is

/hsphere/local/home/fjryanio/trojanswimclub.ie/

So in this directory you have your lib-common.php.

You should the public_html forum directory to /hsphere/local/home/fjryanio/trojanswimclub.ie/forum

So you should have something like

/hsphere/local/home/fjryanio/trojanswimclub.ie/forum

because then you can call http://trojanswimclub.ie/forum/index.php

And to answer the question, yes trojanswimclub.ie should be your public directory, unless you did some logical links or redirects.

Best Regards,
Boris


Vanrillaer.com - our Family Portal
 Quote

Ofey

Anonymous
hopeful
Hi Boris,

(I unpacked geeklog in /hsphere/local/home/fjryanio/ directory when I was first setting up. The .../lib-common.php file is in /hsphere/local/home/fjryanio/trojanswimclub.ie/)

I did what you said which was to copy everything inside the directory:

/hsphere/local/home/fjryanio/geeklog/plugins/forum/public_html

to:

/hsphere/local/home/fjryanio/trojanswimclub.ie/forum

The forum tarball was unpacked in:

/hsphere/local/home/fjryaniogeeklog/plugins

I definitely got further but still the same error when I click the forum icon in the 'command and control' section for admin. This is it:

Warning: main(../lib-common.php): failed to open stream: No such file or directory in /hsphere/local/home/fjryanio/trojanswimclub.ie/admin/plugins/forum/index.php on line 37

Fatal error: main(): Failed opening required '../lib-common.php' (include_path='.:/hsphere/shared/apache/php/lib/php'Wink in /hsphere/local/home/fjryanio/trojanswimclub.ie/admin/plugins/forum/index.php on line 37

But at least now in the 'command and control' I can see an icon for the forum. That wasn't a white box with a red cross in it as before.

When I click forum in the menu at the top I get 'No categories or forums defined' which makes sense.

So I'm getting there but not there yet.
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Hi Ofey,

I suggest you take a step back and have a look at where you copied what.

Have a look at this visaul layout

From what I understand you have following setup:

Your ROOT directory is:

/hsphere/local/home/fjryanio/

Your Geeklog "ROOT" directory is here

/hsphere/local/home/fjryanio/geeklog/

and your config file is here

/hsphere/local/home/fjryanio/geeklog/config.php

together with following directories

/hsphere/local/home/fjryanio/geeklog/logs
/hsphere/local/home/fjryanio/geeklog/backups
/hsphere/local/home/fjryanio/geeklog/system
...

Your webdirectory is here

/hsphere/local/home/fjryanio/trojanswimclub.ie/

Here you have your index.php and your lib-common.php and following directories:

/hsphere/local/home/fjryanio/trojanswimclub.ie/forum
/hsphere/local/home/fjryanio/trojanswimclub.ie/images
/hsphere/local/home/fjryanio/trojanswimclub.ie/layout

and also the admin one

/hsphere/local/home/fjryanio/trojanswimclub.ie/admin

under this one you have to copy the missing files in the plugin directory.

/hsphere/local/home/fjryanio/trojanswimclub.ie/admin/plugins/forum

It is all in the instqllqtion document of the forum.

Just make sure you understand the directory structure as shown in the link above and check that it corresponds with howyou have it set up.

All should become clear.

Best REgards,
Boris




Vanrillaer.com - our Family Portal
 Quote

Ofey

Anonymous
hopeful
Hi Boris,
You've been very patient with me. And I thank you for that and all your help.

It appears that I have completely installed everything wrong.

My top level directory is as you said:
/hsphere/local/home/fjryanio/

It that that directory at the moment I have two directories,
geeklog/ and trojanswimclub.ie/

But looking at the visual aid you pointed me too, it seems I should only have geeklog in the top level or root directory. And my web directory which is trojanswimclub.ie should not be sitting beside the geeklog directory, but actually should be inside geeklog inside public_html like this:
/hsphere/local/home/fjryanio/geeklog/public_html/trojanswimclub.ie
which should be sitting along side /admin, /layout and /images. So that the follow would exist:
/hsphere/local/home/fjryanio/geeklog/public_html/admin
/hsphere/local/home/fjryanio/geeklog/public_html/layout
/hsphere/local/home/fjryanio/geeklog/public_html/images

This might also explain another problem I'm having with images when uploaded by a user are put into /geeklog/public_html/images/articles/
but them seem to be looked for in /trojanswimclub.ie/images/articles/

Of course if I put trojanswimclub.ie/ in the correct place as above in the first pathname I'd change things in the config.php file too. So hopefully instead of looking for images in /hsphere/local/home/fjryanio/trojanswimclub.ie/images/articles
it would actual look in /hsphere/local/home/fjryanio/geeklog/public_html/trojanswimclub.ie/images/articles

So perhaps I need to reinstall everything! That way when I add other plugins I won't have this problem. I've customised quite a bit of the site. Oh well, I'd prefer go at it again and get it right this time.

Do you think I'm correct with all I said above?
And thanks very much for your help so far.
Shane
it would look for them in
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Ofrey,

No you can easily have your setup just like it is.

The graphical explanation was just one to show you where goes what.
With your current setup you just have to make sure your config.php points to the correct directories.

Best Regards,
Boris
Vanrillaer.com - our Family Portal
 Quote

Ofey

Anonymous
hopeful
Hi Boris,
Thanks again for your help.
I can't see anything wrong with my config file.

The important part of it is as follows:

// +---------------------------------------------------------------------------+
// | (1) Database Settings |
// +---------------------------------------------------------------------------+

$_DB_host = '********'; // host name or IP address of your DB server
$_DB_name = '********'; // name of your database,
// must exist before running the installer!
$_DB_user = '********'; // MySQL user name
$_DB_pass = '********'; // MySQL password

// The table prefix is prepended to each table used by Geeklog to avoid name
// collisions with other tables that may already exist in your database.
$_DB_table_prefix = 'gl_'; // e.g. 'gl_'


// +---------------------------------------------------------------------------+
// | (2) Paths |
// +---------------------------------------------------------------------------+

// Note for Windows users: It's safe to use the forward slash '/' instead of
// the backslash '' in paths. Make sure each path starts with a drive letter!

// This should point to the directory where your config.php file resides.
$_CONF['path'] = '/hsphere/local/home/fjryanio/geeklog/'; // 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'] = '/geeklog/public_html/';
$_CONF['path_html'] = $_CONF['path'] . 'public_html/';


// +---------------------------------------------------------------------------+
// | (3) Site Settings |
// +---------------------------------------------------------------------------+

// Make sure this is the correct URL to your site, i.e. to where Geeklog's
// index.php file resides (no trailing slash).
$_CONF['site_url'] = 'http://www.trojanswimclub.ie';

// Some hosting services have a preconfigured admin directory. In that case,
// you need to rename Geeklog's admin directory to something like "myadmin"
// and change the following URL as well. Leave as is until you experience any
// problems accessing Geeklog's admin menu.
$_CONF['site_admin_url'] = $_CONF['site_url'] . '/admin';

// This is the return address for all email sent by Geeklog:
$_CONF['site_mail'] = 'webmaster@trojanswimclub.ie';

// Name and slogan of your site
$_CONF['site_name'] = 'Trojan Swimming Club';
$_CONF['site_slogan'] = 'Dublin, Ireland';

This config file must be correct as the rest of my site works.
It's very strange!

Regards,
Shane
 Quote

All times are EST. The time is now 12:15 am.

  • 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