GalleryCoreApi.class on line 2505 when running build thumbnails option

megabit2k
megabit2k's picture

Joined: 2005-08-01
Posts: 12
Posted: Fri, 2006-01-20 20:51

During the build thumbnails option I encounter an error during the process.
It indicates a permissions denied message. I rebooted, turned off my firewall to avoid any users accessing the files, I checked for any file locks via windows. I am running G2 directly at the url and not thru drupal and I get the same error. I even took read only off of all files and folders in gallery 2.

Processing image 5345 of 16340.

Warning: requireonce(D:\www\drupal\gallery2\modules\core\classes/../../../): failed to open stream: Permission denied in D:\www\drupal\gallery2\modules\core\classes\GalleryCoreApi.class on line 2505

Fatal error: requireonce(): Failed opening required 'D:\www\drupal\gallery2\modules\core\classes/../../../' (include_path='.;c:\php4\pear') in D:\www\drupal\gallery2\modules\core\classes\GalleryCoreApi.class on line 2505

Gallery version = 2.0.2 core 1.0.0.2
PHP version = 4.4.1 apache2handler
Webserver = Apache/2.0.55 (Win32) PHP/4.4.1
Database = mysql 4.1.16-nt-max
Toolkits = Exif, ImageMagick, SquareThumb, Thumbnail, Gd
Operating system = Windows NT DEV 5.1 build 2600
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iOpus-I-M; SV1)

 
megabit2k
megabit2k's picture

Joined: 2005-08-01
Posts: 12
Posted: Fri, 2006-01-20 20:59

btw, this is a new install of G2 and I imported a lot of photos with the directory import option.

Tried to clear the cache.

Fatal error: Maximum execution time of 30 seconds exceeded in D:\www\drupal\gallery2\modules\core\classes\GalleryPlatform.class on line 543

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-01-20 21:02

that's not enough information...
that just means that GalleryCoreApi::relativeRequireOnce has been called with an empty path or so.

if you enable "immediate" debug mode you may be able to find the true reason.
or you could add a check
if ($empty($filename)) { var_dump(debug_backtrace()); exit; } in GalleryCoreApi in that function

FAQ: How to set/use Gallery in debug mode?

 
megabit2k
megabit2k's picture

Joined: 2005-08-01
Posts: 12
Posted: Fri, 2006-01-20 21:16

I re-ran the clear database cache tool and it complete that portion this time.
I re-ran the build thumbnails and it got to the same picture and stopped.

I enabled buffered debug mode and restarted apache.
I then re-ran the build thumbnail tool and it speed up to the problematic entry and is now slowly continuing along like normal. (crosses fingers)

I am still curious as to what glitch I ran into.

Also I have noticed that during the thumbnail rebuild the estimated time feature is invisible (white on white) until I highlight it, then it appears normal. At least this is how it function on my 1.5v of Firefox.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-01-20 21:24

also note that i mentioned "immediate" and not "buffered" debug mode.
immediate debug mode makes sure that corresponding php errors and errors from g2 are more or less at the same spot in the output while buffered debug mode shows php errors as they happen at the top of the page and g2 errors at the bottom, which makes it difficult to say what errors / messages correspond.

 
edi15ta

Joined: 2006-02-04
Posts: 3
Posted: Sat, 2006-02-04 18:06

i have the same problem as in the first post. here is my 'immediate' debuging message:

Quote:
Smarty Debug Console
included templates & config files (load time in seconds):
gallery:themes/matrix/templates/theme.tpl (0,51909) (total)
gallery:modules/core/templates/blocks/SystemLinks.tpl (0,00930)
gallery:modules/core/templates/blocks/BreadCrumb.tpl (0,00217)
gallery:themes/matrix/templates/album.tpl (0,48845)
gallery:themes/matrix/templates/sidebar.tpl (0,14194)
gallery:modules/search/templates/blocks/SearchBlock.tpl (0,00543)
gallery:modules/core/templates/blocks/ItemLinks.tpl (0,01688)
gallery:modules/core/templates/blocks/PeerList.tpl (0,01882)
gallery:modules/imageblock/templates/blocks/ImageBlock.tpl (0,09687)
gallery:modules/imageblock/templates/ImageBlock.tpl (0,01438)
gallery:modules/core/templates/blocks/NavigationLinks.tpl (0,00069)
gallery:modules/core/templates/blocks/ItemInfo.tpl (0,00171)
gallery:modules/core/templates/blocks/ItemLinks.tpl (0,01377)
gallery:modules/core/templates/blocks/ItemInfo.tpl (0,00303)
gallery:modules/core/templates/blocks/ItemLinks.tpl (0,01020)
gallery:modules/core/templates/blocks/ItemInfo.tpl (0,00169)
gallery:modules/core/templates/blocks/ItemLinks.tpl (0,00813)
gallery:modules/core/templates/blocks/ItemInfo.tpl (0,00154)
gallery:modules/core/templates/blocks/Pager.tpl (0,00095)
gallery:modules/core/templates/blocks/GuestPreview.tpl (0,00222)
gallery:modules/core/templates/blocks/EmergencyEditItemLink.tpl (0,00104)
gallery:modules/comment/templates/blocks/ViewComments.tpl (0,29028)
assigned template variables: (...)

(i have only pasted what was in red)

and here is my system configuration:

Quote:
Wersja Gallery = 2.0.2 moduł główny 1.0.0.2
Wersja PHP = 4.4.0-pl1-gentoo apache2handler
Serwer WWW = Apache
Baza danych = mysqlt 4.1.14-log
Narzędzia = ArchiveUpload, Ffmpeg, ImageMagick, NetPBM, Gd, Exif
System operacyjny = Linux biker 2.6.15-gentoo-r1 #1 Sun Jan 22 16:54:09 CET 2006 i686
Przeglądarka = Opera/8.51 (X11; Linux i686; U; pl)

and the error message itself:

Quote:
Warning: requireonce(/home/mateusz/www/gallery/modules/core/classes/../../../modules/exif/lib/JPEG/JPEG.inc): failed to open stream: Nie ma takiego pliku ani katalogu in /home/mateusz/www/gallery/modules/core/classes/GalleryCoreApi.class on line 2505

Fatal error: requireonce(): Failed opening required '/home/mateusz/www/gallery/modules/core/classes/../../../modules/exif/lib/JPEG/JPEG.inc' (include_path='.:/usr/lib/php') in /home/mateusz/www/gallery/modules/core/classes/GalleryCoreApi.class on line 2505

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-02-04 22:10

install and activate the exif module

also check:

FAQ: How can I make sure that my installation files are all intact?

 
edi15ta

Joined: 2006-02-04
Posts: 3
Posted: Sat, 2006-02-04 22:51

the exif module is ok. i've reinstalled it, activated and nothing changed. i should also notice that some time ago it worked.

when check i integrity, i receive only this warning:

Quote:
Gallery file integrity
Warning
Manifest missing or inaccessible.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-02-04 23:29

"only this warning". this is a bad sign. you should reupload all modules/*/MANIFEST files.

 
edi15ta

Joined: 2006-02-04
Posts: 3
Posted: Sun, 2006-02-05 08:37

thanks a lot, it works. it happened when i had to move my gallery on FAT fs and then back to reiserfs the MANIFEST files, which previously were written in capital letters, have been changed to 'manifest' files written in small letters. i changed small 'manifest' into capital 'MANIFEST' and it works.