I have been using piwigo for several years now. Parallel to present my pictures I would like to start a small blog.
The plugin "Additional Pages" is not enough for me. And "Evil_Blog" does not work in my configuration.
[Warning: Cannot modify header information - headers already sent by (output started at /plugins/Evil_Blog/main.inc.php:48) in /include/page_header.php on line 94]
Does anyone have another idea for a blog as an integral part of Piwigo?
Offline
With [Warning: Cannot modify header information ...] there's also some other output preceding that (which in fact triggers that warning message) with the real error or warning or notice message (which is?). Which can or can not be an error, and maybe suppressed. So ""Evil_Blog" does not work" may or may not be a correct observation if that is your only indicator.
Anyway, if Evil_Blog doesn't work for you I'd rather use a blog aware static site generator.
https://gohugo.io/
https://jekyllrb.com/
https://www.qwant.com/?q=hugo+vs+jekyll
Offline
Hi :-)
infile /plugins/Evil_Blog/main.inc.php
line 41 replace
global $template, $tokens, $conf, $page;
by
global $template, $tokens, $conf, $page,$pwg_loaded_plugins;
and
line 48 replace
if($ExDesc['state'] == 'active') {
by
if (isset($pwg_loaded_plugins['ExtendedDescription'])){
Offline
That'd be a quick fix :)
Unfortunately that extension is still in Trac so pull/merge request aren't possible, if they would be merged at all..
Offline
erAck wrote:
That'd be a quick fix :)
Unfortunately that extension is still in Trac so pull/merge request aren't possible, if they would be merged at all..
It's possible to commit with SVN
Offline
Iff one has commit rights.
Offline
ddtddt wrote:
Hi :-)
infile /plugins/Evil_Blog/main.inc.php
line 41 replace
global $template, $tokens, $conf, $page;
by
global $template, $tokens, $conf, $page,$pwg_loaded_plugins;
and
line 48 replace
if($ExDesc['state'] == 'active') {
by
if (isset($pwg_loaded_plugins['ExtendedDescription'])){
Sorry - with my first Blog-Text I see the following error:
Notice: Trying to access array offset on value of type null in /plugins/Evil_Blog/blog.php on line 35
and
Warning: Cannot modify header information - headers already sent by (output started at /plugins/Evil_Blog/blog.php:35) in /include/page_header.php on line 94
OK, I see:
I must change infile /plugins/Evil_Blog/blog.php line 35:
if($ExDesc['state'] == 'active') {
by
if (isset($pwg_loaded_plugins['ExtendedDescription'])){
hopefully it works now
Last edited by John.B (2021-04-19 12:37:28)
Offline
Many thanks to all users for their suggestions. It works.
Greetings John
Offline