Gallery file integrity Warning
|
ozz
Joined: 2008-08-28
Posts: 20 |
Posted: Fri, 2008-08-29 19:00
|
|
I am getting this "Gallery file integrity Warning" while installing Gallery. When installation is complete I get an BLANK page. Can the warning be causing this BLANK PAGE? thanks |
|
| Login or register to post comments |

Posts: 4353
Need more info (there's a reason the template when you create a new post asking for info). When installing G2 and getting the Gallery file integrity warning", click on it to expand it and Copy and paste the output here.
Yes, that warning can cause a blank page. That warning, ALL warnings are there for a reason. If you want a successful install, ALL "lights" should be green.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 20
Nivekiam..... here is the output.
Basically here is what happened. Someone had tried to upgrade from 2.1 to 2.2.5 on a Unix machine. The upgrade ended up giving a blank page. Now they handed over to me but I don't know much about the original installation or the about this product. So I am basically stock. I am hoping that if I can clear up this Warning...thing will be just fine.
Step 3 is giving me a WARMING (see attached image)
System Checks
PHP Version Success
FILE Directive Success
Safe Mode Success
exec() allowed Success
set_time_limit() allowed Success
Memory limit (128Mb) Success
File uploads allowed Success
Maximum upload size (128Mb) Success
Maximum POST size (128Mb) Success
Translation support Success
Gallery file integrity Warning
--------------------FILE-OUTPUT -------------------
README.html
bootstrap.inc
embed.php
index.php
init.inc
lib/adodb/adodb-error.inc.php
lib/adodb/adodb-lib.inc.php
lib/adodb/adodb-perf.inc.php
lib/adodb/adodb-php4.inc.php
lib/adodb/adodb-time.inc.php
lib/adodb/adodb.inc.php
---------------------------------------------------
Posts: 4353
You're running through the installer, but it sounds like this is an existing installation. Is there an existing database and g2data directory? Did you move servers is this still on the same server?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 20
Yes, Its still on the same test server.
I found a directory called "g2data" and a mysql database "gallery_db".
You are correct, it from what it looks like this is in fact an existing installation but its showing nothing. Empty page.
Like I said, the person who was trying to upgrade this is no longer around so I can't ask what was or was not done.
On a side note, I was checking the file permission and most of the files that are shown here have the following permissions:
-rw-r--r--. Could this be my problem?
thanks again for your help.
ozz
Posts: 4353
About the permissions, that all depends on who the owner of the files are. As long as the webserver can read them it's fine. If it's under g2data those are correct if the user the webserver runs as is the owner of the file because the webserver needs to write to those directories. So with the information you've given me I'd say yes, but is depends ;)
Is this a new installation that doesn't really have anything in it? If so, just start from scratch with the current version 2.2.5, there's no need to clean up after someone who didn't know what they were doing.
Also, have you happened to read this FAQ:
FAQ: I get only a blank screen when trying to view my Gallery, what's wrong?
If that all fails, can you post a phpinfo link, along with any other information you know about your system:
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 20
you are correct. Installing the current version 2.2.5 will solve all my problems. BUT
I have a minor problem. The production server is currently running version 2.1 and would like to upgrade it to 2.2.5.
So what i've been suggested to (1) upgrade the 2.1 to 2.2.5 on the test machine and then (2) do the same on the production server.
But for me to upgrade it on test Machine I need to fix it first. Does it makes sense? That's why I want to get this fixed first.
BTW. I just turned on $gallery->setDebug(true);
and got this DISPLAYED: Fatal error: Class 'GalleryUtilities' not found in /disk/www/html/gallery/main.php on line 34 Clearly its a path issue. I think.
NOW I AM REALLY CONFUSED.
ozz
Posts: 4353
o.k. Here's my suggestion. Start over ;)
remove G2 completely from the test server. Backup G2 on the production server and follow these instructions to "move" G2 to the test server:
FAQ: How can I move my gallery installation from one server to another?
Make sure everything is working. Then try upgrading following these instructions:
FAQ: How to upgrade Gallery2?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 20
I followed the instructions above (http://codex.gallery2.org/Gallery2:FAQ#How_can_I_move_my_gallery_installation_from_one_server_to_another.3F) and now I am getting the error below. What can it be?
Error (ERROR_STORAGE_FAILURE) :
* in modules/core/classes/GalleryStorage.class at line 476 (GalleryCoreApi::error)
* in modules/core/classes/Gallery.class at line 223 (GalleryStorage::search)
* in modules/core/classes/helpers/GalleryUserGroupHelper_simple.class at line 93 (Gallery::search)
* in modules/core/classes/helpers/GalleryUserGroupHelper_simple.class at line 52 (GalleryUserGroupHelper_simple::isUserInGroup)
* in modules/core/classes/GalleryCoreApi.class at line 1764 (GalleryUserGroupHelper_simple::isUserInSiteAdminGroup)
* in main.php at line 295 (GalleryCoreApi::isUserInSiteAdminGroup)
* in main.php at line 87
* in main.php at line 80
* in /www/html/view/main.php at line 3
Debug Output.....
(mysql): SET NAMES "utf8"
mysql error: [1146: Table 'gallery2.g2_view_UserGroupMap' doesn't exist] in
EXECUTE("
SELECT
g2_view_UserGroupMap.g2_view_userId
FROM
g2_view_UserGroupMap
WHERE
g2_view_UserGroupMap.g2_view_userId = 5
AND
g2_view_UserGroupMap.g2_view_groupId = 3
LIMIT 1")
Posts: 4353
o.k. Can you grab the upgrade log file that should be in g2data and post that?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 20
I think I should tell you what I did and didn't do.
What I did:
1) backed-up my installation (using mysqlAdmin)
2) skipped this step b/c I just want to migrate from Gallery from one host to another.
3) Zipped it and Backed-up G2,the database and the entire g2data folder.
4) Copied the g2data folder and import the mysql database to your new host
I think the next step is where things started to go wrong.
It says "Install the gallery2 code (extract gallery2.tar.gz/zip) on the new host."
Is this referring to a brand new copy of gallery2 (eg. http://sourceforge.net/project/downloading.php?group_id=7130&use_mirror=internap&filename=gallery-2.1.2-full.zip&22520826) or are they referring to the one on step #3 above?
One last question. I found this tutorial on "How can I migrate my Gallery from one host to another?" http://codex.gallery2.org/Gallery1:Migrating_Gallery . Would this be any easier?
thanks for your help.
Posts: 4353
That tutorial you found is for Gallery 1, not Gallery 2
Instead of upgrading to the current version. To get the exact same version running on your test server just copy everything over there. g2data, database, and current gallery install. Paths may have changed, so don't copy config.php. Run through the installer on the test server and allow it to recreate config.php and giving the installer the information for the test server database, g2data location, etc.
In the end you should end up with a "snapshot" of your current production install.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 20
Yes. I want the exact version running on the test machine.
I copied the g2data and the database. But I don't seem to have the 'current gallery install' directory. So can't run the installer.
Can I just grab some other 'install' directory to place it into there?
thanks again for you patience.
ozz
Gallery version = 2.1.2 core 1.1.0.2
PHP version = 5.1.6 apache2handler
Webserver = Apache/2.2.3 (Red Hat)
Database = mysql 5.0.22, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux localhost.localdomain 2.6.18-53.1.14.el5 #1 SMP Tue Feb 19 07:18:21 EST 2008 i686
Default theme = matrix
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Posts: 4353
Sorry, not just the "install" directory. But your current gallery installation. ALL program files.
Example:
If you have gallery here on your site:
www.example.com/gallery2
Then copy the entire gallery2 directory to the test server.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 20
As you have suggested, I grabbed everything (g2data and gallery director) from the old server and dropped into the new server.
I now get missing files Warning. I am so frustrated with this... I can't seem to get this right.
see attached files.
thanks
Posts: 20
Somehow the upgrade directory was empty. I copy files from another upgrade directory and got rid of this list. BUT NOW I HAVE this:
Gallery file integrity Warning
modules/icons/iconpacks/paularmstrongdesigns/advanced_search.gif
modules/comment/templates/blocks/ViewComments.tpl
modules/search/templates/SearchScan.tpl
modules/search/templates/SearchShowAll.tpl
modules/core/CoreModuleExtras.inc
Posts: 4353
If you don't mind possibly needing to restore everything again and start over, go ahead with the install, otherwise get the list of missing files and post it here, so we can make a better decision. You can expand that and just copy and paste the list into a post.
Since this is a test server/installation I'd probably just go ahead and see if it works ;) Since these are files you copied over to make a duplicate install you are already running as it is, theoretically. Then if everything works as installed, you'd be replacing with a new version of Gallery and a fresh set of files.
NOTE: The changes you have made to the template files for Comments and Search WILL be overwritten when you upgrade to the next version. You MUST create a directory named local the templates or blocks directories and put your changes there if you want to keep them and not have to restore them from backups.
Also any changes you've made to any other files like .inc .class, etc will be overwritten. You need to make sure you take note of any of those changes and make copies/backups so you can apply those changes if they are still necessary after an upgrade.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 4353
o.k. That answers that. I'd just go ahead with the install. Again
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 20
It seems to be very happy. BUT...it looks like a brand new install!
I quick look at the log-file shows me lots of lines that look like this:
2008-09-05 15:46:52 [TMP_SESSION_ID_DI_NOISSES_PMT] rmdir(/www/html/g2data//cache/module/)
2008-09-05 15:46:52 [TMP_SESSION_ID_DI_NOISSES_PMT] file_exists(/www/html/g2data//cache/derivative)
2008-09-05 15:46:52 [TMP_SESSION_ID_DI_NOISSES_PMT] [1220644012] can't guarantee 180 -- extending!
2008-09-05 15:46:52 [TMP_SESSION_ID_DI_NOISSES_PMT] Check if the persistent storage is installed
2008-09-05 15:46:52 [TMP_SESSION_ID_DI_NOISSES_PMT] <hr>
(mysql): SET NAMES "utf8" <code></code>
<hr>
2008-09-05 15:46:52 [TMP_SESSION_ID_DI_NOISSES_PMT] <hr>
(mysql): SHOW TABLES <code></code>
<hr>
2008-09-05 15:46:52 [TMP_SESSION_ID_DI_NOISSES_PMT] Load core module
2008-09-05 15:46:52 [TMP_SESSION_ID_DI_NOISSES_PMT] Loading plugin core
2008-09-05 15:46:52 [TMP_SESSION_ID_DI_NOISSES_PMT] Class not defined, trying to include it.
2008-09-05 15:46:52 [TMP_SESSION_ID_DI_NOISSES_PMT] file_exists(/www/html/gallery2/modules/core/classes/helpers/../../../../modules/core/module.inc)
2008-09-05 15:46:52 [TMP_SESSION_ID_DI_NOISSES_PMT] core plugin successfully instantiated
2008-09-05 15:46:52 [TMP_SESSION_ID_DI_NOISSES_PMT] NOT installing, rollback!
2008-09-05 15:46:52 [TMP_SESSION_ID_DI_NOISSES_PMT] file_exists(/www/html/g2data_18611865/versions.dat)
2008-09-05 15:46:52 [TMP_SESSION_ID_DI_NOISSES_PMT] file(/www/html/g2data/versions.dat, )
2008-09-05 15:46:52 [TMP_SESSION_ID_DI_NOISSES_PMT] Core module version is ok
2008-09-05 15:46:52 [TMP_SESSION_ID_DI_NOISSES_PMT] Finish install core module step
2008-09-05 15:46:52 [TMP_SESSION_ID_DI_NOISSES_PMT] Install core module step completed successfully
The the double slashes '//' between g2data//cache looks suspicious to me.
Any idea?
thanks
Posts: 20
oops...double post.
Posts: 4353
Got the URL for your gallery install from one of your screenshots ;)
Dug around a bit. Your g2data/albums directory is empty and under your g2data/cache directory there is no derivative directory which is where the generated thumbnails and resized images are stored.
EDIT: Though if the information for those images were in the database you should at the very least be getting a bunch of broken thumbnails. Did you verify that the database import was successful? Or did you make sure you choose "reuse existing database tables" as stated in step 9 of these instructions for the database setup:
http://codex.gallery2.org/Gallery2:FAQ#How_can_I_move_my_gallery_installation_from_one_server_to_another.3F
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 20
url...ooops...but its ok.
Yes. On step 9 i answered "reuse existing database tables". Then Again, only God knows how many times I installed and reinstalled and installed again and again.... phew.
Maybe I should re-import my gallery2.sql.
The strange thing is that on my custom theme GALLERY LINK it says "not connected to db".
I say, if it was not connected to database, then I wouldn't not be able to login, right?
thanks for all your help. Thanks to you I am one step closer.
ozz
Posts: 20
Update on the database...
I think I found out what's going on.
On the database setup step....I answered "reuse existing database tables". HOWEVER, I totally forgot to indicate the correct table prefixes.
So it happily went ahead and created its own brand new tables. Example, it created g2_User, g2_featured.... instead of the existing prefixes (g2_ozz_User, g2_ozz_featured) that already have the data. Am I making sense?
HOW DO I FIX THIS without going through the installation all over again. Is there a file that I can edit this information so that it will point to the correct tables?
thanks.
Posts: 4353
Never seen that. I'd need more info if you want that looked at.
You might possibly be able to just change that info in config.php. I don't know if that will break anything or not, I've never had to change the prefix mid-stream. If it works, great. But I still can't guarantee that something deeper will be broken. At least this is just a test install ;)
EDIT: What I'm saying is that you can change that in config.php right in there where the rest of the database connection info is stored, but I don't know if that is what drives it or not. I assume it is, but again, I've never dinked with that setting.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 20
After a week off I am now back.
I am still having problems with the gallery2. Please take a look at the screen file attached.
Looks like its looking for a non-existing dir(gallery2).
it reads: "Warning: fopen(../gallery2/themes/.../screenres.txt)" I think it should be
Warning: fopen(../gallery2/themes//screenres.txt)
Where do I change this to point to gallery_2_1_2 NOT gallery2?
thanks
ozz
Posts: 4353
I take it you changed the directory name that gallery is stored in?
FAQ: How can I move my gallery installation from one folder to another?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 20
Ok. I got rid of most of the errors. But there is 2 more that is still killing me.
My front page looks fine. All pictures are showing. For a second i thought that my headache was finally over but i was wrong.
Two major problems:
1) When i click on the image(front page) its somehow referencing back to the original site (e.g. http://live_site.com/main.php?g2_itemId=90) not the new site (http://test_site.com/) where it should be.
Where do i change this so that it points to http://test_site.com/main.php?g2_itemId=90 NOT http://live_site.com/main.php?g2_itemId=90
2) There are other images that are pointing to the correct site (http://test_site.com/main.php?g2_itemId=90) but the page is blank.
What's happening here, Any ideas??
thanks
ozz
Posts: 20
I was able to fix the first problem by editing one of the home.tpl files.
I am still having problems with the second problem.
When I click on the image it returns a blank page.
it looks like its not talking to the database.
I turned on in debug more but i see no errors.
thanks.
ozz
Posts: 4353
Can you leave it in debug mode and post or send me via private message (click Write to author) a URL to access the site?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 4353
When clicking on an album I see this error on the screen:
"ooops not connected to db"
For some reason you are losing your DB connection.
It looks like some of your template files are making DB calls that are most likely outdated from version 2.1 It also looks like your theme has a few PHP that may or may not be outdated. Looks like you've got some updating to the theme to do to get on par with the changes that happened between 2.1 and 2.2
I bet if you changed the theme to Matrix or something "standard" that ships with Gallery you'd have no problems.
I have a feeling the problem lies in the gallery_*.php files that are in /themes/<yourtheme>/templates
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 20
i managed to fix it by doing it all over again.
thanks.
Posts: 20
I ran into this error which upgrading Gallery: "Fatal error: Allowed memory size of X bytes exhausted...."
Our machine has over 64MB allocated. Does the Gallery really eats up so much memory?!
Posts: 4353
Well I've never had it eat up more than 16MB. Is this on the same machine and same install as we've been talking about or is it a different setup, like your production setup?
If this is not your test install on your test server, please create a new topic, posting information about the production setup, gallery version you are trying to upgrade and the version you are trying to install.
Also zip the upgrade log located in your g2data and post that.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here