编辑“Gallery2:FAQ

跳转至: 导航、​ 搜索
警告:您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您登录创建一个账户,您的编辑将归属于您的用户名,且将享受其他好处。

该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。

最后版本 您的文本
第28行: 第28行:
There are two ways of '''keeping current''' any time, using nightly builds or using Subversion.<br/>
There are two ways of '''keeping current''' any time, using nightly builds or using Subversion.<br/>
[http://www.fw2.net/files/gallery Chetan Sarva], [http://jpmullan.com/galleryupdates Jesse Mullan] and [http://www.gallery2.hu Gallery2.EU] both offer nightly builds.<br/>
[http://www.fw2.net/files/gallery Chetan Sarva], [http://jpmullan.com/galleryupdates Jesse Mullan] and [http://www.gallery2.hu Gallery2.EU] both offer nightly builds.<br/>
The instructions for using Subversion can be found [[Gallery:Gallery:Using Subversion|here]] . You can also find instructions for using TortoiseSVN [[Gallery:Gallery:Using Subversion on Windows|here]] .
The instructions for using Subversion can be found [[Gallery:Using Subversion|here]] . You can also find instructions for using TortoiseSVN [[Gallery:Using Subversion on Windows|here]] .


To get the SVN version of Gallery, see the next FAQ item.
To get the SVN version of Gallery, see the next FAQ item.
第36行: 第36行:


==Subversion uses too much disk space!==
==Subversion uses too much disk space!==
Subversion keeps a second copy of every file so commands like "svn status" and "svn diff" can run quickly, without going over the network.  This does double the space required.. if you like the convenience of "svn update" but aren't doing development so you don't use status/diff much, then [http://subversion.tigris.org/issues/show_bug.cgi?id=525 vote for this feature] and hopefully subversion will support it someday.  For now we offer a script called [[Gallery:Gallery:Using Subversion#How do I use less disk space for a SVN checkout?|svnSlim]].
Subversion keeps a second copy of every file so commands like "svn status" and "svn diff" can run quickly, without going over the network.  This does double the space required.. if you like the convenience of "svn update" but aren't doing development so you don't use status/diff much, then [http://subversion.tigris.org/issues/show_bug.cgi?id=525 vote for this feature] and hopefully subversion will support it someday.  For now we offer a script called [[Gallery:Using Subversion#How do I use less disk space for a SVN checkout?|svnSlim]].


==How to upgrade Gallery2?==
==How to upgrade Gallery2?==
See: [[Gallery:Gallery2:Upgrading|Upgrading Gallery 2]]
See: [[Gallery2:Upgrading|Upgrading Gallery 2]]


==How do I prevent users from accessing my site during maintenance or upgrades?==
==How do I prevent users from accessing my site during maintenance or upgrades?==
第60行: 第60行:


==I would love to write some modules, got anything useful for me?==
==I would love to write some modules, got anything useful for me?==
Start with [[Gallery:Gallery2:Developer_Starterkit|G2 Developer Starter Kit]] . There you will find reference to how our team works and where to find the needed documentation. First link there is the G2 Developers Guide which is a must-read before you start. Not every detail is described there yet and some stuff is outdated, but there you will get the general "feeling" on how and why our architecture is how it is. The API for all classes is self-documented with phpdoc in the code, which is extracted to the G2 API Documentation (last link in the Starter Kit).  
Start with [[Gallery2:Developer_Starterkit|G2 Developer Starter Kit]] . There you will find reference to how our team works and where to find the needed documentation. First link there is the G2 Developers Guide which is a must-read before you start. Not every detail is described there yet and some stuff is outdated, but there you will get the general "feeling" on how and why our architecture is how it is. The API for all classes is self-documented with phpdoc in the code, which is extracted to the G2 API Documentation (last link in the Starter Kit).  
If you are on Windows and have trouble with the Makefiles to generate stuff for you, have a look at virshu 's howto [http://www.rabinovich.org/gallery2/docs Building Gallery 2 on Windows].
If you are on Windows and have trouble with the Makefiles to generate stuff for you, have a look at virshu 's howto [http://www.rabinovich.org/gallery2/docs Building Gallery 2 on Windows].


==How can I integrate G2 into my website?==
==How can I integrate G2 into my website?==
For basic integration, you can edit the theme templates to show Gallery 2 inside your own page with your header / footer / menu etc.
For basic integration, you can edit the theme templates to show Gallery 2 inside your own page with your header / footer / menu etc.
Please see [[Gallery:Gallery2:How_Tos#Website_Integration|Visual Integration HowTo]] as well as the [[Gallery:Gallery2:Themes|Theme]] and [[Gallery:Gallery2:Tpl_Reference|Template]] docs.
Please see [[Gallery2:How_Tos#Website_Integration|Visual Integration HowTo]] as well as the [[Gallery2:Themes|Theme]] and [[Gallery2:Tpl_Reference|Template]] docs.


For application level integration (embedded G2) see the [[Gallery:Gallery2:Integration_Howto|Integration HowTo]] and the [http://gallery.menalto.com/forum/g2_integration Embedding & Integration Forum] for existing integrations and to discuss your plans and issues.
For application level integration (embedded G2) see the [[Gallery2:Integration_Howto|Integration HowTo]] and the [http://gallery.menalto.com/forum/g2_integration Embedding & Integration Forum] for existing integrations and to discuss your plans and issues.


==I have some experience in linux compiling and noticed some make files and other things that would appear to need compiling... do I need to?==
==I have some experience in linux compiling and noticed some make files and other things that would appear to need compiling... do I need to?==
第77行: 第77行:


==How can I "zap" my G2 data? How do I easily clear out /g2data and the DB?==
==How can I "zap" my G2 data? How do I easily clear out /g2data and the DB?==
If you have manually dropped your DB or some of the files are not deletable by you (for instance, they are owned by the webserver's user) you might find [[Gallery:Downloads:Cleanup_Script|Bharat's Cleanup Script]] useful.  You can also point your browser to /gallery2/lib/support/ or /gallery2/lib/test/tools, the former is for those with any package but the dev package.  The latter is part of the dev package.
If you have manually dropped your DB or some of the files are not deletable by you (for instance, they are owned by the webserver's user) you might find [[Downloads:Cleanup_Script|Bharat's Cleanup Script]] useful.  You can also point your browser to /gallery2/lib/support/ or /gallery2/lib/test/tools, the former is for those with any package but the dev package.  The latter is part of the dev package.


Also, the G2 installer can "clean" your g2data directory. That is, it removes everything and then it adds the basic structure again, just with empty subdirectories. For this, you have to make sure there is a versions.dat file in the g2data directory and then advance to the Database Setup Step (step 5) and after hitting save, you should see the option "Erase".
Also, the G2 installer can "clean" your g2data directory. That is, it removes everything and then it adds the basic structure again, just with empty subdirectories. For this, you have to make sure there is a versions.dat file in the g2data directory and then advance to the Database Setup Step (step 5) and after hitting save, you should see the option "Erase".
第132行: 第132行:


==Can I update from G1 -> G2?==
==Can I update from G1 -> G2?==
Yes. The basic strategy is that you install and configure a copy of Gallery 2 right next to your copy of Gallery 1, then you use the [[Gallery:Gallery2:Modules:migrate |migration module]] to import all your Gallery 1 data (users, albums, photos, metadata) into your Gallery 2.  This will make a complete copy of your data in Gallery 2 and then you're free to delete your Gallery 1 install.  It will even give you mod_rewrite rules that can redirect all your old Gallery 1 urls to the correct places in Gallery 2.  If you don't have enough free disk space to migrate it all at once, you can migrate a few albums at a time.
Yes. The basic strategy is that you install and configure a copy of Gallery 2 right next to your copy of Gallery 1, then you use the [[Gallery2:Modules:migrate |migration module]] to import all your Gallery 1 data (users, albums, photos, metadata) into your Gallery 2.  This will make a complete copy of your data in Gallery 2 and then you're free to delete your Gallery 1 install.  It will even give you mod_rewrite rules that can redirect all your old Gallery 1 urls to the correct places in Gallery 2.  If you don't have enough free disk space to migrate it all at once, you can migrate a few albums at a time.


Please refer to the [[Gallery:Gallery2:migration|detailed migration guide]] if you have any problems.
Please refer to the [[Gallery2:migration|detailed migration guide]] if you have any problems.


==Where can I find NetPBM, jhead or ImageMagick binaries to use with G2?==
==Where can I find NetPBM, jhead or ImageMagick binaries to use with G2?==
第147行: 第147行:
==How can I move my storage folder to another path?==
==How can I move my storage folder to another path?==
Here's a step by step guide:  
Here's a step by step guide:  
# Before moving the directory, consider the [[Gallery:Gallery2:Security|security aspects]] and ensure that the new home for your Gallery data folder is outside the web-root.
# Before moving the directory, consider the [[Gallery2:Security|security aspects]] and ensure that the new home for your Gallery data folder is outside the web-root.
# Move the storage folder e.g. by using the move/rename feature of your ftp application, or a file browser in your webhost's admin panel or within the shell.
# Move the storage folder e.g. by using the move/rename feature of your ftp application, or a file browser in your webhost's admin panel or within the shell.
# Verify that permissions on the directory and files inside are owned by the web server or writable (chmod 777)
# Verify that permissions on the directory and files inside are owned by the web server or writable (chmod 777)
第169行: 第169行:
==How can I move my gallery installation from one server to another?==
==How can I move my gallery installation from one server to another?==
Here's a step by step guide:  
Here's a step by step guide:  
# [[Gallery:Gallery2:How do I Make Backups of My Database|Backup your installation]]!
# [[Gallery2:How do I Make Backups of My Database|Backup your installation]]!
# Upgrade G2 on the old server to the same G2 version which you plan to install on the new server.  
# Upgrade G2 on the old server to the same G2 version which you plan to install on the new server.  
# Deactivate AND uninstall the url rewrite module if it is active because it will generate incorrect urls after your move.
# Deactivate AND uninstall the url rewrite module if it is active because it will generate incorrect urls after your move.
# Backup G2 on your old host.  Backup the database ''and'' the g2data folder.  
# Backup G2 on your old host.  Backup the database ''and'' the g2data folder.  
# Copy the g2data folder and import the mysql database to your new host.  You can skip copying the g2data/locks directory if you want.
# Copy the g2data folder and import the mysql database to your new host.  You can skip copying the g2data/locks directory if you want.
# If you're using MySQL and moving from a windows based server to a *nix (unix, linux, ...) based server, you will have to change each database table name from lower case (e.g. g2_albumitem) to a case-sensitive name (in this example g2_AlbumItem). See script [[Gallery:Image:CaseSensitiveTables.zip]] to automate this process a bit.
# If you're using MySQL and moving from a windows based server to a *nix (unix, linux, ...) based server, you will have to change each database table name from lower case (e.g. g2_albumitem) to a case-sensitive name (in this example g2_AlbumItem). See script [[Image:CaseSensitiveTables.zip]] to automate this process a bit.
# Install the gallery2 code (extract gallery2.tar.gz/zip) on the new host. It should be the same G2 version as you last used on the old host (that's why you did the upgrade in step 2.).  
# Install the gallery2 code (extract gallery2.tar.gz/zip) on the new host. It should be the same G2 version as you last used on the old host (that's why you did the upgrade in step 2.).  
# Have your webhosting partner change the owner of the g2data dir recursively (all files and folders) to the webserver user, unless php cgi + suexec is used. If you don't understand this instruction, forward it directly to your webhosting partner. The webhost has to do this only once, I'm sure they will do it. If they don't then make sure that the webserver user can write and delete files in this directory (chmod 777).
# Have your webhosting partner change the owner of the g2data dir recursively (all files and folders) to the webserver user, unless php cgi + suexec is used. If you don't understand this instruction, forward it directly to your webhosting partner. The webhost has to do this only once, I'm sure they will do it. If they don't then make sure that the webserver user can write and delete files in this directory (chmod 777).
第205行: 第205行:
Performance is an important factor to us. We have introduced caches at strategic places and are working on ways to improve all of the issues above to increase performance. It is secondary to making a fully featured product for now, but as we get closer to the official release date it will gain higher priority for the development team.
Performance is an important factor to us. We have introduced caches at strategic places and are working on ways to improve all of the issues above to increase performance. It is secondary to making a fully featured product for now, but as we get closer to the official release date it will gain higher priority for the development team.


For further tips, be sure to check out [[Gallery:Gallery2:Performance_Tips|Gallery2 Performance Tips]].
For further tips, be sure to check out [[Gallery2:Performance_Tips|Gallery2 Performance Tips]].


'''Note''': There's a known bug in the 2.0 release where if you import a large number of albums from Gallery 1, it can fail to optimize the permissions table leading to really bad performance (2-3+ second response times for a page load).  If that happens, you can fix it.  Just change any permission anywhere in your G2.  You may have to do this a couple of times because each time you change a permission it has a 50% chance of re-optimizing your permission table.  If you want to check the before/after, you can run this query
'''Note''': There's a known bug in the 2.0 release where if you import a large number of albums from Gallery 1, it can fail to optimize the permissions table leading to really bad performance (2-3+ second response times for a page load).  If that happens, you can fix it.  Just change any permission anywhere in your G2.  You may have to do this a couple of times because each time you change a permission it has a 50% chance of re-optimizing your permission table.  If you want to check the before/after, you can run this query
第259行: 第259行:
A full backup consists of your 'g2data' directory, database, /gallery/config.php and /gallery/.htaccess.  NOTE: If you don't use the URL Rewrite module you won't have a .htaccess file.
A full backup consists of your 'g2data' directory, database, /gallery/config.php and /gallery/.htaccess.  NOTE: If you don't use the URL Rewrite module you won't have a .htaccess file.
<br />
<br />
:*[[Gallery:Gallery2:How_do_I_Make_Backups_of_My_Database|How Do I Make Backups of My Database]]
:*[[Gallery2:How_do_I_Make_Backups_of_My_Database|How Do I Make Backups of My Database]]


==My Gallery URLs begin with /v/ and /d/, why?==
==My Gallery URLs begin with /v/ and /d/, why?==
第269行: 第269行:
* For links to a specific album / item in your Gallery 2, browse to the album / item and copy the address that is in the address bar of your browser (remove the g2_GALLERYSID= stuff, if there is any)
* For links to a specific album / item in your Gallery 2, browse to the album / item and copy the address that is in the address bar of your browser (remove the g2_GALLERYSID= stuff, if there is any)
* If you are wondering why the links look like main.php?g2_view=core.ShowItem&g2_itemId=35 for item links and main.php?g2_view=core.DownloadItem&g2_itemId=35 for image links: These links may look a little weird, especially the DownloadItem link since you'd expect that a image URL looks rather like album/image.jpg, but it is actually a image link.  If you want nicer links that look more ''normal'', e.g. image links that end with .jpg, then activate the Gallery 2 URL rewrite module.  You can do that by logging into Gallery2 with the administrator account, then click ''site admin'', then ''Plugins''.  At the top of the list you should see URL Rewrite, and on the right of that line, click on ''activate''.  Follow the on-line instructions from there.  When you're successful, a green tick appears next to the plugin name.
* If you are wondering why the links look like main.php?g2_view=core.ShowItem&g2_itemId=35 for item links and main.php?g2_view=core.DownloadItem&g2_itemId=35 for image links: These links may look a little weird, especially the DownloadItem link since you'd expect that a image URL looks rather like album/image.jpg, but it is actually a image link.  If you want nicer links that look more ''normal'', e.g. image links that end with .jpg, then activate the Gallery 2 URL rewrite module.  You can do that by logging into Gallery2 with the administrator account, then click ''site admin'', then ''Plugins''.  At the top of the list you should see URL Rewrite, and on the right of that line, click on ''activate''.  Follow the on-line instructions from there.  When you're successful, a green tick appears next to the plugin name.
* There is a module that prepares image and item links for you such that you don't have to right-click etc. See: [[Gallery:Gallery2:Modules:geturls|Preformatted URLs Module]]
* There is a module that prepares image and item links for you such that you don't have to right-click etc. See: [[Gallery2:Modules:geturls|Preformatted URLs Module]]


== How do I get updated items to show first in an album (like new items do) ==
== How do I get updated items to show first in an album (like new items do) ==
第275行: 第275行:
=Troubleshooting Gallery=
=Troubleshooting Gallery=
==I have a problem with something, what should I do?==
==I have a problem with something, what should I do?==
To start with, updating to the latest code is a good idea. It is possible that it is already fixed. Next you should probably look around the forums to see if the problem has already been posted. Try your luck with the search function in the [http://gallery.menalto.com/forum forums]. If that doesn't help, you probably want to ask for help in the support forum. Include [[Gallery:Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F|as much information as possible ]] in your support request.
To start with, updating to the latest code is a good idea. It is possible that it is already fixed. Next you should probably look around the forums to see if the problem has already been posted. Try your luck with the search function in the [http://gallery.menalto.com/forum forums]. If that doesn't help, you probably want to ask for help in the support forum. Include [[Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F|as much information as possible ]] in your support request.


==What information is required when I ask for help in the forums?==
==What information is required when I ask for help in the forums?==
第287行: 第287行:
  3. Save the text file and rename it to phpinfo.php (or any other file with the extension .php)
  3. Save the text file and rename it to phpinfo.php (or any other file with the extension .php)
  4. Upload the file to your gallery2 directory on the server
  4. Upload the file to your gallery2 directory on the server
* Make sure your file integrity is intact (see [[Gallery:Gallery2:FAQ#How_can_I_make_sure_that_my_installation_files_are_all_intact.3F|instructions]])
* Make sure your file integrity is intact (see [[Gallery2:FAQ#How_can_I_make_sure_that_my_installation_files_are_all_intact.3F|instructions]])
* A description of the problem (and the steps to reproduce if it may be a bug)
* A description of the problem (and the steps to reproduce if it may be a bug)
* The relevant error message and debug output.  
* The relevant error message and debug output.  
第297行: 第297行:


==How can I make sure that my installation files are all intact?==
==How can I make sure that my installation files are all intact?==
Browse to {{exampleurl|/upgrade/index.php}} or {{exampleurl|/install/index.php}} and advance to the System checks step. Make sure there are no warnings, and especially that the file integrity check passes (no missing / modified files). If there are missing / modified files, read  [[Gallery:Gallery2:FAQ#What_about_the_warning_for_missing_.26_modified_files_in_the_installer_.26_upgrader.3F|this FAQ entry]] to fix it.
Browse to {{exampleurl|/upgrade/index.php}} or {{exampleurl|/install/index.php}} and advance to the System checks step. Make sure there are no warnings, and especially that the file integrity check passes (no missing / modified files). If there are missing / modified files, read  [[Gallery2:FAQ#What_about_the_warning_for_missing_.26_modified_files_in_the_installer_.26_upgrader.3F|this FAQ entry]] to fix it.


Even if Gallery has already been installed, you can access the upgrade/ or install/ wizard at any time. Just advance to the "System Checks Step" and don't go any further. This step will show a warning for ''missing'' or ''modified'' files in the "integrity check". If there is a problem, you can click on the "+" sign to see a complete list of affected files.
Even if Gallery has already been installed, you can access the upgrade/ or install/ wizard at any time. Just advance to the "System Checks Step" and don't go any further. This step will show a warning for ''missing'' or ''modified'' files in the "integrity check". If there is a problem, you can click on the "+" sign to see a complete list of affected files.
第304行: 第304行:
Either you don't get any thumbnails / resized images at all or you get a "broken image" placeholder.
Either you don't get any thumbnails / resized images at all or you get a "broken image" placeholder.
* If you don't have any thumbnails / resized images at all, it means that there's probably no ''image toolkit'' module ''active'' in your G2 installation. G2 needs either the ''imagemagick'', ''netpbm'' or ''GD'' module to be active to generate thumbnails and resized images.
* If you don't have any thumbnails / resized images at all, it means that there's probably no ''image toolkit'' module ''active'' in your G2 installation. G2 needs either the ''imagemagick'', ''netpbm'' or ''GD'' module to be active to generate thumbnails and resized images.
** Please read: [[Gallery:Installing_an_Image_Processing_Library|Installing an Image Processing Library]]
** Please read: [[Installing_an_Image_Processing_Library|Installing an Image Processing Library]]
** Note: Imagemagick and netpbm both need an external binary application in addition to the G2 module. If the corresponding G2 module does not autodetect the path to your imagemagick / netpbm binaries, then it's most probably not available on your server. See the above link on how to get the binaries.
** Note: Imagemagick and netpbm both need an external binary application in addition to the G2 module. If the corresponding G2 module does not autodetect the path to your imagemagick / netpbm binaries, then it's most probably not available on your server. See the above link on how to get the binaries.
** Note: GD is either available in your PHP installation or not. If it works, make sure you have a large PHP memory_limit (> 16 MB), since GD is the only image toolkit in G2 that uses the PHP memory and not system memory. You will get broken thumbnails / resized images with GD unless the PHP memory_limit is large enough.
** Note: GD is either available in your PHP installation or not. If it works, make sure you have a large PHP memory_limit (> 16 MB), since GD is the only image toolkit in G2 that uses the PHP memory and not system memory. You will get broken thumbnails / resized images with GD unless the PHP memory_limit is large enough.
* If you get broken thumbnails and resized images (e.g. 92x92 pixel resizes), it means image toolkit(s) are active in G2 but they fail to generate thumbnails / resized images successfully.  
* If you get broken thumbnails and resized images (e.g. 92x92 pixel resizes), it means image toolkit(s) are active in G2 but they fail to generate thumbnails / resized images successfully.  
** Sometimes the image toolkit modules of Gallery need to be reconfigured (e.g. if your webhost changes something or if you move servers). Uninstall the image toolkit modules (imagemagick, netpbm, gd, ffmeg, jpegtran, dcraw, ...) and then install them again and try to activate them again. Note: Deactivating is not enough. You need to uninstall these modules.
** Sometimes the image toolkit modules of Gallery need to be reconfigured (e.g. if your webhost changes something or if you move servers). Uninstall the image toolkit modules (imagemagick, netpbm, gd, ffmeg, jpegtran, dcraw, ...) and then install them again and try to activate them again. Note: Deactivating is not enough. You need to uninstall these modules.
** If you're using GD, then you probably need to [[Gallery:Gallery1:FAQ#Why_do_I_get_the_error_Allowed_memory_size_of_Xxx_bytes_exhausted.3F|increase the PHP memory_limit]] . The best sign that the memory_limit is the problem is if you get normal thumbnails for small images but broken / no thumbnails for large images (large in dimensions / filesize).
** If you're using GD, then you probably need to [[Gallery1:FAQ#Why_do_I_get_the_error_Allowed_memory_size_of_Xxx_bytes_exhausted.3F|increase the PHP memory_limit]] . The best sign that the memory_limit is the problem is if you get normal thumbnails for small images but broken / no thumbnails for large images (large in dimensions / filesize).
** Most often if that happens, one or more image toolkits don't work correctly on your system. Try installing another image tookit module for G2, another toolkit might work.
** Most often if that happens, one or more image toolkits don't work correctly on your system. Try installing another image tookit module for G2, another toolkit might work.
** If you have multiple image toolkits installed, try disabling all but one of the image toolkit modules. Then add a new image to G2 to check if it works now. If not, deactive this image toolkit and activate another one. Check again, etc.  
** If you have multiple image toolkits installed, try disabling all but one of the image toolkit modules. Then add a new image to G2 to check if it works now. If not, deactive this image toolkit and activate another one. Check again, etc.  
** You can also try to just change the image ''site admin'' -> ''toolkit priority'', which is available if more than one image toolkits are active.
** You can also try to just change the image ''site admin'' -> ''toolkit priority'', which is available if more than one image toolkits are active.
** If activated, try to disable the [[Gallery:Gallery2:Modules:squarethumb|Square Thumbnails module]].
** If activated, try to disable the [[Gallery2:Modules:squarethumb|Square Thumbnails module]].
** There may be a bug in PHP.  Try adding ''$gallery->setConfig('apacheSetenvBroken', 1);'' to your config.php to disable using the apache_setenv() function
** There may be a bug in PHP.  Try adding ''$gallery->setConfig('apacheSetenvBroken', 1);'' to your config.php to disable using the apache_setenv() function
** If everything fails: For netpbm and imagemagick, you can find out why it fails by looking at the debug output. [[Gallery:Gallery2:faq#How_to_set.2Fuse_Gallery_in_debug_mode.3F|Enable buffered debug mode]] and add a new item to G2 and look for "executing"..."Regular output:"..."Error output:"... in the debug output.
** If everything fails: For netpbm and imagemagick, you can find out why it fails by looking at the debug output. [[Gallery2:faq#How_to_set.2Fuse_Gallery_in_debug_mode.3F|Enable buffered debug mode]] and add a new item to G2 and look for "executing"..."Regular output:"..."Error output:"... in the debug output.
* Once it works again, you can generate and fix the broken thumbnails / resized images with ''site admin'' -> ''maintenance'' -> ''Build all thumbnails/resizes''
* Once it works again, you can generate and fix the broken thumbnails / resized images with ''site admin'' -> ''maintenance'' -> ''Build all thumbnails/resizes''
* URL, "www" problem: If Gallery2 works OK when you navigate to (YourDomain.Ext) but fails with all broken images when you navigate to (www.YourDomain.Ext) then Deactivate AND Uninstall "Url Rewrite" in Admin Panel(Plugins).  This seems to be host-dependent.
* URL, "www" problem: If Gallery2 works OK when you navigate to (YourDomain.Ext) but fails with all broken images when you navigate to (www.YourDomain.Ext) then Deactivate AND Uninstall "Url Rewrite" in Admin Panel(Plugins).  This seems to be host-dependent.
第328行: 第328行:


==Why can't I install with MySQL 4.1 or higher?==
==Why can't I install with MySQL 4.1 or higher?==
If the installer gives you an error like "Client does not support authentication protocol" then the MySQL support builtin to your PHP is using an older password scheme than your MySQL database. See [[Gallery:Gallery2:faq#MySQL_.22Client_does_not_support_authentication_protocol.22_error|here]] for more information and a workaround to get you up and running without having to recompile or upgrade your PHP.
If the installer gives you an error like "Client does not support authentication protocol" then the MySQL support builtin to your PHP is using an older password scheme than your MySQL database. See [[Gallery2:faq#MySQL_.22Client_does_not_support_authentication_protocol.22_error|here]] for more information and a workaround to get you up and running without having to recompile or upgrade your PHP.


==I get an error about "max key length" installing with MySQL?==
==I get an error about "max key length" installing with MySQL?==
第345行: 第345行:


Please see:
Please see:
* [[Gallery:#How_to_display_PHP_errors.3F|How to display PHP errors?]]
* [[#How_to_display_PHP_errors.3F|How to display PHP errors?]]
* [[Gallery:#PHP_memory_limit_-_Why_do_I_get_the_error_Allowed_memory_size_of_Xxx_bytes_exhausted.3F|How to check / increase the memory limit?]]
* [[#PHP_memory_limit_-_Why_do_I_get_the_error_Allowed_memory_size_of_Xxx_bytes_exhausted.3F|How to check / increase the memory limit?]]
* [[Gallery:#What_is_the_webserver_error_log.3F|How can I view the error log of the webserver?]]
* [[#What_is_the_webserver_error_log.3F|How can I view the error log of the webserver?]]
* [[Gallery:#How_to_set.2Fuse_Gallery_in_debug_mode.3F|Always enable the 'buffered' debug mode first if there is a problem]]
* [[#How_to_set.2Fuse_Gallery_in_debug_mode.3F|Always enable the 'buffered' debug mode first if there is a problem]]


==When I click on item thumbnails, nothing happens, what's wrong?==
==When I click on item thumbnails, nothing happens, what's wrong?==
第372行: 第372行:
  C:\> cacls %COMSPEC% /E /G %COMPUTERNAME%\IUSR_%COMPUTERNAME%:R  
  C:\> cacls %COMSPEC% /E /G %COMPUTERNAME%\IUSR_%COMPUTERNAME%:R  


This adds the "read" permission to the IIS-user for the cmd.exe. Close the prompt and then try activating the imagemagick module again. [[Gallery:Gallery2:Installation on Windows Server 2003 and IIS6#Installing Binaries|More Info]]
This adds the "read" permission to the IIS-user for the cmd.exe. Close the prompt and then try activating the imagemagick module again. [[Gallery2:Installation on Windows Server 2003 and IIS6#Installing Binaries|More Info]]


==I use apache's mod_layout and notice some odd error messages, what is the problem?==
==I use apache's mod_layout and notice some odd error messages, what is the problem?==
第410行: 第410行:
==I can't install G2, what should I do?==
==I can't install G2, what should I do?==
So you tried to install G2 but you get an error, probably in the install core module step.  
So you tried to install G2 but you get an error, probably in the install core module step.  
See the list of [[Gallery:Gallery2:InstallationErrors|frequent installation errors]].
See the list of [[Gallery2:InstallationErrors|frequent installation errors]].


==I get a blank page / a network/webserver error, what's wrong?==
==I get a blank page / a network/webserver error, what's wrong?==
第428行: 第428行:


=== "You must enter the letters appearing in the picture." ===
=== "You must enter the letters appearing in the picture." ===
If you see this error message, then you either ignored the [[Gallery:Gallery2:Modules:captcha|CAPTCHA]] image or you CAPTCHA is enabled but no image is shown.
If you see this error message, then you either ignored the [[Gallery2:Modules:captcha|CAPTCHA]] image or you CAPTCHA is enabled but no image is shown.
* Please enter the letters and numbers from the CAPTCHA image into the input field below and try to login again.
* Please enter the letters and numbers from the CAPTCHA image into the input field below and try to login again.
* If no CAPTCHA image (= image with letters) is shown, then CAPTCHA isn't working correctly and you need to [[Gallery:#How_can_I_deactivate_a_module_when_I_am_unable_to_login.3F|deactivate it manually]].
* If no CAPTCHA image (= image with letters) is shown, then CAPTCHA isn't working correctly and you need to [[#How_can_I_deactivate_a_module_when_I_am_unable_to_login.3F|deactivate it manually]].
=== "Incorrect letters." ===
=== "Incorrect letters." ===
This error message is shown if you didn't interpret the [[Gallery:Gallery2:Modules:captcha|CAPTCHA]] image correctly.
This error message is shown if you didn't interpret the [[Gallery2:Modules:captcha|CAPTCHA]] image correctly.
* Please enter the letters and numbers from the CAPTCHA image into the input field below and try to login again.
* Please enter the letters and numbers from the CAPTCHA image into the input field below and try to login again.
=== Other Login Issues ===
=== Other Login Issues ===
第485行: 第485行:
==Gallery Remote can't find my G2, what's wrong?==
==Gallery Remote can't find my G2, what's wrong?==
Possible reasons (GR = Gallery Remote, G2 = Gallery 2):
Possible reasons (GR = Gallery Remote, G2 = Gallery 2):
* You need to activate the "remote" module in G2. See "Site admin" -> "Modules". If it isn't listed, download the module separately from the [[Gallery:Gallery2:Download#Modules|G2 Download Page]]. The module must be installed and activated
* You need to activate the "remote" module in G2. See "Site admin" -> "Modules". If it isn't listed, download the module separately from the [[Gallery2:Download#Modules|G2 Download Page]]. The module must be installed and activated
* You used Gallery 1 before you switched to G2 and you still have the "gallery_remote2.php" file in your gallery2/ folder. Delete it.
* You used Gallery 1 before you switched to G2 and you still have the "gallery_remote2.php" file in your gallery2/ folder. Delete it.
* You're using a proxy to connect to the internet. GR has problems with proxies.
* You're using a proxy to connect to the internet. GR has problems with proxies.
* Your G2 is embedded in another application and you use mode.embed.only = true in config.php. In G2.0.x, it works only mode.embed.only = false.
* Your G2 is embedded in another application and you use mode.embed.only = true in config.php. In G2.0.x, it works only mode.embed.only = false.
* You have a very old version of GR. Download and install the latest stable release from the [http://gallery.menalto.com/downloads Gallery Download Page].
* You have a very old version of GR. Download and install the latest stable release from the [http://gallery.menalto.com/downloads Gallery Download Page].
* When you connect with your web browser to <nowiki>http://www.example.com/gallery2/gallery_remote2.php</nowiki> you get a nice-looking page that says the page is not found. See the [[Gallery:http://codex.gallery2.org/index.php/GalleryRemote:FAQ#Connecting_to_a_G2_installation:_Server_contacted.2C_but_Gallery_not_found_at_this_URL GR FAQ]].
* When you connect with your web browser to <nowiki>http://www.example.com/gallery2/gallery_remote2.php</nowiki> you get a nice-looking page that says the page is not found. See the [[http://codex.gallery2.org/index.php/GalleryRemote:FAQ#Connecting_to_a_G2_installation:_Server_contacted.2C_but_Gallery_not_found_at_this_URL GR FAQ]].


==Publish XP shows a "web services error", what's wrong?==
==Publish XP shows a "web services error", what's wrong?==
第504行: 第504行:
Possible reasons:
Possible reasons:
* G2's URL rewrite module is active but doesn't work correctly. Fîx:  
* G2's URL rewrite module is active but doesn't work correctly. Fîx:  
:# [[Gallery:#How_do_I_prevent_users_from_accessing_my_site_during_maintenance_or_upgrades.3F|Put G2 into maintenance mode]]
:# [[#How_do_I_prevent_users_from_accessing_my_site_during_maintenance_or_upgrades.3F|Put G2 into maintenance mode]]
:# Browse to <nowiki>http://www.example.com/gallery/main.php?g2_view=core.PluginCallback&g2_pluginId=rewrite&g2_pluginType=module&g2_command=deactivate</nowiki>
:# Browse to <nowiki>http://www.example.com/gallery/main.php?g2_view=core.PluginCallback&g2_pluginId=rewrite&g2_pluginType=module&g2_command=deactivate</nowiki>
(replace www.example.com/gallery2/ with the URL of your own Gallery2 installation)
(replace www.example.com/gallery2/ with the URL of your own Gallery2 installation)
第524行: 第524行:
::(replace www.example.com/gallery2/ with the URL of your own Gallery2 installation)
::(replace www.example.com/gallery2/ with the URL of your own Gallery2 installation)


This will only work if you are already logged in as administrator. See [[Gallery:Gallery2:FAQ#Images_don.27t_show_up_and_the_album_.2F_photo_links_don.27t_work.2C_what_can_I_do.3F|another FAQ entry]] on how to manually login if the normal login method doesn't work anymore.
This will only work if you are already logged in as administrator. See [[Gallery2:FAQ#Images_don.27t_show_up_and_the_album_.2F_photo_links_don.27t_work.2C_what_can_I_do.3F|another FAQ entry]] on how to manually login if the normal login method doesn't work anymore.


==install/index.php is blank or shows an error. What's wrong?==
==install/index.php is blank or shows an error. What's wrong?==
第551行: 第551行:
* Make sure this login.txt contains just the authentication key (a 1 line string)
* Make sure this login.txt contains just the authentication key (a 1 line string)
* If you can pass the authentication step but loop / fall back to step 1 after advancing to step 3 or higher, then you should use a nightly snapshot / release newer than 2005/11/17 since cookieless installing was broken for a short period before this date (inproper PHP session configuration values can also lead to cookieless browsing)
* If you can pass the authentication step but loop / fall back to step 1 after advancing to step 3 or higher, then you should use a nightly snapshot / release newer than 2005/11/17 since cookieless installing was broken for a short period before this date (inproper PHP session configuration values can also lead to cookieless browsing)
* Make sure your PHP session.save_handler is set to "files" and not to "user" (or "mm"). In development builds since 2005/11/27 or since Gallery 2.1, you shouldn't have to worry about this setting (unless PHP ini_set / ini_get are disabled in your PHP installation). You can check these PHP configuration values in a [[Gallery:Gallery2:FAQ#What_information_is_required_when_I_ask_for_help_in_the_forums.3F|phpinfo page]] on your server.
* Make sure your PHP session.save_handler is set to "files" and not to "user" (or "mm"). In development builds since 2005/11/27 or since Gallery 2.1, you shouldn't have to worry about this setting (unless PHP ini_set / ini_get are disabled in your PHP installation). You can check these PHP configuration values in a [[Gallery2:FAQ#What_information_is_required_when_I_ask_for_help_in_the_forums.3F|phpinfo page]] on your server.
* Try clearing your browser cookes. In some cases there might be conflicting cookies when several applications are installed on the same host and clearing the cookies ensure that Gallery gets a clean slate to work with during installation (This issue should be fixed in 2.2.1).
* Try clearing your browser cookes. In some cases there might be conflicting cookies when several applications are installed on the same host and clearing the cookies ensure that Gallery gets a clean slate to work with during installation (This issue should be fixed in 2.2.1).


第574行: 第574行:
::Note: add additional extensions as needed
::Note: add additional extensions as needed
|-
|-
|Without the [[Gallery:Gallery2:Modules:ffmpeg|ffmpeg module]] active, movies are not playing inline, you only see a Download link.
|Without the [[Gallery2:Modules:ffmpeg|ffmpeg module]] active, movies are not playing inline, you only see a Download link.
|Go to "edit movie", and set movie dimensions manually. If dimensions aren't set, the embedded movie player feature will not work for this item.
|Go to "edit movie", and set movie dimensions manually. If dimensions aren't set, the embedded movie player feature will not work for this item.
|-
|-
第590行: 第590行:
== I get a warning for missing themes / modules in the upgrader, what should I do? ==
== I get a warning for missing themes / modules in the upgrader, what should I do? ==
Probably you chose the wrong package for your upgrade. Only the full package has all official themes and modules. Another reason could be that you were using non-official / 3rd party modules / themes and you forgot to keep them in your modules/ or themes/ folder.
Probably you chose the wrong package for your upgrade. Only the full package has all official themes and modules. Another reason could be that you were using non-official / 3rd party modules / themes and you forgot to keep them in your modules/ or themes/ folder.
* If the themes / modules that are missing are official ones, you can download them from the [[Gallery:Gallery2:Download|Download Page]].
* If the themes / modules that are missing are official ones, you can download them from the [[Gallery2:Download|Download Page]].
* For 3rd party / non-official themes, please check the [[Gallery:Gallery2:UserContributions|User Contributions]] page for the latest version of your modules / themes
* For 3rd party / non-official themes, please check the [[Gallery2:UserContributions|User Contributions]] page for the latest version of your modules / themes


If you can't get the latest version of a specific module / theme and nothing helps, the following SQL query can help you to get at least through the upgrade wizard:
If you can't get the latest version of a specific module / theme and nothing helps, the following SQL query can help you to get at least through the upgrade wizard:
第617行: 第617行:
If you get the error
If you get the error
  Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)
  Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)
then you are probably using a buggy MySQL version. MySQL 4.1.16 and later as well as 5.0.17 and later have this bug fixed. Please see: http://bugs.mysql.com/bug.php?id=10446 .  If you get this error during upgrade from G2.0.x or older to G2.1 or newer, please see: [[Gallery:Gallery2:Known_Issues:MySQL_UTF8_Upgrade|MySQL Upgrade Issue - UTF-8]].
then you are probably using a buggy MySQL version. MySQL 4.1.16 and later as well as 5.0.17 and later have this bug fixed. Please see: http://bugs.mysql.com/bug.php?id=10446 .  If you get this error during upgrade from G2.0.x or older to G2.1 or newer, please see: [[Gallery2:Known_Issues:MySQL_UTF8_Upgrade|MySQL Upgrade Issue - UTF-8]].


== I enabled mod_rewrite, but it's not working, and now I can't get back to disable it - how else can I do this? ==
== I enabled mod_rewrite, but it's not working, and now I can't get back to disable it - how else can I do this? ==
第647行: 第647行:
== I get a ERROR_PLATFORM_FAILURE, what should I do? ==
== I get a ERROR_PLATFORM_FAILURE, what should I do? ==
Most probably the filesystem permissions for your G2 storage folder (usually 'g2data') are incorrect. See:
Most probably the filesystem permissions for your G2 storage folder (usually 'g2data') are incorrect. See:
[[Gallery:Gallery2:FAQ#How_can_I_fix_the_filesystem_permissions_of_the_Gallery_storage_folder.3F|How can I fix the filesystem permissions of the Gallery storage folder?]].
[[Gallery2:FAQ#How_can_I_fix_the_filesystem_permissions_of_the_Gallery_storage_folder.3F|How can I fix the filesystem permissions of the Gallery storage folder?]].
In some cases the host has moved some files around and the G2data folder is in a different place.  Verify that the correct path to the G2data directory in config.php.
In some cases the host has moved some files around and the G2data folder is in a different place.  Verify that the correct path to the G2data directory in config.php.
     $gallery->setConfig('data.gallery.base', '/Verify/this/path/to/g2data/');
     $gallery->setConfig('data.gallery.base', '/Verify/this/path/to/g2data/');
第658行: 第658行:
* You can also try to change the permissions to 777 (read & writeable for everyone) with your FTP program. If all fails, please ask in the forum for help such that we can verify that it is indeed a filesystem permissions problem. If it actually is one, you'll have to ask your webhost to change the filesystem permissions '''recursively''' for you (e.g. chmod -R 777 g2data).
* You can also try to change the permissions to 777 (read & writeable for everyone) with your FTP program. If all fails, please ask in the forum for help such that we can verify that it is indeed a filesystem permissions problem. If it actually is one, you'll have to ask your webhost to change the filesystem permissions '''recursively''' for you (e.g. chmod -R 777 g2data).


* What might help is removing all cached data from the storage folder. Please see: [[Gallery:#How_can_I_clear_cached_data.3F|How can I clear cached data?]]
* What might help is removing all cached data from the storage folder. Please see: [[#How_can_I_clear_cached_data.3F|How can I clear cached data?]]


* A common issue is:
* A common issue is:
第679行: 第679行:


== "Sucessfully" uploaded images show a thumbnail, but display a black page when clicked on ==
== "Sucessfully" uploaded images show a thumbnail, but display a black page when clicked on ==
* [[Gallery:Gallery2:FAQ#PHP_memory_limit_-_Why_do_I_get_the_error_Allowed_memory_size_of_Xxx_bytes_exhausted.3F|Increase the PHP memory_limit]]
* [[Gallery2:FAQ#PHP_memory_limit_-_Why_do_I_get_the_error_Allowed_memory_size_of_Xxx_bytes_exhausted.3F|Increase the PHP memory_limit]]
* [[Gallery:Gallery2:FAQ#Thumbnails_.2F_resized_images_don.27t_get_generated_properly.2C_how_can_it_be_fixed.3F|Change the image toolkit priority]]
* [[Gallery2:FAQ#Thumbnails_.2F_resized_images_don.27t_get_generated_properly.2C_how_can_it_be_fixed.3F|Change the image toolkit priority]]


== I suddenly got an "ERROR_LOCK_TIMEOUT" message, what do I do? ==
== I suddenly got an "ERROR_LOCK_TIMEOUT" message, what do I do? ==
第686行: 第686行:
* If there is no concurrent operation, then maybe an old 'lock' is still lying around in the Gallery system blocking everything else.
* If there is no concurrent operation, then maybe an old 'lock' is still lying around in the Gallery system blocking everything else.
** If you are using database locking (there is a setting at the bottom of 'Site admin' -> 'General' to switch between database and file based locking), then you can try to get rid of this old 'lock' by using phpMyAdmin to delete all rows of the 'g2_Lock' table.
** If you are using database locking (there is a setting at the bottom of 'Site admin' -> 'General' to switch between database and file based locking), then you can try to get rid of this old 'lock' by using phpMyAdmin to delete all rows of the 'g2_Lock' table.
** If you are using file based locking, you can try to clear the caches to get rid of that 'lock'. See: [[Gallery:#How_can_I_clear_cached_data.3F|How can I clear cached data?]]
** If you are using file based locking, you can try to clear the caches to get rid of that 'lock'. See: [[#How_can_I_clear_cached_data.3F|How can I clear cached data?]]


== PHP __FILE__ directive is not working correctly, what can I do? ==
== PHP __FILE__ directive is not working correctly, what can I do? ==
第724行: 第724行:
When diagnosing a problem, you want to be sure that you notice all hints that there might be. That's why you need to ensure that PHP is configured to display and log errors in such cases.
When diagnosing a problem, you want to be sure that you notice all hints that there might be. That's why you need to ensure that PHP is configured to display and log errors in such cases.


* Starting with Gallery 2.2, it suffices to [[Gallery:#How_to_set.2Fuse_Gallery_in_debug_mode.3F|put Gallery into its debug mode]].
* Starting with Gallery 2.2, it suffices to [[#How_to_set.2Fuse_Gallery_in_debug_mode.3F|put Gallery into its debug mode]].
* In Gallery 2.0 and Gallery 2.1 (including 2.1.2), the debug mode doesn't enable displaying PHP errors yet. You'll need to enable it yourself.
* In Gallery 2.0 and Gallery 2.1 (including 2.1.2), the debug mode doesn't enable displaying PHP errors yet. You'll need to enable it yourself.
* In rare cases, you also have to ensure that PHP errors are not just displayed, but also logged.
* In rare cases, you also have to ensure that PHP errors are not just displayed, but also logged.
Also see: * [[Gallery:#What_is_the_webserver_error_log.3F|How can I view the error log of the webserver?]]
Also see: * [[#What_is_the_webserver_error_log.3F|How can I view the error log of the webserver?]]


By browsing to your Gallery's phpinfo page at {{exampleurl|/lib/support/index.php}} -> PHPinfo, you can find all the configuration details of PHP we're interested in. And these are:
By browsing to your Gallery's phpinfo page at {{exampleurl|/lib/support/index.php}} -> PHPinfo, you can find all the configuration details of PHP we're interested in. And these are:
第753行: 第753行:
== How can I fix the problem with the Storage Directory Permissions reported by the Upgrade Wizard? ==
== How can I fix the problem with the Storage Directory Permissions reported by the Upgrade Wizard? ==
We check the filesystem permissions of your storage folder before we start the actual upgrade process. There are three common reasons that make this system check fail:
We check the filesystem permissions of your storage folder before we start the actual upgrade process. There are three common reasons that make this system check fail:
* There is no '''versions.dat''' file in your storage folder. Fix: [[Gallery:Gallery2:How_To_Restore_From_Backup#Restoring_Gallery_2_from_a_full_backup|Create a versions.dat file]] in the storage folder.
* There is no '''versions.dat''' file in your storage folder. Fix: [[Gallery2:How_To_Restore_From_Backup#Restoring_Gallery_2_from_a_full_backup|Create a versions.dat file]] in the storage folder.
* [[Gallery:#How_can_I_fix_the_filesystem_permissions_of_the_Gallery_storage_folder.3F|How can I fix the filesystem permissions of the Gallery storage folder?]]
* [[#How_can_I_fix_the_filesystem_permissions_of_the_Gallery_storage_folder.3F|How can I fix the filesystem permissions of the Gallery storage folder?]]
* When installing Gallery, you maybe specified a relative instead of an '''absolute filesystem path''' for the storage directory. e.g. 'data', './data' or '../data/' when you should actually have entered '/some/path/to/data/' (Linux) or 'c:\some\data' (Windows). Since G2.1 we ensure that the path is stored as an absolute path, but if you are upgrading from an older versions you might have this issue. Fix: open config.php and change the data.gallery.base path to be an absolute path. Then run the system checks step again.
* When installing Gallery, you maybe specified a relative instead of an '''absolute filesystem path''' for the storage directory. e.g. 'data', './data' or '../data/' when you should actually have entered '/some/path/to/data/' (Linux) or 'c:\some\data' (Windows). Since G2.1 we ensure that the path is stored as an absolute path, but if you are upgrading from an older versions you might have this issue. Fix: open config.php and change the data.gallery.base path to be an absolute path. Then run the system checks step again.


== Upgrading a Gallery that has been installed with the Pre-Installer ==
== Upgrading a Gallery that has been installed with the Pre-Installer ==
See [[Gallery:Gallery2:Preinstaller#Upgrading_a_G2_that_has_been_installed_with_the_Pre-Installer|Upgrading a G2 that has been installed with the Pre-Installer]]
See [[Gallery2:Preinstaller#Upgrading_a_G2_that_has_been_installed_with_the_Pre-Installer|Upgrading a G2 that has been installed with the Pre-Installer]]


== How can I deactivate a module when I am unable to login? ==
== How can I deactivate a module when I am unable to login? ==
* First, please verify that you [[Gallery:#I_can.27t_login_anymore.2C_what_can_I_do_now.3F|can't login anymore]]. If you can still login, you can deactivate modules at site admin -&gt; Plugins.
* First, please verify that you [[#I_can.27t_login_anymore.2C_what_can_I_do_now.3F|can't login anymore]]. If you can still login, you can deactivate modules at site admin -&gt; Plugins.


If that fails, you have to modify the database manually. (You can use some web based tool do it, like phpmyadmin).
If that fails, you have to modify the database manually. (You can use some web based tool do it, like phpmyadmin).
第769行: 第769行:
  UPDATE g2_PluginMap SET g_active=0 WHERE g_pluginId='captcha';
  UPDATE g2_PluginMap SET g_active=0 WHERE g_pluginId='captcha';
  DELETE FROM g2_FactoryMap WHERE g_implModuleId='captcha';
  DELETE FROM g2_FactoryMap WHERE g_implModuleId='captcha';
# Finally, [[Gallery:#How_can_I_clear_cached_data.3F|clear the database cache]].
# Finally, [[#How_can_I_clear_cached_data.3F|clear the database cache]].


== What do I do if I get a "Database Error" screen? ==
== What do I do if I get a "Database Error" screen? ==
第778行: 第778行:




[[Gallery:Category:Gallery 2:Troubleshooting|FAQ]]
[[Category:Gallery 2:Troubleshooting|FAQ]]
[[Gallery:Category:Gallery 2:Usage|FAQ]]
[[Category:Gallery 2:Usage|FAQ]]
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅Wordpress-mediawiki:版权的细节)。 未经许可,请勿提交受版权保护的作品!
取消 编辑帮助(在新窗口中打开)

本页使用的模板: