Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 12:28 pm EST

Geeklog Forums

GL/Gallery integration problems


Status: offline

scotsman19

Forum User
Newbie
Registered: 10/09/02
Posts: 6

I recently installed Geeklog1.3.6 and Gallery 1.3.1. After a couple of weeks of pain, anguish and reinstalls I have managed to integrate the two, but I am still recieving some errors when trying to use Gallery.

I verified that the two work as standalones before integrating. I followed the integration steps from Blaine's GalleryIntegration1.3 file. I manually edited all files except for the User.php and UserDB.php, which I copied to the appropriate location within Gallery. I have also applied the cookie patch posted by Icox in August, with the exception of changing the password variable in Gallery's login.php.

I have a series of errors that I am receiving depending on whether or not I am logged in to GL and who I am logged in as. Unfortunately I don't know PHP coding extremely well and am rather lost at how to resolve the errors I am getting at this point.

Can someone help point me in the right direction?

1) If not logged in to GL I get this error when trying to access Gallery at all:

Fatal error: Call to a member function on a non-object in /var/www/html/geeklog/public_html/gallery/classes/AlbumDB.php on line 201

Offending code line:
if ($user->canReadAlbum($album) && $album->isRoot()) {

2) As a normal user I can get to the Albums page but get this error when I try to access any of the albums:

Fatal error: Call to a member function on a non-object in /var/www/html/geeklog/public_html/gallery/classes/User.php on line 90

Offending code line:
if ($album->canRead($this->uid)) {

3) As admin I can also get to the albums but get this error when trying to view them:

Fatal error: Call to a member function on a non-object in /var/www/html/geeklog/public_html/gallery/view_album.php on line 38

Offending code line:
if (!$gallery->album->isLoaded()) {

I have looked over the archives and found a few items that are similar, but they don't quite match my errors. Can someone Please help me with this?

You can experience some of the errors first hand if it will help at: geeklog.scotsman19.net

Please let me know if I need to post more code or any other information to help clarify anything.

Thanks for any assistance. I would really like to complete this setup so I can move on to other Blocks.

Scott

 Quote

Status: offline

scotsman19

Forum User
Newbie
Registered: 10/09/02
Posts: 6

Finally! I found the problem. After brainstorming with a friend I did a diff on the included init.php and mine and found a few lines of code difference that must not of made it into the manual instructions I used, since I edited all my files by hand.

On Step 2, I had to add these additional lines about here:

Line 196:
COM_errorLOG("Inside the geeklog section of gallery init.php");

Line 217-222:
/* Load our user database (and user object) */
$gallery->userDB = new Gallery_UserDB;

/* Load their user object with their username as the key */
if ($gallery->session->username) {
$gallery->user = $gallery->userDB->getUserByUsername($gallery->session->username);

It seems to be working on all users and accounts now. Whew!

Scott

 Quote

All times are EST. The time is now 12:28 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