serendipity_event_autoupdate: First live test with problems.

Creating and modifying plugins.
User avatar
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

serendipity_event_autoupdate: First live test with problems.

Post by blog.brockha.us » Sat Jun 02, 2012 3:27 pm

I have installed the dashboard and the autoupdate plugin for long now. Today I had the first chance to test it on my live blog as it was announcing Version 1.6.2! :)

I did it and it was working like a charm with 2 exceptions.

1. Not existing files

Code: Select all

Unpacking the update failed, because following files were not writeable:
/blog/templates/2k11/plugin_findmore.tpl
The problem here: This file is new in 1.6.2 (compared to my installed 1.6.0), so not existing. Yes, for that it is not "writeable" somehow, but this message is nonsense. ;) I put an empty file with that name in the directory and then the update worked fast and without any problems! :)

2. Uncleared cache
After the successfull upgrade, my blogs article pages were broken. Some security smarty warning was hindering the template engine from going through the complete template. This was fixed easily by clearing the template_c directory. So the autoupdater should do that, too, after a successfull upgrade.

But else: Great plugin! :)
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: serendipity_event_autoupdate: First live test with probl

Post by Timbalu » Sun Jun 03, 2012 9:15 am

blog.brockha.us wrote:I have installed the dashboard and the autoupdate plugin for long now. Today I had the first chance to test it on my live blog as it was announcing Version 1.6.2! :)
Yes, sorry for the late Update-Announcement.
We had to face a very small file change in master to get this work again, which has to get done every S9y-Release.

Btw Grischa, did you ever test my proof of concept dashboard ?
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

User avatar
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: serendipity_event_autoupdate: First live test with probl

Post by blog.brockha.us » Sun Jun 03, 2012 1:50 pm

Hi Ian.

I was not demanding, that the update hint was given so late. In fact I didn't notice if it was late, because I was a very lazy blogger the last weeks.. ;)

I only wanted to tell, what perhaps should be enhanced / fixed with the autoupdate plugin. Is someone still maintaining it?

About the proof of concept version: Please help me.. I can't remember such a thing in this context. Did we talk about that already and I forget something again? :oops:
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: serendipity_event_autoupdate: First live test with probl

Post by Timbalu » Mon Jun 04, 2012 10:30 am

blog.brockha.us wrote:I was not demanding, that the update hint was given so late. In fact I didn't notice if it was late, because I was a very lazy blogger the last weeks.. ;)
I know, Yes. But I noticed that a few days ago and fixed it for us all.
blog.brockha.us wrote:I only wanted to tell, what perhaps should be enhanced / fixed with the autoupdate plugin. Is someone still maintaining it?
Malte (onli) should do, as it is his baby... :wink:
blog.brockha.us wrote:About the proof of concept version: Please help me.. I can't remember such a thing in this context. Did we talk about that already and I forget something again? :oops:
No I don't think so... we had a developing thread in the german section some month ago, which links to https://github.com/ophian/serendipity_e ... hboard.git
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

User avatar
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: serendipity_event_autoupdate: First live test with probl

Post by blog.brockha.us » Mon Jun 04, 2012 11:28 am

Proof of concept: Oh! Cool! I will download it and test it in my testblog. If it is "stable enough" I will put it into my live blog, too. What is it proving?

Later: Woah! :shock: NICCCE! :mrgreen:

This interface is and the functions are GREAT! :) Had only a small problem: Directly after upgrading from old dashboard I clicked on the settings button in the dashboard and it gave me a PHP error about introspect being called on a non object.

Code: Select all

Fatal error: Call to a member function introspect() on a non-object in /www/htdocs/brocken/blog/include/admin/plugins.inc.php on line 68
After entering the configuration in standard way and enabling all subfunctions, the config button was able to open the config of the plugin.

Great work! I like a lot! :)
Last edited by blog.brockha.us on Mon Jun 04, 2012 11:59 am, edited 2 times in total.
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: serendipity_event_autoupdate: First live test with probl

