Error on Sites Directory Path save - update to config form help text?
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 82/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- php
调研方向
验证位于 StaticSiteExportPlugin.php 第 84 行附近,其中 sites 目录路径会经过 realpath();先阅读该检查以了解它接受什么。然后找到插件的配置表单定义(同一个插件类或其配置表单),并定位 sites 目录字段现有的帮助文本。完成意味着该帮助文本说明需要绝对服务器路径并给出示例,这样用户在输入相对路径时就不会遇到安装异常。
由索引模型根据 Issue 内容生成。
描述
Thanks for this plugin, which looks like it will be helpful to archive sites that aren't being actively updated!
I installed on an older Omeka 3.0.3 site to see if I could export a static site instead of upgrading PHP, but I can't get past the config step. The db table seems to have been created on install, but I get this error when attempting to save a value with relative paths:
Omeka_Plugin_Installer_Exception: Invalid sites directory path in /var/www/html/mnenvironments/plugins/StaticSiteExport/StaticSiteExportPlugin.php:84
Stack trace:
#0 /var/www/html/mnenvironments/application/libraries/Omeka/Plugin/Broker.php(142): StaticSiteExportPlugin->hookConfig()
#1 /var/www/html/mnenvironments/application/controllers/PluginsController.php(55): Omeka_Plugin_Broker->callHook()
#2 /var/www/html/mnenvironments/application/libraries/Zend/Controller/Action.php(516): PluginsController->configAction()
#3 /var/www/html/mnenvironments/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch()
#4 /var/www/html/mnenvironments/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch()
#5 /var/www/html/mnenvironments/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#6 /var/www/html/mnenvironments/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#7 /var/www/html/mnenvironments/application/libraries/Omeka/Application.php(73): Zend_Application->run()
#8 /var/www/html/mnenvironments/admin/index.php(28): Omeka_Application->run()
#9 {main}
After reading the actual code comments at line 84, I saw it was using realpath() and gave it an absolute path from the server and it worked.
Maybe just some more detail in the help text on the config form about the desired format?
- 主要语言
- PHP
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
omeka/plugin-StaticSiteExport 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 42/100
omeka/plugin-StaticSiteExport#1 · 4 条评论 ·
查看 omeka/plugin-StaticSiteExport 的全部 Issue
相似的 Issue
-
bug
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
Automattic/static-site-importer#3129 ·
维护者通常 1 天内回复
-
Group 2 - Data Storage | Tripal DBX | Chado Group 5 - Search | ElasticSearch | Views Priority - Medium
难度 2/5 1-3 小时 新手友好度 74/100
-
category::bug code priority::normal
难度 1/5 1-3 小时 新手友好度 85/100
e0ipso/simple_oauth_21#58 ·
维护者通常 1 天内回复
-
nginx update required due to NGINX2Root可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 1/5 1 小时以内 新手友好度 65/100
mailcow/mailcow-dockerized#7668 · 5 条评论 · 2 个 reaction ·
维护者通常 1 天内回复