Setup-Problem: Cannot inherit from undefined class abstract_

CharlieBlank

Joined: 2002-08-23
Posts: 18
Posted: Fri, 2002-08-23 05:45

Hi,
I'm currently trying to set up Gallery.
The setup process seems to be ok, I don't get any warnings on the page where all the gallery and album settings are displayed. When I click on 'Save config' (on the page Gallery Setup: Step 4) I receive the following error msg:

Quote:
Fatal error: Class gallery_user: Cannot inherit from undefined class abstract_user in /homepages/38/xxxxx/htdocs/wsb/gallery/classes/gallery/User.php on line 22

I couldn't find any hint in the FAQ, README or so far.

Is anybody of you able to help me?

THANKS.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2002-08-23 17:35

That is bizarre, and quite possibly a system error. Please provide the information listed at the bottom of the <!-- BBCode Start --><A HREF="http://gallery.sourceforge.net/wiki.php?page=Help" TARGET="_blank">help page</A><!-- BBCode End --> so that we can get an idea of the big picture.

 
CharlieBlank

Joined: 2002-08-23
Posts: 18
Posted: Sat, 2002-08-24 12:18

The link to the gallery setup dir/diagnostics is:
http://www.grafikdruck.de/wirsindblank/gallery/setup/diagnostics.php

I don't have shell access.
I created the tmp dir at ...gallery/tmp
I created the albums dir at ...gallery/albums

It is using the latest version of Gallery I could find here (. Manually created the .htaccess and config.php (according to the README file).

Thanks for any help.

 
TheWatcher
TheWatcher's picture

Joined: 2002-08-21
Posts: 120
Posted: Sat, 2002-08-24 15:20
Quote:
The link to the gallery setup dir/diagnostics is:
http://www.grafikdruck.de/wirsindblank/gallery/setup/diagnostics.php

I don't have shell access.
I created the tmp dir at ...gallery/tmp
I created the albums dir at ...gallery/albums

It is using the latest version of Gallery I could find here (. Manually created the .htaccess and config.php (according to the README file).

Thanks for any help.

If you see an error above complaining about reading or writing to /tmp/gallerydbga27643, then this is likely a permission/configuration issue on your system. If it mentions open_basedir then it's because your system is configured with open_basedir enabled. You should talk to your system administrator about this.

Are you in windows or linux webhosting service?

 
CharlieBlank

Joined: 2002-08-23
Posts: 18
Posted: Sat, 2002-08-24 19:30

My hosting is

Linux infong 2.2.20-hap-2 #1 Fri Dec 14 17:08:09 CET 2001 m68k recovery
Apache/1.3.26 (Unix)
PHP Version 4.1.1

 
TheWatcher
TheWatcher's picture

Joined: 2002-08-21
Posts: 120
Posted: Sat, 2002-08-24 21:22
Quote:
My hosting is

Linux infong 2.2.20-hap-2 #1 Fri Dec 14 17:08:09 CET 2001 m68k recovery
Apache/1.3.26 (Unix)
PHP Version 4.1.1

I'm not really quite sure if your OS (Linux Apache/1.3.26 (Unix) 24-Aug-2002 195.20.244.102 ) is supported by netpbm. Do you know if this is Redhat Linux or linux family?

Anyway, try to download netpbm (http://sourceforge.net/project/showfiles.php?group_id=7130) and re-run setup, let see if you will have this error again.

keep me posted.

 
CharlieBlank

Joined: 2002-08-23
Posts: 18
Posted: Sun, 2002-08-25 11:24

I downloaded it to the subdir ../gallery/netpbm and made it executable.

Still the same behaviour: Config seems to be ok - but I'm still receiving the error msg related to abstract_user

:cry:

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2002-08-25 17:52
Quote:
Still the same behaviour: Config seems to be ok - but I'm still receiving the error msg related to abstract_user

My guess is that one or more of your Gallery files got corrupted. Try unpacking the tarball again and see if it fixes this problem.

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Sun, 2002-08-25 20:26

You might also want to double check the permissions of the files to make
sure they didn't get changed in such a manner that the webserver no
longer has read access to them.

 
motdakasha

Joined: 2003-02-07
Posts: 7
Posted: Wed, 2003-08-20 05:45

PHP v4.3.0RC4
Apache 2.0.43
FreeBSD 4.7

I installed gallery 1.3.4, then installed the patch. When I ran configuration, everything ran smoothly and without error until I pressed the last button, Save Config ->. Then I got the same error as the person above. I don't know a thing about php code, so it's not like I can look at the file and immediately see the problem or if there even is one.

Fatal error: Class gallery_user: Cannot inherit from undefined class abstract_user in /***/gallery/classes/gallery/User.php on line 22

From User.php:
line 20 <?php
line 21 class Gallery_User extends Abstract_User {
line 22
line 23 function load($uid) {
line 24 global $gallery;

I searched this forum, found this thread, and double checked the permissions. I would have tried extracting the files again, but I've already tried so many times on this server to get gallery to work and, quite frankly, I'm sick of it. A previous version of gallery I had used on a different server worked just fine, but I don't remember what version number and it seems all previous versions are not available for download, so I can't test to see if it would work smoothly on this server.

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Wed, 2003-08-20 06:30

Is the file class/User.php present? Are the contents intact? IE is it 215 lines long and finish

        function isLoggedIn() {
                return true;
        }
}

?>
 
lbennett

Joined: 2002-09-11
Posts: 3
Posted: Sun, 2003-12-28 12:51

I'm having the same problem.

My User.php file is 296 lines long, and has a few bits extra after the IsLoggedIn function, but looks as it should, as far as I can tell.

The site is http://aestivus.org/gallery/

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sun, 2003-12-28 13:04

lbennett, wow. The post you replied to is from August! :)

Try upgrading Gallery to the latest version.