Apache httpd-error.log entries from PHP

ken95357

Joined: 2005-01-14
Posts: 1
Posted: Sat, 2005-07-02 15:42

I am getting the following errors in my error log:

[client x.x.x.x] PHP Fatal error: requireonce(): Failed opening required '/usr/local/www/data-dist/gallery2/modules/core/classes/../../../modules/exif/lib/JPEG/JPEG.inc' (include_path='.:') in /usr/local/www/data-dist/gallery2/modules/core/classes/GalleryCoreApi.class on line 2470, referer: http://amethyst.kdmd.net/gallery2/main.php?g2_view=core.ShowItem&g2_itemId=2156

[client x.x.x.x] PHP Notice: Undefined index: /usr/local/www/data-dist/gallery2/g2data/locks/2/1/2163 in /usr/local/www/data-dist/gallery2/modules/core/classes/FlockLockSystem.class on line 285, referer: http://amethyst.kdmd.net/gallery2/main.php?g2_view=core.ShowItem&g2_itemId=2156

[client x.x.x.x] PHP Warning: requireonce(/usr/local/www/data-dist/gallery2/modules/core/classes/../../../modules/exif/lib/JPEG/JPEG.inc): failed to open stream: No such file or directory in /usr/local/www/data-dist/gallery2/modules/core/classes/GalleryCoreApi.class on line 2470, referer: http://amethyst.kdmd.net/gallery2/main.php?g2_view=core.ShowItem&g2_itemId=2156

[client x.x.x.x] PHP Fatal error: requireonce(): Failed opening required '/usr/local/www/data-dist/gallery2/modules/core/classes/../../../modules/exif/lib/JPEG/JPEG.inc' (include_path='.:') in /usr/local/www/data-dist/gallery2/modules/core/classes/GalleryCoreApi.class on line 2470, referer: http://amethyst.kdmd.net/gallery2/main.php?g2_view=core.ShowItem&g2_itemId=2156

[client x.x.x.x] PHP Notice: Undefined index: /usr/local/www/data-dist/gallery2/g2data/locks/2/1/2163 in /usr/local/www/data-dist/gallery2/modules/core/classes/FlockLockSystem.class on line 285, referer: http://amethyst.kdmd.net/gallery2/main.php?g2_view=core.ShowItem&g2_itemId=2156

[client x.x.x.x] PHP Notice: Undefined index: /usr/local/www/data-dist/gallery2/g2data/locks/2/1/2163 in /usr/local/www/data-dist/gallery2/modules/core/classes/FlockLockSystem.class on line 285, referer: http://amethyst.kdmd.net/gallery2/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemDeleteSingle&g2_itemId=2162&g2_navId=xb8fa40e0

The images are large - all over a megabye, one is 11MB. When you click on the images, they won't display the larger version. I've had to up the PHP memory limit to 400MB so the images would process properly.

Any ideas?

Thanks.

Ken

----

Gallery URL (optional): http://amethyst.kdmd.net/gallery2
Gallery version: CVS from 07/02/2005
Webserver (with version): Apache 2.0.52_4
Datatabase (with version): MySQL 4.0.23a
PHP version (eg 4.2.1): php4-4.3.10_2
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system: FreeBSD 5.3
Web browser/version:
G1 version (for migration bugs):

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-07-02 15:49

please go to the installer and then there to the system checks step.

do you get a file integrity warning? please reupload all modified/missing files.
i guess usr/local/www/data-dist/gallery2/modules/exif/lib/JPEG/JPEG.inc
is one of those files.

http://codex.gallery2.org/index.php/Gallery2:faq#What_about_the_warning_for_missing_.26_modified_files_in_the_installer.3F

@locking: maybe that will go away once you fixed the file integrity problem. if not, switch to db locking in site admin at the bottom of the page.

@php memory limit:
we'd need more information.
but i suspect either a exif bug or a GD problem.

 
veal

Joined: 2003-03-14
Posts: 4
Posted: Wed, 2006-03-29 15:04

[edit]ok, when i use database filelocks, it works fine. but still, this shouldn't happen, should it?[/edit]

hi, i get the same undefined index in locks, while importing gallery1 albums (there is no previous error):

[client x.x.x.x] PHP Notice: Undefined index: /var/www/g2data/locks/2/6/2689 in /var/www/html/gallery/modules/core/classes/FlockLockSystem.class on line 205, referer: http://xxx.yyy/gallery/main.php

NOTE: only happens on big albums (> ~150images), i see the import bar progressing, then it suddenly stops.
Doesn't look like a memory problem, topright: "Memory used: 12122520, total: 64M"
(i first had this on 32M, it choked on albums > ~150pix, then increased to 64M and still the same albums...) others work fine!

PS: i also get errors while deleting those albums, it removes only the highlighted image (other images stay there). Another Delete Album removes it completely (or sometimes it needs a 3rd).
[e] i just saw it's the same error printed in apache error_log as above while deleting. The Error Detail printed in the browser:

Error (ERROR_LOCK_TIMEOUT) : /var/www/g2data/locks/2/5/2516
in modules/core/classes/FlockLockSystem.class at line 114 (gallerycoreapi::error) 
in modules/core/classes/GalleryLockSystem.class at line 153 (flocklocksystem::_acquirelock) 
in modules/core/classes/helpers/GalleryLockHelper_simple.class at line 185 (flocklocksystem::acquirewritelock) 
in modules/core/classes/GalleryCoreApi.class at line 2306 (gallerylockhelper_simple::acquirewritelock) 
in modules/core/classes/helpers/GalleryEntityHelper_medium.class at line 52 (gallerycoreapi::acquirewritelock) 
in modules/core/classes/GalleryCoreApi.class at line 2393 (galleryentityhelper_medium::deleteentitybyid) 
in modules/core/classes/GalleryItem.class at line 319 (gallerycoreapi::deleteentitybyid) 
in modules/core/classes/GalleryAlbumItem.class at line 262 (galleryitem::delete) 
in modules/core/classes/helpers/GalleryEntityHelper_medium.class at line 123 (galleryalbumitem::delete) 
in modules/core/classes/GalleryCoreApi.class at line 2393 (galleryentityhelper_medium::deleteentitybyid) 
in modules/core/ItemDelete.inc at line 86 (gallerycoreapi::deleteentitybyid) 
in main.php at line 199 (itemdeletecontroller::handlerequest) 
in main.php at line 87
in main.php at line 80

---
Gallery version = 2.1 core 1.1.0
PHP version = 4.3.11 apache2handler
Webserver = Apache/2.0.51 (Fedora)
Database = mysqlt 3.23.58, lock.system=flock
Toolkits = ArchiveUpload, Exif, NetPBM
Acceleration = none, none
Operating system = (FedoraCore2) Linux xxx.yyy 2.6.8-022stab067.1-enterprise #1 SMP Mon Jan 23 20:55:01 MSK 2006 i686
Default theme = matrix
Locale = en_US
Browser = Opera/9.00 (X11; Linux i686; U; en) (and also tried in firefox 1.5.0.1)
G1 version (for migration bugs) = moved 1.4.x from other webserver, then updated to Gallery 1.5.2-pl2, after that migrated to g2 version above

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Fri, 2006-03-31 07:13

For the memory problem, try turning off the EXIF module and see if that solves it. The EXIF module relies on some buggy code. :(