Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 05:42 am EST
Geeklog Forums
Geeklog organization and Gallery Intergration
Hey all,
I'm working on getting Gallery integrated. Got the new version and went thru the upgrade process and then through the configuration. However, I'm getting an error when I try and go the the gallery pages from my geeklog site. The message reads:
Sounds like I either pointed the gallery integration to the wrong geeklog/public_html library, so it can't find the definition of a critical object. So here's my question. I have set up my web folder to be /var/www/html. This is where i point the Gallery config wizard towards the geeklog/public_html. I did this because I assumed that it's really asking me where my web code is...and i can't find any html under my geeklog lib(except for config.php).
I'm a little confused at this point because, after digging, I noticed that there is some geeklog userdb stuff(the stuff that the above error is pointing out as missing) in the geeklog folder under my gallery (/var/www/html/gallery/classes/geeklog/). Thinking that i had figured something out, i changed the gallery/geek integration setting to point to /var/www/html/gallery/classes/geeklog/ instead of my regular web lib, again, since i found mention of the userdb there, and I get a different error. This time i'm told that it cannot find the lib-common.php file. This file lives in my regular web library, /var/www/html. Now I'm back to where I started.
Can anyone shed some light on what I'm doing wrong? Have I organized my geeklog setup incorrectly? Or am I just choosing the wrong {geeklog/public_html} (what is this really asking me for?) library in the gallery configuration wizard?
Any help would be most appreciated.
Thanks in advance!
Conan Barnes
I'm working on getting Gallery integrated. Got the new version and went thru the upgrade process and then through the configuration. However, I'm getting an error when I try and go the the gallery pages from my geeklog site. The message reads:
Text Formatted Code
Fatal error: Cannot instantiate non-existent class: geeklog_userdb in /var/www/html/gallery/init.php on line 275Sounds like I either pointed the gallery integration to the wrong geeklog/public_html library, so it can't find the definition of a critical object. So here's my question. I have set up my web folder to be /var/www/html. This is where i point the Gallery config wizard towards the geeklog/public_html. I did this because I assumed that it's really asking me where my web code is...and i can't find any html under my geeklog lib(except for config.php).
I'm a little confused at this point because, after digging, I noticed that there is some geeklog userdb stuff(the stuff that the above error is pointing out as missing) in the geeklog folder under my gallery (/var/www/html/gallery/classes/geeklog/). Thinking that i had figured something out, i changed the gallery/geek integration setting to point to /var/www/html/gallery/classes/geeklog/ instead of my regular web lib, again, since i found mention of the userdb there, and I get a different error. This time i'm told that it cannot find the lib-common.php file. This file lives in my regular web library, /var/www/html. Now I'm back to where I started.
Can anyone shed some light on what I'm doing wrong? Have I organized my geeklog setup incorrectly? Or am I just choosing the wrong {geeklog/public_html} (what is this really asking me for?) library in the gallery configuration wizard?
Any help would be most appreciated.
Thanks in advance!
Conan Barnes
4
8
Quote
Status: offline
barneco
Forum User
Newbie
Registered: 01/31/04
Posts: 4
Vinny,
Thanks for the reply. What you said makes me think I'm on the right track, then. I have specified /var/www/html as the geeklog directory. Why, then, do you think that gallery gives me the error, saying it can't find geeklog_userdb when executing init.php? Have I set something up in my core geeklog incorrectly? I notice that the gallery/classes/geeklog directory that gets installed in the 1.4.1 upgrade contains UserDB.php. When I look at this file, I see the definition of the Geeklog_UserDB class. Is this what init.php is looking for? Is there something I need to do to let init.php know where this class is defined?
Thanks again for the reply and the help.
Conan
Thanks for the reply. What you said makes me think I'm on the right track, then. I have specified /var/www/html as the geeklog directory. Why, then, do you think that gallery gives me the error, saying it can't find geeklog_userdb when executing init.php? Have I set something up in my core geeklog incorrectly? I notice that the gallery/classes/geeklog directory that gets installed in the 1.4.1 upgrade contains UserDB.php. When I look at this file, I see the definition of the Geeklog_UserDB class. Is this what init.php is looking for? Is there something I need to do to let init.php know where this class is defined?
Thanks again for the reply and the help.
Conan
4
7
Quote
Status: offline
vinny
Site Admin
Admin
Registered: 06/24/02
Posts: 352
Location:Colorado, USA
If you look aroudn line 175 in init.php:
/* Implement our own UserDB and User class. */
include($GALLERY_BASEDIR . "classes/geeklog/UserDB.php");
include($GALLERY_BASEDIR . "classes/geeklog/User.php");
/* Load our user database (and user object) */
$gallery->userDB = new Geeklog_UserDB;
You can see that you shouldn't need to do anything. I'd suggest trying to reinstall and download. It could be a corrupted file...
-Vinny
Text Formatted Code
/* Implement our own UserDB and User class. */
include($GALLERY_BASEDIR . "classes/geeklog/UserDB.php");
include($GALLERY_BASEDIR . "classes/geeklog/User.php");
/* Load our user database (and user object) */
$gallery->userDB = new Geeklog_UserDB;
You can see that you shouldn't need to do anything. I'd suggest trying to reinstall and download. It could be a corrupted file...
-Vinny
5
5
Quote
Status: offline
barneco
Forum User
Newbie
Registered: 01/31/04
Posts: 4
Thanks again for the reply. I've decided to take your advice and reinstall. Weird things still afoot. Forgive me for being such a newb with all the questions.
Here's what I've done. I totally removed my gallery directory to start from scratch, saving off my albums and config.php. Got the latest version of gallery from SF, 1.4.1-pl1 and installed it. Here's where I get confused. I noticed that the gallery release didn't have the geeklog integration, so I thought I needed to install the geeklog/gallery integration from here: http://www.pigstye.net/gplugs/staticpages/index.php/20030301191703689 . Yet, when I look at the integration archive, it looks like the whole gallery shebang PLUS the geeklog integration. So i dump that archive on top of my gallery installation(1.4.1-pl1) that i just installed. I verify that it installed the geeklog classes. Yet when I got to gallery from my geeklog page, there's no integration. I still have to sign in. The error I was previously getting is gone, but I have no integration. I'm going in circles now and becoming very frustrated.
Let me simplify my question. If I want to install Gallery and have it embedded in my geeklog site, what files do I need to download and install and in what order? Is it sufficient to download the integration alone, since it's packaged with a release of gallery? or do i need to download gallery and then install the integration? the latter is what i have attempted and been unsuccessful. Maybe I installed the integration incorrectly(couldn't find any integration specific install notes...only gallery install notes)?
Sorry again for the lame newbie questions, and thanks for the help so far.
Here's what I've done. I totally removed my gallery directory to start from scratch, saving off my albums and config.php. Got the latest version of gallery from SF, 1.4.1-pl1 and installed it. Here's where I get confused. I noticed that the gallery release didn't have the geeklog integration, so I thought I needed to install the geeklog/gallery integration from here: http://www.pigstye.net/gplugs/staticpages/index.php/20030301191703689 . Yet, when I look at the integration archive, it looks like the whole gallery shebang PLUS the geeklog integration. So i dump that archive on top of my gallery installation(1.4.1-pl1) that i just installed. I verify that it installed the geeklog classes. Yet when I got to gallery from my geeklog page, there's no integration. I still have to sign in. The error I was previously getting is gone, but I have no integration. I'm going in circles now and becoming very frustrated.
Let me simplify my question. If I want to install Gallery and have it embedded in my geeklog site, what files do I need to download and install and in what order? Is it sufficient to download the integration alone, since it's packaged with a release of gallery? or do i need to download gallery and then install the integration? the latter is what i have attempted and been unsuccessful. Maybe I installed the integration incorrectly(couldn't find any integration specific install notes...only gallery install notes)?
Sorry again for the lame newbie questions, and thanks for the help so far.
6
8
Quote
Status: offline
vinny
Site Admin
Admin
Registered: 06/24/02
Posts: 352
Location:Colorado, USA
OK, the download (geeklog/gallery integration) contains a Complete Gallery install with the integration already completed. You want to install the integration by itself. Also you do not want to save your config.php file (though saving your albums is not a problem).
Delete your current gallery. Download and uncompress the Geeklog/Gallery integration. Follow the gallery setup procedures and don't forget to fill out the "Geeklog Directory" setting on the last gallery setup page. Gallery will then generate the config.php file from those options and everything should work.
-Vinny
Delete your current gallery. Download and uncompress the Geeklog/Gallery integration. Follow the gallery setup procedures and don't forget to fill out the "Geeklog Directory" setting on the last gallery setup page. Gallery will then generate the config.php file from those options and everything should work.
-Vinny
8
5
Quote
Alright, I tried it once again. I deleted everything except for my albums directory(which is located outside of the main gallery directory, so it's pretty easily insulated). Uncompress the file gallery_1.4.1-pl1_1.3.8.tar.gz which i understand to be the geeklog/gallery integration with the complete installation of gallery. I installed it, and went thru the config, secured it up, and now I'm back to getting the error I got which prompted my first post. I'm stumped. It HAS to be something that I'm doing wrong, but I can't, for the life of me, figure out what. I have no idea why init.php cannot find the geeklog_userdb class when I can see it sitting there myself. I'm following the directions to the T, and there is nothing in them that's ambiguous at all.
BUT, I know when I'm licked. Unfortunately, I'm not versed in php enough to really dig through the scripts and figure out what's going on, short of looking at high level stuff, and I feel like I've wasted enough of your time. I'm sure you have something better to do than walk a n00b through setting up something that no one else is having problems with. It has to be something about the way that I have something set up, since I'm the only one having this problem, and I suppose I will figure it out eventually.
Thanks again for all your help!
BUT, I know when I'm licked. Unfortunately, I'm not versed in php enough to really dig through the scripts and figure out what's going on, short of looking at high level stuff, and I feel like I've wasted enough of your time. I'm sure you have something better to do than walk a n00b through setting up something that no one else is having problems with. It has to be something about the way that I have something set up, since I'm the only one having this problem, and I suppose I will figure it out eventually.
Thanks again for all your help!
7
7
Quote
All times are EST. The time is now 05:42 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