Troubleshooting Gallery 2
More links on troubleshooting Gallery 2: Category:Gallery 2:Troubleshooting
Do this first
- Clear your Gallery caches! - See FAQ: How can I clear cached data?
- Ensure the Gallery application files are intact! - FAQ: How can I make sure that my installation files are all intact?
- Clear your web-browser caches (cookies, page cache)!
- Enable 'buffered' debug mode to ensure that no important warnings or details are hidden
Important Note: If you are not logged in as administrator, you need to enable 'buffered' debug mode to see the error name and the details. See: FAQ: How to enable Gallery's debug mode?. If 'buffered' debug mode does not show anything, you can try the 'immediate' or 'logged' debug mode.
Troubleshooting by...
You can either try to find your specific issue by looking for a specific 'error name' or by locating your issue in the categorized symptoms.
Error Name
Do you get the error just when browsing to the frontpage of your Gallery? If the error only occurs when browsing to a specific page / album or when attempting a special action, you should first try to 'troubleshoot by symptom / attempted action' (see below).
Error Name |
Solution
|
ERROR_PLATFORM_FAILURE
|
FAQ: How can I fix the filesystem permissions of the Gallery storage folder?
|
ERROR_OBSOLETE_DATA
|
FAQ: How can I clear cached data?
|
ERROR_REQUEST_FORGED
|
- Logout or clear your browser cookies and then try again.
- If your Gallery is integrated in a blog, portal, forum, ... ensure that you got the latest version of the integration.
|
ERROR_STORAGE_FAILURE
|
|
ERROR_BAD_PARAMETER
|
Did you customize / edit any template (.tpl) files or are you using a 3rd party theme or module? Try to rule out the possibility of being broken by this non-official code by removing it (in case of themes / modules: deactivate them, don't just remove them from the modules/, themes/ folder).
|
ERROR_COLLISION
|
When trying to log in, you get a Error_Collision; Try to repair and or optimize the 'g2_SessionMap' in phpmyadmin.
|
ERROR_LOCK_TIMEOUT
|
See FAQ: I suddenly get an ERROR_LOCK_TIMEOUT message, what can I do?
|
ERROR_MISSING_ITEM
|
- If you can still access your 'Site Admin' section, you should consider running the 'integrity check' of the 3rd party module 'integrity'. It's available via 'Site admin' -> 'Plugins' since Gallery 2.2. See Installing Additional Components.
- TODO: Add link to instructions on how to manually fix such issues.
|
Symptom / Attempted Action
Please try to locate your issue in the below categorization. And don't forget that the debug mode can show a lot more information about a problem than you'd see without.
Installation
Symptom / Attempted Action |
Solution
|
Can't authenticate (Step 2) / login.txt
|
See FAQ: The installer does not accept my login.txt file. What's wrong?
|
System Checks report a problem with the 'file integrity'
|
See FAQ: What about the warning for missing / modified files in the installer?
|
Storage Setup (Step 4) - Error creating the directory structure
|
- Mostly this can happen with Windows / IIS servers. See Installation in Windows Server
- In case it happens on a linux / unix server and you confirmed via FTP program that the permissions of the g2data folder are world-writeable (777), please talk to your webhost to find out why a PHP script wouldn't be allowed to create a folder structure in g2data/.
|
Storage Setup (Step 4) - Page blank / timing out when trying to submit
|
In case you're using G2.1.2, try G2.2. And you should check the error log of the webserver.
|
Losing Session / Falling back to authentication step
|
In case you're using G2.1.2, try G2.2. (related cookieless issue in 2.1). Also you should check the session settings of PHP. You can look at the PHP settings with a PHPInfo page, which is explained in: FAQ: What information is required when I ask for help in the forums?
|
Database Setup (Step 5) - Missing / Incorrect database connection information
|
- The information to connect to your database is different for every host. Please ask your webhost for the correct database connection information.
- Usually, this information can also be found somewhere in your administration panel of your website (not part of Gallery).
- Many webhosts add a prefix (e.g. your account name) to the database name and the database user name.
- Don't bother changing the 'column prefix' and the 'table prefix' if you don't understand what they're for.
|
Database Setup (Step 5) - Client does not support authentication protocol
|
See FAQ: Why can't I install with MySQL 4.1 or higher? and FAQ: MySQL Client does not support authentication protocol error
|
Database Setup (Step 5) - Other connection problems
|
|
Database Setup (Step 5) - Non-Default Port
|
If you need to use a non-default port, just append :xxxx to the Host Name, e.g. 'localhost:3307' for port 3307 on localhost.
|
Install Core Module (step 8) fails
|
- See FAQ: I get an error in the installation step 8. What's wrong? (since Gallery 2.2, we warn you about this issue in the System Checks step already)
- Ensure that the PHP memory_limit is 16 MB or more. 8 MB is often not enough.
- Refreshing the page / doing the step again does not help.
- Sometimes, the problem goes away by running the installer again.
- To retry, you need to delete the storage folder, drop the database and start the installer from step 4 (or earlier) again, redoing these steps. Note: To save you some time, you can just click on the "Database Setup" step link on the left, click "save" and then click "erase". That way you don't have to manually delete the storage folder and the database.
|
Upgrade
Images
Symptom / Attempted Action |
Solution
|
Thumbnails / Resized Images don't get generated correctly
|
See FAQ: Thumbnails / resized images don't get generated properly. How can it be fixed?
|
No images are shown at all
|
|
Errors when trying to build thumbnails / resized images
|
Uninstall and then reinstall image toolkits. Details: FAQ: Thumbnails / resized images don't get generated properly. How can it be fixed?
|
Thumbnails are (not) square instead of preserving the normal aspect ratio
|
Gallery generates square thumbnails if the 'square thumbs' module is active. Deactivate this module in 'Site Admin' -> 'Plugins' ('Modules' until G2.2) to change this. To change existing thumbnails, you need to rebuild them. Go to 'Edit Album' -> 'Album' to rebuid existing thumbnails according to the new settings.
|
Error when trying to view images
|
What kind of error? See the below section about 'troubleshooting by error name'.
|
Images load very slowly
|
- Apache mod_deflate / gzip not deactivated for binary files?
- Is the Server CPU, file I/O or bandwidth limited? See: Performance Tips
|
Larger images are distored / corrupted
|
- Very rare issue. No details yet. We suspect webserver configuration issues / webserver bugs.
- Check via FTP whether the files in g2data/albums/ are correct. Helps to find out whether the files on the server are corrupted or if they get corrupted during the transfer to the browser.
|
Videos / Flash
Symptom / Attempted Action |
Solution
|
Download link instead of movie player
|
- Did you set the dimensions of the video in 'Edit movie' -> 'Movie'? Gallery only shows an embedded movie player if the dimensions are set (to a value greater than 0). You can play the movie on your computer to find out its dimensions (movie players like VLC or Windows Media Player show the dimesions in the movie properties.
- Note: If the ffmpeg module is active, Gallery will detect and set the dimensions for all movies automatically (unless your ffmpeg binary can't handle a specific movie type).
|
No thumbnail for videos
|
- Is the ffmpeg module active? Gallery can only generate thumbnails for movies with this module.
- Can your ffmpeg binary handle the specific movie type? In 'Site Admin' -> 'ffmpeg' you can click 'Test' to see what types of video it should handle correctly.
|
Cannot locate ffmpeg binary
|
Please see ffmpeg module for further information.
|
Movies are not playing
|
See FAQ: Movies are not playing, why?
|
Adding Items / Albums / Upload
Symptom / Attempted Action |
Solution
|
I can't upload anything
|
- To diagnose this problem you should use the 'Add items' -> 'From browser' method since it shows most debug information.
- In case PHP uploads are disabled completely on your webserver, there is a warning about that on the 'Add items' -> 'From browser' page. Also, this page shows the upload limits.
- What exactly do you see when you try to upload a file? Any errors?
- Verify that PHP's upload_tmp_dir is configured correctly. If you consult your webserver's error log, you might see 'PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0'. In that case, upload_tmp_dir is either not defined or the webserver doesn't have access to write a file in that directory. Other errors / warnings might have the same cause.
|
I can't upload big files
|
See FAQ: Why can't I upload big files (e.g. over a megabyte or two)?
|
I get an ERROR_STORAGE_FAILURE after I click the upload button
|
See FAQ: I get ERROR_STORAGE_FAILURE when adding new photos or creating albums, what should I do?
|
Login
See FAQ: I can't login anymore, what can I do?
Symptom / Attempted Action |
Solution
|
Login fails with error / warning
|
- Forgot password? (does email not work? Contact admin, admins can use login.txt instead and fix email or reset the user account)
- Do you have any special characters in your password? Prior to Gallery 2.1 this could lead to login problems under certain circumstances. Consider upgrading your Gallery.
- Does it say your user account is "disabled"? (since G2.2) Use the "Forgot Password" link on the login page to reactivate your account.
|
Login fails and just displays a normal Gallery page again
|
- Often clearing the browser cookie cache helps. Check your web-browser settings and clear the cookies for your Gallery website.
- Sometimes, you are actually logged in but still see a page that looks like you are not logged in because your browser did not update its own cache. Please check your web-browser settings and clear the browser cache.
- Is your webserver IIS/5.0 or older and is your Gallery 2 version older than 2.0? We added a workaround for an IIS bug shortly before the official release of Gallery 2.0, you should upgrade your Gallery.
|
Toolkits / Module Activation
Themes
Modules
Translation / Localization
Other