Post by Timbalu » Mon Jun 04, 2012 11:49 am

It is / was proving a nearly complete first page lookup rewrite, and additional to the blocks from the original dashboard, now including plugin updates, compiled templates cleanup, help screens (unfinished), some more GUI... and ... was there more...? :wink: (The integration of bayes needs more tweaks, AFAIR)

I started (and fnished...) this before we began to smartify the backend for S9y-2.0, which then will need a complete rewrite of this dashboard.

So, as long as we are stuck to stables using the old backend, we now have an alternative in first view.
Beta testers and contributions are welcome!
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

User avatar
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: serendipity_event_autoupdate: First live test with probl

Post by blog.brockha.us » Mon Jun 04, 2012 11:51 am

Ups.. Edited my post, because there was no answer yet.

Is there some hook that makes it possible for other plugins to hook into this dashboard? This would be great. For example the tweeter could hook there, or the trash of the bayes, or ..

But as I said: Great work, Ian! :)
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/

User avatar
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: serendipity_event_autoupdate: First live test with probl

Post by blog.brockha.us » Mon Jun 04, 2012 12:02 pm

Ah.. You have to switch on "Clean up old templates", else this error will occur when pushing the config button.
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: serendipity_event_autoupdate: First live test with probl

Post by Timbalu » Mon Jun 04, 2012 12:20 pm

Yes, I can verify this.
But I don't know why... up to now.

About the hook. Where should that be.... and will that just be a
serendipity_plugin_api::hook_event('backend_dashboard_hookin', $some, $thing);
called with some {serendipity_hookPlugin hook="backend_dashboard_hookin" ???}
Any Ideas to this?
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

User avatar
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: serendipity_event_autoupdate: First live test with probl

Post by blog.brockha.us » Mon Jun 04, 2012 12:31 pm

I think there has to be two hooks.

One hook, the configuration loads, so the plugin knows, what other plugin is "dashboard enabled" and is able to put it into the "order and enable" box.

The other is an output hook simply, fetching output from the plugin (if enabled) and put it at the location configured at the dashboard settings. Perhaps with some advanced help like "put lists", "html only", .. Stuff we know from the s9y configuration itself.
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/

User avatar
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: serendipity_event_autoupdate: First live test with probl

Post by blog.brockha.us » Mon Jun 04, 2012 1:09 pm

Ah well, stupid me.. There already has to be such hooks, right? Or how does the autoupdate plugin hook into the dashboard?

I have to investigate how it does this and try to add the same to microblogging plugin (the tweeter) as a proof of concept, too. :)

Perhaps there could be a hook for the buttons at the top, too, for simple actions (like fetching posts for the popfetcher and so).

Wow.. I think this could be really a cool interface! :)
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: serendipity_event_autoupdate: First live test with probl

Post by Timbalu » Mon Jun 04, 2012 1:13 pm

Thank you!
If you like, you could just clone the repo and send me some pull requests...! :wink:
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

User avatar
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: serendipity_event_autoupdate: First live test with probl

Post by blog.brockha.us » Mon Jun 04, 2012 1:21 pm

Okay. I will check out, what I can do (and when I'll find time).
I like the new dashboard a lot and like to contribute. :)
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/

User avatar
onli
Regular
Posts: 2277
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: serendipity_event_autoupdate: First live test with probl

Post by onli » Mon Jun 04, 2012 5:31 pm

Ich häng mcih mal hier dran, falls ich vergesse die Änderungen einzubauen und jemand hier nochmal schreibt. Danke für dein Feedback, Grischa.

User avatar
onli
Regular
Posts: 2277
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: serendipity_event_autoupdate: First live test with probl

Post by onli » Fri Jun 08, 2012 2:37 pm

The new version (0.2) should fix Grischas issues. I also discovered a new one, it didn't create new directories, which is also fixed.

Post Reply