Welcome to Geeklog, Anonymous Friday, April 26 2024 @ 01:26 pm EDT

Geeklog Forums

Another Gallery error


Dave

Anonymous
confused
Hi guys, I've completed an installation of Gallery in Geeklog and now receive the following error;

Warning: main(): open_basedir restriction in effect. File(/path/to/geeklog/public_html/lib-common.php) is not within the allowed path(s): (/home/nast:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/nast/public_html/plugins/gallery/init.php on line 261

Warning: main(/path/to/geeklog/public_html/lib-common.php): failed to open stream: Operation not permitted in /home/nast/public_html/plugins/gallery/init.php on line 261

Fatal error: main(): Failed opening required '/path/to/geeklog/public_html/lib-common.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nast/public_html/plugins/gallery/init.php on line 261


when I visit http://mysite.com/plugins/gallery/index.php

I've checked that my lib-common.php is where it should be, and the installation/config of Gallery seemed to go through fine. Gallery found Geeklog and I got a no errors on the last page of install.

I did try afterwards to put Gallery into debug mode from config but couldn't get any further info from that either. I've previously completed other installs of Gallery (into PostNuke), but this is my first within GeekLog.

I'm fairly unfamiliar with php, so if anyone can offer help, I'd greatly appreciate it.

Banging your head

Dave
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Quote by Dave:
Text Formatted Code
(/home/nast:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/nast/public_html/plugins/gallery/init.php on line 261
 



Hi,

Two things I see.

1. (maybe completly irrelevant) Why do you install gallery (from gallery.menalto.com) as a plugin ?
Normally you would install it seperate and just use the integration option.

2. Have a look at the quote above.

Text Formatted Code
(/home/nast:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/nast/public_html/plugins/gallery/init.php on line 261
 


From this it seems that you cannot call lib-common.php in it´s current location, so one of the path settings must be wrong.

Check in the gallery setup you have the embedded path setting correct.
It should point to /home/nast/public_html/ and not /home/nast/

Greetz,
Boris


Vanrillaer.com - our Family Portal
 Quote

Dave

Anonymous
Ahh, that seem's to have solved the installation problem. I've moved it all down out of the plugins dir & reinstalled. Now it loads fine from http://mysite.com/gallery/

I know have a similiar problem to the one described here (http://www.geeklog.net/forum/viewtopic.php?forum=2&showtopic=43283) though. I don't really understand how gallery appears within my geeklog layout. I've tried calling gallery via a link in a post to see if it would appear "within" the layout but it opens, looking rather unstyled on a blank times new roman page. As per the above post it appears with the GeekLog footer but nothing else.

I'm probably being very stupid, but hopefully not!

Thanks for the help.

Dave
 Quote

All times are EDT. The time is now 01:26 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