Gallery: 疑难解答:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
 
第28行: 第28行:
|
|
* 登出或清除浏览器cookies并重试。
* 登出或清除浏览器cookies并重试。
* 如果你的Gallery被整合在了一个blog,门户或论坛等之中的话,请确保使用的整合是最新版本的。
* 如果你的Gallery被整合在了一个blog,门户或论坛等之中的话,请确保是使用的整合是最新版本的。
|-
|-
|ERROR_STORAGE_FAILURE
|ERROR_STORAGE_FAILURE
第120行: 第120行:
|其他模块升级步骤报告有插件丢失
|其他模块升级步骤报告有插件丢失
|
|
* 如果升级时没有包含这些模块的话,你的Gallery就有可能无法正常运行的风险。你应当尝试[[Downloads|获取这些插件的最新版本]],并在继续升级程序中的下一步之前将它们置入你的Gallery modules/和themes/ 文件夹中。
* 如果升级时没有包含这些模块的话,你的Gallery就有可能无法正常运行的风险。你应当尝试[[Downloads|获取最新版本的这些插件]],并在继续升级程序中的下一步之前将它们置入你的Gallery modules/和themes/ 文件夹中。
* 另见[[Gallery:FAQ#在安装程序和升级程序中出现的有关文件丢失和被篡改的警告是怎么回事?|常见问题:在安装程序和升级程序中出现的有关文件丢失和被篡改的警告是怎么回事?]]
* 另见[[Gallery:FAQ#在安装程序和升级程序中出现的有关文件丢失和被篡改的警告是怎么回事?|常见问题:在安装程序和升级程序中出现的有关文件丢失和被篡改的警告是怎么回事?]]
|-
|-
第167行: 第167行:
|显示的是下载链接而不是期望的电影播放器
|显示的是下载链接而不是期望的电影播放器
|
|
* 是否在'编辑电影(Edit movie)' -> '电影(Movie)'中对视频尺寸进行了设定?Gallery仅显示设定过尺寸(值大于0)的嵌入电影播放器。你可以先在计算机上播放此电影来查看其尺寸(对类似VLC或Windows媒体播放器的电影播放器来说,尺寸的相关信息可在电影属性中找到)。
* 是否在'编辑电影(Edit movie)' -> '电影(Movie)'中对视频尺寸进行了设定?Gallery仅显示设定过尺寸(值大于0)的嵌入电影播放器。你可以先在计算机上播放此电影来查看其尺寸(类似VLC或Windows媒体播放器的电影播放器来说,尺寸的相关信息可在电影属性中找到)。
* 注:如果[[Gallery:Modules:ffmpeg|ffmpeg模块]]处于激活状态的话,Gallery将会自动检查并为所有的电影设置尺寸(除非你的ffmpeg二进制无法处理某特定的电影格式)。
* 注:如果[[Gallery:Modules:ffmpeg|ffmpeg模块]]处于激活状态的话,Gallery将会自动检查并为所有的电影设置尺寸(除非你的ffmpeg二进制无法处理某特定的电影格式)。
|-
|-
第189行: 第189行:
|
|
* 要诊断此问题你应当使用'添加项目(Add items)' -> '自浏览器(From browser)'的方法,因为此方法能够提供最详实的debug信息。
* 要诊断此问题你应当使用'添加项目(Add items)' -> '自浏览器(From browser)'的方法,因为此方法能够提供最详实的debug信息。
* 若PHP上传在你的服务器上完全被禁用的话,在'添加项目(Add items)' -> '自浏览器(From browser)'页面上会有警告提示。同时此页面显示有上传限制。
* 若PHP上传在你的服务器上完全被禁用的话,在'添加项目(Add items)' -> '自浏览器(From browser)'页面上会有警告提示。此页面同样显示有上传限制。
* 当你尝试上传一个文件时看到了什么?错误吗?
* 当你尝试上传一个文件时看到了什么?错误吗?
* 确保PHP的''upload_tmp_dir''配置无误。如果查看你的web服务器日志的话,可能会看到'PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0'这样的错误。这种情况下,upload_tmp_dir不是没有被定义就是web服务器不具备该目录的文件写入权限。其他错误或警告可能是同样的情况。
* 确保PHP的''upload_tmp_dir''配置无误。如果查看你的web服务器日志的话,可能会看到'PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0'这样的错误。这种情况下,upload_tmp_dir不是没有被定义就是web服务器不具备该目录的文件写入权限。其他错误或警告可能是同样情况。
|-
|-
|无法上传大文件
|无法上传大文件
第201行: 第201行:


==== 登录====
==== 登录====
参见[[Gallery:FAQ#I_can.27t_login_anymore.2C_what_can_I_do_now.3F|常见问题:I can't login anymore, what can I do?]]
参见[[Gallery:FAQ#我怎么都无法登录了,怎么办?|常见问题:我怎么都无法登录了,怎么办?]]


{|class="gallery" style="background-color: #eee; width:90%"
{|class="gallery" style="background-color: #eee; width:90%"
!错误症状/尝试性动作!!解决办法
!错误症状/尝试性动作!!解决办法
|-
|-
|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)
* 忘记密码了?(Email找回密码的方式无效了?请联系管理员,管理员可以使用login.txt来修复Email或重置用户帐户)
* 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.
* 密码中是否含有特殊字符?在Gallery2.1版之前,在某些情况下这将会导致登录时出现问题。请考虑升级你的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.
* 是否显示你的用户帐户被"禁用"了?(G2.2版本以来)请使用登录页面上的"忘记密码(Forgot Password)"链接来重新激活你的帐户。
|-
|-
|Login fails and just displays a normal Gallery page again
|登录失败,然后再次显示的还是一个正常的Gallery页面
|
|
* Often clearing the browser cookie cache helps. Check your web-browser settings and clear the cookies for your Gallery website.
* 往往清除浏览器cookie缓存会有一定效果。检查你的web浏览器设定,清除Gallery站点的cookies。
* 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.
* 有时你会在登录后看到的还是登录页面,因此就认为没有登录成功,但是实际上你已经登录了;但是由于你的浏览器没有更新其缓存,所以会出现这种情况。请检查你web浏览器的设定并清除浏览器缓存。
* 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.
* 你的web服务器IIS/5.0版本过旧还是你的Gallery2的版本低于2.0?在Gallery2.0发布前不久我们就为某IIS bug添加了一个变通的修复手段,你应当升级你的Gallery。
|}
|}


第224行: 第224行:
!错误症状/尝试性动作!!解决办法
!错误症状/尝试性动作!!解决办法
|-
|-
|There are errors when trying to test the binaries (or when saving the configuration)
|在尝试测试二进制(或保存配置)时发生了错误
|
|
* 参见:[[Installing_an_Image_Processing_Library|Installing an Image processing Library]]
* 参见:[[Gallery:Installing_an_Image_Processing_Library|图片处理库的安装]]
* Does it report that it can't find files at the given path? 参见the note about the 'path' in the above linked article.
* 错误报告是否为指定路径下找不到文件?参见以上链接文章中有关'路径'的注释。
|-
|-
|netpbm reports 'errno 13 (permission denied)' or ' Error reading magic number' when testing binaries
|在测试二进制时,netpbm报告'errno 13 (permission denied)'的错误或' Error reading magic number'的错误
|If you are sure that filesystem permissions are correct, please check [[Gallery:Installation_on_a_SELinux_Server|Installation on a SELinux Server]] as well.
|如果你确定文件系统权限设置无误的话,请查看一下[[Gallery:Installation_on_a_SELinux_Server|在SELinux服务器上安装]]的相关信息。
|-
|-
|Windows / IIS specific: I cannot install any binaries
|Windows/IIS:我无法安装任何二进制
|参见[[Gallery:Installation_on_Windows_Server_2003_and_IIS6#Installing_Binaries|Installing binaries on a MS Windows / IIS server]]
|参见[[Gallery:Installation_on_Windows_Server_2003_and_IIS6#二进制的安装|在MS Windows/IIS服务器上进行二进制的安装]]
|-
|-
|Windows specific: Warnings about 'unable to fork'
|Windows: 有关'unable to fork'的警告
|参见[[Gallery:FAQ#I_get_lots_of_.22Warning:_exec.28.29:_Unable_to_fork_.5Bcmd_.2Fc_....5D.22_at_the_module.27s_step_in_the_installer_for_G2_.28on_the_ImageMagick_module.29_under_Windows.2FIIS._Now_what.3F|常见问题:I get lot's of 'unable to fork' warnings, what should I do?]]
|参见[[Gallery:FAQ#我在Windows/IIS下G2安装程序的模块步骤得到了许多"Warning: exec(): Unable to fork [cmd /c ...]"(ImageMagick模块)这样的警告提示,该怎么办?|常见问题:我在Windows/IIS下G2安装程序的模块步骤得到了许多"Warning: exec(): Unable to fork [cmd /c ...]"(ImageMagick模块)这样的警告提示,该怎么办?]]
|}
|}


第243行: 第243行:
!错误症状/尝试性动作!!解决办法
!错误症状/尝试性动作!!解决办法
|-
|-
|Can't upload theme into themes/ folder
|无法将外观主题上传至themes/文件夹
|参见[[Gallery:FAQ#How_can_I_upload_a_theme_or_module_via_FTP_when_I_used_the_preinstaller.3F|常见问题:How can I upload a theme or module via FTP when I used the preinstaller?]]
|参见[[Gallery:FAQ#当使用预安装程序后,如何通过FTP软件上传一个外观主题或模块?|常见问题:当使用预安装程序后,如何通过FTP软件上传一个外观主题或模块?]]
|-
|-
|Can't edit theme settings
|无法编辑外观主题的设定
|
|
* Does it work for the 'matrix' theme but not for a 3rd party theme? Then it's probably a specific problem with the 3rd party theme and you should contact its author.
* 是否仅可编辑'matrix'外观主题而不能编辑某第三方外观主题?如果是这样的话,那么这就很可能是第三方外观主题特有问题了,因此你最好直接联系此第三方外观主题的编写者。
* Is JavaScript enabled in your browser?
* 你的浏览器是否允许Java脚本语言?
* Does it show no theme blocks at all? Maybe your webserver is not configured properly and blocks JavaScript requests. Or it doesn't return the right content-type for JavaScript files. Please browse to {{exampleurl|/lib/javascript/BlockSelectWidget.js}} (change the URL to match your Gallery location) and if the JavaScript code of the file displays correctly in your browser (or if you can safe the file on your computer), then it's working fine. If not, it is probably a 'mod_security' problem. 参见:[[Gallery:Known_Issues|Known Issues -> Apache mod_security]]. Your webhost should be notified about the problem such that they can fix the webserver configuration.
* 外观主题区块是否毫无显示?有可能你的web浏览器没有正确配置因此拦截了JavaScript的请求。或者为JavaScript所返回的内容类型不正确。请浏览{{exampleurl|/lib/javascript/BlockSelectWidget.js}}(修改其中的URL地址为你Gallery的位置),如果文件的JavaScript代码在你的web浏览器中显示正确(或可以保证你计算机上文件安全)的话,那么就没问题了。相反,则有可能是'mod_security'的问题了。参见:[[Gallery:Known_Issues|已知问题 -> Apache mod_security]]。你的webhost应当被告知此问题,这样他们才能对web服务器的配置进行修复。
|-
|-
|Nothing works anymore after changing theme
|在修改外观主题后,所有东西都无法运行了
|参见[[Gallery:FAQ#I_have_changed_the_default_theme_and_nothing_works_anymore._How_can_I_switch_back.3F|常见问题:I have changed the default theme and nothing works anymore. How can I switch back?]]
|参见[[Gallery:FAQ#我修改了默认外观主题但什么都运行不了了。怎样才能还原?|常见问题:我修改了默认外观主题但什么都运行不了了。怎样才能还原?]]
|-
|-
|Can't reach 'Site admin'
|无法访问'站点管理(Site admin)'
|参见[[Gallery:FAQ#How_can_I_change_the_default_theme_when_I_can.27t_reach_site_admin.3F|常见问题:How can I change the default theme when I can't reach 'Site admin'?]]
|参见[[Gallery:FAQ#在无法访问站点管理的情况下如何改变默认的外观主题?|常见问题:在无法访问站点管理的情况下如何改变默认的外观主题?]]
|}
|}


第263行: 第263行:
!错误症状/尝试性动作!!解决办法
!错误症状/尝试性动作!!解决办法
|-
|-
|Can't upload module into modules/ folder
|无法将模块上传至modules/文件夹
|参见[[Gallery:FAQ#How_can_I_upload_a_theme_or_module_via_FTP_when_I_used_the_preinstaller.3F|常见问题:How can I upload a theme or module via FTP when I used the preinstaller?]]
|参见[[Gallery:FAQ#当使用预安装程序后,如何通过FTP软件上传一个外观主题或模块?|常见问题:当使用预安装程序后,如何通过FTP软件上传一个外观主题或模块?]]
|}
|}


第271行: 第271行:
!错误症状/尝试性动作!!解决办法
!错误症状/尝试性动作!!解决办法
|-
|-
|Changing language does not work
|无法修改语言
|参见[[Gallery:FAQ#I_changed_the_language_but_nothing_happens.2C_what.27s_wrong.3F|常见问题:I changed the language but nothing happens, what's wrong?]]
|参见[[Gallery:FAQ#我修改了语言但是没有效果,这是怎么回事?|常见问题:我修改了语言但是没有效果,这是怎么回事?]]
|-
|-
|"Wrong charset, cannot convert" or "Illegal character encoding" or "Illegal recode request"
|"Wrong charset, cannot convert""Illegal character encoding""Illegal recode request"的错误
|参见[[Gallery:FAQ#Where_I_should_see_dates_I_see_.22Wrong_charset.2C_cannot_convert.22_or_.22Illegal_character_encoding.22_or_.22Illegal_recode_request.22.._what_is_wrong.3F|常见问题:Where I should see dates I see "Wrong charset, cannot convert" or "Illegal character encoding" or "Illegal recode request".. what is wrong?]]
|参见[[Gallery:FAQ#应该显示日期的地方我却看到"Wrong charset, cannot convert"或"Illegal character encoding"还有"Illegal recode request".. 这是怎么回事?|常见问题:应该显示日期的地方我却看到"Wrong charset, cannot convert""Illegal character encoding"还有"Illegal recode request".. 这是怎么回事?]]
|}
|}


第282行: 第282行:
!错误症状/尝试性动作!!解决办法
!错误症状/尝试性动作!!解决办法
|-
|-
|Blank / Empty Page
|空白/为空页面
|参见[[Gallery:FAQ#I_get_only_a_blank_screen_when_trying_to_view_my_Gallery.2C_what.27s_wrong.3F|常见问题:I get only a blank screen when trying to view my Gallery. What's wrong?]]
|参见[[Gallery:FAQ#当我尝试查看gallery时却显示一个空白屏幕,怎么回事?|常见问题:当我尝试查看gallery时却显示一个空白屏幕,怎么回事?]]
|-
|-
|Error when editing an album / photo item
|编辑某相册或相片项目时发生错误
|ERROR_OBSOLETE_DATA? -> Clearing the cache might help: [[Gallery:FAQ#How_can_I_clear_cached_data.3F|常见问题:How can I clear cached data?]]
|ERROR_OBSOLETE_DATA的错误?-> 清除缓存可能会有效:[[Gallery:FAQ#如何清除缓存数据?|常见问题:如何清除缓存数据?]]
|-
|-
|PHP memory_limit - Allowed memory size exhausted
|PHP的memory_limit–被允许的内存耗尽
|[[Gallery:FAQ#PHP_memory_limit_-_Why_do_I_get_the_error_Allowed_memory_size_of_Xxx_bytes_exhausted.3F|常见问题:Why do I get the error 'Allowed memory size of Xxx bytes exhausted?]]
|[[Gallery:FAQ#为何出现这的错误:被允许的XxxB的内存被耗尽|常见问题:为何出现这的错误:被允许的XxxB的内存被耗尽]]
|-
|-
|Performance - Page loads are slow
|性能-页面载入速度很慢
|Is the Server CPU, file I/O or bandwidth limited? 参见:[[Gallery:Performance_Tips|Performance Tips]]
|服务器的CPU,文件I/O或带宽有限制?参见:[[Gallery:Performance_Tips|性能调校技巧]]
|-
|-
|Nothing happens when I click on a link / thumbnail
|点击某链接或缩略图后没有任何反应
|Probably due to a memory limit or a fatal webserver error. 参见:[[Gallery:FAQ#I_get_only_a_blank_screen_when_trying_to_view_my_Gallery.2C_what.27s_wrong.3F|常见问题: get only a blank screen when trying to view my Gallery, what's wrong?]]
|可能是由于内存限制或web服务器发生了致命错误所导致。参见:[[Gallery:FAQ#当我尝试查看gallery时却显示一个空白屏幕,怎么回事?|常见问题: 当我尝试查看gallery时却显示一个空白屏幕,怎么回事?]]
|-
|-
|'Site admin' link does not work
|'站点管理(Site admin)'链接无效
|
|
* Does the link point to '/admin/'? If so, then it's likely that your URL rewrite module doesn't work correctly. You should disable it. 参见:[[Gallery:FAQ#Images_don.27t_show_up_and_the_album_.2F_photo_links_don.27t_work.2C_what_can_I_do.3F|常见问题:Images don't show up and the album / photo links don't work, what can I do?]]
* 链接是否指向'/admin/'?如果是的话,那么问题就很可能出在你的URL重写模块上,它可能没有正常运行。因此你应当禁用此模块。参见:[[Gallery:FAQ#图片无法显示,相册/相片的链接无效,我该怎么办?|常见问题:图片无法显示,相册/相片的链接无效,我该怎么办?]]
* Also check: [[Gallery:FAQ#I_get_only_a_blank_screen_when_trying_to_view_my_Gallery.2C_what.27s_wrong.3F|常见问题:About blank screens]] (the notes about memory_limit and webserver error log are helpful here too)
* 另外也请参看一下:[[Gallery:FAQ#当我尝试查看gallery时却显示一个空白屏幕,怎么回事?|常见问题:当我尝试查看gallery时却显示一个空白屏幕,怎么回事?]](有关memory_limit和web服务器错误日志的注解在此也有一定帮助的)
|-
|-
|'HTTP/1.1 503 Server too busy' with IIS / fastcgi (usually just for 'Site Admin')
|IIS / fastcgi的'HTTP/1.1 503 Server too busy'的错误(常常发生于'站点管理(Site Admin)'
|
|
* This seems to be a bug in [http://www.caraveo.com/fastcgi/ isapi_fcgi.dll] (the initial fastcgi implementation). 参见the resolution of [http://bugs.php.net/bug.php?id=37448&thanks=6 PHP bug #37448].
* 这似乎是[http://www.caraveo.com/fastcgi/ isapi_fcgi.dll]的一个bug(首次fastcgi实现)。参见[http://bugs.php.net/bug.php?id=37448&thanks=6 PHP bug #37448]的修复办法。
* We suggest you rather try mod_php (instead of fastcgi) or you can use [http://www.iis.net/default.aspx?tabid=2&subtabid=25&i=1207 Microsoft's IIS FastCGI component] (a more recent FastCGI implementation) or use the [http://www.apache.org/ Apache Webserver] (usually easier to install, it's our recommended platform) instead.
* 我们建议你尝试使用mod_php(而不要使用fastcgi)或使用[http://www.iis.net/default.aspx?tabid=2&subtabid=25&i=1207 Microsoft's IIS FastCGI 组件](最新的FastCGI实现)或使用[http://www.apache.org/ Apache Web服务器](安装通常更为简便,这是我们推荐使用的平台)。
|-
|-
|No edit link / cannot edit album / item
|无编辑链接/无法编辑相册或项目
|
|
* In case you removed the 'Item Actions' block from your theme settings, Gallery should display a small "edit" link in most themes. You can add this link to your themes with <pre>{g->block type="core.EmergencyEditItemLink" class="gbBlock"}</pre>
* 如果你从外观主题设定中移除了'项目动作(Item Actions)'区块的话,Gallery在大部分外观主题中应该会显示一个小的"编辑"链接。你可以使用<pre>{g->block type="core.EmergencyEditItemLink" class="gbBlock"}</pre>将此链接添加到你的外观主题中去。
* Else, verify that you're logged in with the admin user or any other user with sufficient permissions and consider clearing your browser's cache.
* 如果不是上述情况的话,请确保你以管理员身份或有足够权限的其他用户身份登录的,然后可以考虑清除你浏览器的缓存。
|-
|-
|Some Error (don't know more)
|某错误(无更详细的相关信息)
|
|
* Enable buffered debug mode to see the exact error name. 参见the below section about 'troubleshooting by error name'.
* 启用buffered debug模式来看看准确的错误名称。参见以后部分中的'按错误名称解决问题'
* Does the error occur when browsing to your Gallery on the front page or only when you browse to a specific page?
* 是否在浏览首页上Gallery时发生的错误,或者是浏览某特定页面时发生错误?
|}
|}


[[Category:Gallery 2:Troubleshooting|Troubleshooting]]
[[Category:Gallery 2:Troubleshooting|Troubleshooting]]

2008年8月9日 (六) 10:23的最新版本

Gallery2疑难解答[编辑 | 编辑源代码]

Gallery2疑难解答的更多链接:Category:Gallery 2:Troubleshooting

需要预先做好的工作[编辑 | 编辑源代码]

  1. 清除Gallery缓存!-参见如何清除缓存数据?
  2. 确保Gallery应用程序文件完好无损!-常见问题:如何确保安装文件完整无损?
  3. 清除web浏览器缓存(cookies及页面缓存)!
  4. 启用'buffered'debug模式以确保没有遗漏任何重要警告或详细信息

重要提示: 如果你没有以管理员身份登录的话,你需要启用'buffered'debug模式来检查错误名称及详细信息。参见:常见问题:如何设置/使用Gallery的debug模式?。如果'buffered' debug模式没有任何显示的话,你可以尝试'immediate'或'logged' debug模式。

解决手段...[编辑 | 编辑源代码]

你可以查找相应特定的'错误名称'来确定遇到的问题,或者在经过分类的症状中对号入座。

错误名称(Error Name)[编辑 | 编辑源代码]

是不是在访问Gallery首页时就发生了错误?如果错误仅当浏览特定页面/相册时发生或尝试进行某特殊动作时发生的话,你应当先通过错误症状/尝试进行的动作的分类来尝试解决问题(见下表)。

错误症状(Symptom)/尝试性动作(Attempted Action)[编辑 | 编辑源代码]

请在下面的分类中定位你碰到的问题。请记住,debug模式启用后可以显示更多该问题的相关信息,这与不使用debug模式具有天壤之别。

安装[编辑 | 编辑源代码]

升级[编辑 | 编辑源代码]

图片[编辑 | 编辑源代码]

视频/Flash[编辑 | 编辑源代码]

添加项目/相册/上传[编辑 | 编辑源代码]

登录[编辑 | 编辑源代码]

参见常见问题:我怎么都无法登录了,怎么办?


工具包/模块的激活[编辑 | 编辑源代码]

外观主题[编辑 | 编辑源代码]

模块[编辑 | 编辑源代码]

翻译/本地化[编辑 | 编辑源代码]

其他[编辑 | 编辑源代码]