Announcement

#1 2021-04-15 15:12:09

John.B
Member
2016-03-27
46

Search for a blog plugin

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

 

#2 2021-04-16 01:05:07

erAck
Only trying to help
2015-09-06
2023

Re: Search for a blog plugin

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


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2021-04-16 06:16:46

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: Search for a blog plugin

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'])){


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#4 2021-04-16 19:38:58

erAck
Only trying to help
2015-09-06
2023

Re: Search for a blog plugin

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..


Running Piwigo at https://erack.net/gallery/

Offline

 

#5 2021-04-16 20:59:43

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: Search for a blog plugin

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


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#6 2021-04-16 23:09:17

erAck
Only trying to help
2015-09-06
2023

Re: Search for a blog plugin

Iff one has commit rights.


Running Piwigo at https://erack.net/gallery/

Offline

 

#7 2021-04-19 12:19:10

John.B
Member
2016-03-27
46

Re: Search for a blog plugin

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

 

#8 2021-04-20 12:38:13

John.B
Member
2016-03-27
46

Re: Search for a blog plugin

Many thanks to all users for their suggestions. It works.

Greetings John

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact