[SOLVED] Gallery 2 Images Not Showing Up (anymore)

cma

Joined: 2011-04-13
Posts: 12
Posted: Wed, 2012-03-14 14:17

I have just cleaned out my files due to a - malware script? virus? - anyway, something that dumped a bunch of code at the top of all my php files and redirected my sites to some other site. Grrr.

Good news is that the bad code seems to be gone. Yay! BUT...

Now my images are not showing up - not thumbnails or full-size images. No broken images, just not showing up. I read the boards and looked at the ImageMagick and other graphics modules, they seem to be fine. I feel like somewhere in there it's just not finding the database? The database files are still there and from where I looked seems to be calling the right database. What am I missing? Did I delete a line?

Thanks for any insight. System info and phpinfo addy is below.

Audrey Kuenstler

URL: http://iconicfocus.com/main.php (I've shut down the index page)
PHPinfo(): http://www.iconicfocus.com/phpinfo.php

Gallery URL = http://www.iconicfocus.com/main.php
Gallery version = 2.3.1 core 1.3.0.1
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.17 cgi-fcgi
Webserver = Apache
Database = mysqli 5.1.53-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Ffmpeg, Getid3, ImageMagick, jpegtran, LinkItemToolkit, NetPBM, Thumbnail, Gd, SquareThumb
Acceleration = none/0, none/0
Operating system = Linux vilnius 2.6.32.45-grsec-2.2.2-r3 #8 SMP Mon Oct 10 13:33:17 PDT 2011 x86_64
Default theme = siriux
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.27) Gecko/20120216 Firefox/3.6.27
Rows in GalleryAccessMap table = 4989
Rows in GalleryAccessSubscriberMap table = 394
Rows in GalleryUser table = 3
Rows in GalleryItem table = 384
Rows in GalleryAlbumItem table = 64
Rows in GalleryCacheMap table = 0

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2012-03-14 14:28

overwrite your gallery files with a fresh copy.
then run the upgrader to step 2(system checks) and see if it reports any altered or missing files.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
cma

Joined: 2011-04-13
Posts: 12
Posted: Wed, 2012-03-14 15:29

Ok thanks, overwrote all gallery files. Took out (saved) my local folder. Images are still not showing up.

Ran Upgrader. Four altered files (down from 131!):

modules/webdav/lib/HTTP/WebDAV/Server.php
modules/webdav/lib/HTTP/WebDAV/Tools/_parse_lockinfo.php
modules/webdav/lib/HTTP/WebDAV/Tools/_parse_propfind.php
modules/webdav/lib/HTTP/WebDAV/Tools/_parse_proppatch.php

Also says Warning: Output Buffering Disabled. Everything else is Success.

Now what? Thanks so much for your help.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2012-03-14 15:34

are the images actually present in your g2data/albums

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
cma

Joined: 2011-04-13
Posts: 12
Posted: Wed, 2012-03-14 15:40

Yes. Will doublecheck again in a sec but have looked at that several times. Just noticed I have way more modules than the standard installation so deleting and scaling back to the basic ones.

 
cma

Joined: 2011-04-13
Posts: 12
Posted: Wed, 2012-03-14 16:26

Doublechecked: yes the images are present.

Just deleted the modules and put in only the standard ones. Now I get an error msg when I go to iconicfocus.com/main.php:

Error
Error (ERROR_BAD_PATH) : Invalid path: modules/password/module.inc

* in modules/core/classes/helpers/GalleryFactoryHelper_simple.class at line 171 (GalleryCoreApi::error)
* in modules/core/classes/helpers/GalleryFactoryHelper_simple.class at line 201 (GalleryFactoryHelper_simple::newInstance)
* in modules/core/classes/GalleryCoreApi.class at line 175 (GalleryFactoryHelper_simple::newInstanceById)
* in modules/core/classes/GalleryEntity.class at line 445 (GalleryCoreApi::newFactoryInstanceById)
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 91 (GalleryEntity::onLoad)
* in modules/core/classes/GalleryCoreApi.class at line 2361 (GalleryEntityHelper_simple::loadEntitiesById)
* in modules/core/classes/GalleryView.class at line 356 (GalleryCoreApi::loadEntitiesById)
* in modules/core/ShowItem.inc at line 106 (GalleryView::getItem)
* in modules/core/classes/GalleryView.class at line 396 (ShowItemView::getItem)
* in modules/core/classes/GalleryView.class at line 260 (GalleryView::loadThemeAndParameters)
* in main.php at line 465 (GalleryView::doLoadTemplate)
* in main.php at line 104
* in main.php at line 88

Then uploaded previous version of both core/ and main.php. Still error msg.

 
cma

Joined: 2011-04-13
Posts: 12
Posted: Wed, 2012-03-14 16:29

Now the Updater only says that main.php has been modified.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2012-03-14 16:42
Quote:
Error (ERROR_BAD_PATH) : Invalid path: modules/password/module.inc

its looking for the password module

Quote:
Now the Updater only says that main.php has been modified.

not good, replace it again

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
cma

Joined: 2011-04-13
Posts: 12
Posted: Wed, 2012-03-14 16:56

Updater says everything is Success, except for Output Buffering Disabled.

Uploaded the password module. Now iconicfocus.com/main.php just produces the word Error. Nothing else.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2012-03-14 17:03

its likely looking for more of those modules.

head to iconicfocus.com/lib/support and clear the caches

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
cma

Joined: 2011-04-13
Posts: 12
Posted: Wed, 2012-03-14 22:25

Ok I've re-uploaded all the modules. Cleared the caches. Updater gave me Success on everything - except the WebDav, so I took it out. Do I need it?

Images are still not showing up.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2012-03-14 22:56

Are you using the rewrite module? I cannot tell as your gallery is apparently private.
if so, then you should redo the rewrite setup.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
cma

Joined: 2011-04-13
Posts: 12
Posted: Thu, 2012-03-15 18:02

Sorry for the delay, had to go teach class. Made the gallery not private (it isn't supposed to be; think I freaked out and locked everything down after the virus). Don't think I'm using the rewrite module as it's not showing up. Reinstalled everything. One image is showing up - yay! - but think it's the only one that doesn't come from the database. Getting there (I think)! What now? Thanks again for all your help.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2012-03-15 18:27
 
cma

Joined: 2011-04-13
Posts: 12
Posted: Thu, 2012-03-15 18:37

It worked! YAAAYYYYY!!! THANK YOU and MAD PROPS for all the help! Yippee! :)))