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.
Posts: 7994
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.
Posts: 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.
Posts: 120
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?
Posts: 18
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
Posts: 120
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.
Posts: 18
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:
Posts: 7994
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.
Posts: 487
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.
Posts: 7
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.
Posts: 3473
Is the file class/User.php present? Are the contents intact? IE is it 215 lines long and finish
Posts: 3
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/
Posts: 13451
lbennett, wow. The post you replied to is from August!
Try upgrading Gallery to the latest version.