在安裝完Gallery2後想透過gallery外掛將照片整合進plog,可是發生了以下的情況:
1.在模版中加入
{if $gallery->isEnabled()}{$gallery->getImageBlock()}{/if}
之後無法正常顯示Orz
Error (ERROR_CONFIGURATION_REQUIRED)
* in modules/core/classes/GalleryEmbed.class at line 761 (gallerystatus::error)
* in /home/abokuo/html/plog/plugins/gallery/class/gallery/galleryhelper.class.php at line 140 (galleryembed::getimageblock)
* in /home/abokuo/html/plog/plugins/gallery/plugingallery.class.php at line 99 (galleryhelper::getimageblock)
* in /home/abokuo/html/plog/tmp/1/%%127^%%1277675198^footer.template.php at line 48 (plugingallery::getimageblock)
* in /home/abokuo/html/plog/class/template/smarty/Smarty.class.php at line 1924
* in /home/abokuo/html/plog/tmp/1/%%387^%%387419701^galleryShow.template.php at line 61 (template::_smarty_include)
* in /home/abokuo/html/plog/class/template/smarty/Smarty.class.php at line 1281
* in /home/abokuo/html/plog/class/template/template.class.php at line 120 (smarty::fetch)
* in /home/abokuo/html/plog/class/view/smartyview.class.php at line 190 (template::fetch)
* in /home/abokuo/html/plog/class/view/blogview.class.php at line 224 (smartyview::render)
* in /home/abokuo/html/plog/class/view/plugintemplatedview.class.php at line 76 (blogview::render)
* in /home/abokuo/html/plog/plugins/gallery/class/view/plugingalleryshowview.class.php at line 65 (plugintemplatedview::render)
* in /home/abokuo/html/plog/class/controller/controller.class.php at line 325 (plugingalleryshowview::render)
* in /home/abokuo/html/plog/index.php at line 44 (blogcontroller::process)
上述錯誤訊息內容:http://hdts3.abokuo.com/datas/error_1.txt
2.在模版中加入
{if $gallery->isEnabled()}
<a title="My Photos" href="index.php?op=gallery&blogId=1">
{$locale->tr("gallery")}
</a>
點選GALLERY連結後出現如圖的狀況@@
錯誤訊息如下:
Exception message: Cannot modify header information - headers already sent
Error code: 2
-- Backtrace --
/home/abokuo/html/plog/class/view/view.class.php(172): header
/home/abokuo/html/plog/class/view/view.class.php(309): plugingalleryshowview.sendcontenttype
/home/abokuo/html/plog/class/view/smartyview.class.php(163): view.render
/home/abokuo/html/plog/class/view/blogview.class.php(224): smartyview.render
/home/abokuo/html/plog/class/view/plugintemplatedview.class.php(76): blogview.render
/home/abokuo/html/plog/plugins/gallery/class/view/plugingalleryshowview.class.php(65): plugintemplatedview.render
/home/abokuo/html/plog/class/controller/controller.class.php(325): plugingalleryshowview.render
/home/abokuo/html/plog/index.php(44): blogcontroller.process
上述錯誤訊息內容:http://hdts3.abokuo.com/datas/error_2.txt
以下是我的plog中有關GALLERY的設定
OS: Fedora Core 3
Apache: 2.0.52
Mysql: 3.23.58
php: 4.3.11
plog: 1.01
請各位先進幫忙@@[/img]