Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Thursday, May 23 2013 @ 06:33 AM EDT


 Forum Index > Support > General Geeklog Support New Topic Post Reply
 Problem with integrated Gallery 1.3.1 in GL 1.3
   
mask
 08/09/02 07:54AM (Read 1170 times)  
+----
Newbie

Status: offline


Registered: 08/08/02
Posts: 5
After having some troubles, i succeeded in installing and integrating Gallery 1.3.1 in the last GL version. Everything seems fine, as long as you are a logged in GL user. As soon as I jump to my Gallery URL and am not logged, I get this error message:

Fatal error: Call to a member function on a non-object in /usr/local/httpd/htdocs/kunden/web413/html/geeklog/gallery/classes/Album.php on line 1037

The code responsible for this:

function getPerm($permName, $uid) {
$perm = $this->fields["perms"][$permName];
if ($perm[$uid]) {
return true;
}

global $gallery;

/* If everybody has the perm, then we do too */
$everybody = $gallery->userDB->getEverybody();
if ($perm[$everybody->getUid()]) {
return true;
}

/*
* If loggedIn has the perm and we're logged in, then
* we're ok also.
*/
$loggedIn = $gallery->userDB->getLoggedIn();
if ($perm[$loggedIn->getUid()] &&
strcmp($gallery->user->getUid(), $everybody->getUid())) {
return true;
}

return false;
}

Line 1037 is "if ($perm[$loggedIn->getUid()] &&"

Since i am not really a good programmer, i have really no idea, where the error comes from.
Maybe someone can help... please :-)

mask

 
Profile Email Website
 Quote
mask
 08/09/02 01:45PM  
+----
Newbie

Status: offline


Registered: 08/08/02
Posts: 5
You can take a look at the error at
my gallery site.
Maybe it gets clearer, when you can try it yourself.
My geeklog Site is at geeklog.mask.at
I tried with a test user, and got the same error as with no user. So by now, gallery runs only with the GL admin user account. Seems strange to me...


 
Profile Email Website
 Quote
mask
 08/09/02 02:24PM  
+----
Newbie

Status: offline


Registered: 08/08/02
Posts: 5
I solved the riddle with a little bit of searching.
You can find a solution at this
Thread.
I used a patch made for gallery 1.2.5 on 1.3.1. There were some changes in code so there is a new patch available for 1.3. at Langfamily.

Thanks for posting my help cries...

mask

 
Profile Email Website
 Quote
Content generated in: 0.35 seconds
New Topic Post Reply

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