[serendipity_event_dashboard] message "1.6 is up to date"?!?

Found a bug? Tell us!!
Post Reply
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

[serendipity_event_dashboard] message "1.6 is up to date"?!?

Post by bernd_d »

I have updated to the new experimental dashboard-plugin 0.6.9.4 and use s9y 1.6, but it doesn't show a message for new version 1.6.2

Code: Select all

Autoupdate (Experimental) 0.1.2
Dashboard 0.6.9.4
Serendipity 1.6
PHP 5.2.12-nmm4
Dashboard looks like this
2012-06-05 14 12 50.png
2012-06-05 14 12 50.png (77.98 KiB) Viewed 4629 times
I already had this problem with dashboard 1.6.6, there hasn't been a message too. So, where's the problem? Worg path/server for grapping current version?
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: [serendipity_event_dashboard] message "1.6 is up to date

Post by Timbalu »

Hi

Did you install the autoupdater plugin too?
This is a dependency plugin of dashboard, but does not install automatically!
(We know this is bad, but this will need a rewrite of the dependency core functions first.)

Which S9y version do you run? Stable or Alpha? Reset your dashboard config.

The next message <p> $version is up to date! </p> is confusing in this case. I'll change that, ASAP.

The autocheck will check once a day, so you will possibly have to wait for tomorrow then.

Edit: Oh, I saw you already have the autoupdater.... please try with removing the compiled dashboard files in templates_c and use a full refresh.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

Re: [serendipity_event_dashboard] message "1.6 is up to date

Post by bernd_d »

Did you install the autoupdater plugin too?
Yes, but onli told, autoupdater doesn't do the check for new version. Because of this i opened this thread :)
Which S9y version do you run? Stable or Alpha?
1.6, as i wrote ;)
so, 1.6.1 and now 1.6.2 should be shown as available.
Reset your dashboard config.
I have removed and reinstalled dashboard-plugin from backend. Hope, that's enough?
The next message <p> $version is up to date! </p> is confusing in this case.
Indeed, because it isn't ;)
The autocheck will check once a day, so you will possibly have to wait for tomorrow then.
We have tomorrow, but nothing changed :(
please try with removing the compiled dashboard files in templates_c
Done, but nothing changed.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: [serendipity_event_dashboard] message "1.6 is up to date

Post by Timbalu »

Oh well, but reset was meant to submit config again...
and the message you see has nothing to do with it.
The missing update notifier should pop up in the N/A field above. But you have to have dashboard plugin config option ("Check for new available Version of Serendipity", "Prüfe Verfügbarkeit einer neuen stabilen Serendipity Version") set to stable.

This part of the dashboard, fetching the new release number, hasn't changed.

Code: Select all

https://raw.github.com/s9y/Serendipity/master/docs/RELEASE
fopen($updateURL, 'r');
Maybe you can't use fopen() on your server?
It must be something special, as Grischa and I have/had this notifier successfully, since I changed the RELEASE file days ago....
https://github.com/s9y/additional_plugi ... d.php#L387

The last you could try, is to clean up the serendipity_config table by hand, erasing all dashboard occurrences and install the dashboard again via new event plugins.

Edit: What I have added to this is a serendipity_checkPermission('adminUsers') check. ...But you said this was not working for you even with the official dashboard... so this cannot be the issue.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

Re: [serendipity_event_dashboard] message "1.6 is up to date

Post by bernd_d »

Maybe you can't use fopen() on your server?

Code: Select all

$datei = fopen('https://raw.github.com/s9y/Serendipity/master/docs/RELEASE', 'r');
echo fgets($datei, 50);
gives stable:1.6.2, so fopen should work.
What I have added to this is a serendipity_checkPermission('adminUsers') check. ...But you said this was not working for you even with the official dashboard... so this cannot be the issue.
I'm admin, so this shouldn't be the problem too.
The last you could try, is to clean up the serendipity_config table by hand, erasing all dashboard occurrences and install the dashboard again via new event plugins.
I have removed dashboard from backend and then there have not been any entries within mysql. Seems they are cleaned up correct.
onli
Regular
Posts: 2830
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: [serendipity_event_dashboard] message "1.6 is up to date

Post by onli »

I commited a patch. compareVersion didnt work with 1.6 and 1.6.2, because it stopped on 1.6. Now it assumes that 1.6=1.6.0 and thus sees the update.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: [serendipity_event_dashboard] message "1.6 is up to date

Post by Timbalu »

Hey good!
I also updated the P.o.C. version, fixing this and the notice.

Malte, what can we do about that missing file read write error Grischa caught while updating?

Edit: why don't we use nice and easy version-compare http://php.net/manual/de/function.version-compare.php here?
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
onli
Regular
Posts: 2830
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: [serendipity_event_dashboard] message "1.6 is up to date

Post by onli »

Timbalu wrote: Malte, what can we do about that missing file read write error Grischa caught while updating?
React upon that special case in code. Haven't had a look yet.
Timbalu wrote: Edit: why don't we use nice and easy version-compare http://php.net/manual/de/function.version-compare.php here?
The existing code isn't that complicated, but true, using a built-in function is better.
Post Reply