[installation & upgrade] the message "a new version is available" still displayed after upgrade #191

Closed
opened 2026-10-04 23:46:25 +02:00 by adam · 5 comments
Owner

Reported by plg on 7 Jul 2012 13:02

Version: 2.4.1

On administration home page. The only solution to hide this message is to disconnect and reconnect (ie create a new session)

Maybe there is a variable to unset in the session.

Piwigo Bugtracker #2681

**Reported by plg on 7 Jul 2012 13:02** **Version:** 2.4.1 On administration home page. The only solution to hide this message is to disconnect and reconnect (ie create a new session) Maybe there is a variable to unset in the session. [Piwigo Bugtracker #2681](http://piwigo.org/bugs/view.php?id=2681) <!-- github-sync-id:97226412 -->
adam closed this issue 2026-10-04 23:46:25 +02:00
Author
Owner

Comment posted by plg on 25 Jul 2012 10:52

Actually in function upgrade_to() of file admin/include/updates.class.php performs the appropriate :

unset($_SESSION['need_update']);

For now, I don't understand why the message still occurs once updated.

**Comment posted by plg on 25 Jul 2012 10:52** Actually in function upgrade_to() of file admin/include/updates.class.php performs the appropriate : unset($_SESSION[&#039;need_update&#039;]); For now, I don&#039;t understand why the message still occurs once updated. <!-- github-comment-id:124892519 -->
Author
Owner

Comment posted by plg on 27 Jul 2012 08:24

I've performed several tests while upgrading to 2.4.2 and 2.4.3 and I can't reproduce the bug.

**Comment posted by plg on 27 Jul 2012 08:24** I&#039;ve performed several tests while upgrading to 2.4.2 and 2.4.3 and I can&#039;t reproduce the bug. <!-- github-comment-id:124892540 -->
Author
Owner

Comment posted by plg on 14 Sep 2012 10:59

I have been able to reproduce with a manual upgrade.

**Comment posted by plg on 14 Sep 2012 10:59** I have been able to reproduce with a manual upgrade. <!-- github-comment-id:124892551 -->
Author
Owner

Comment posted by plg on 18 Feb 2015 15:00

xbgmsharp has found something on http://piwigo.org/forum/viewtopic.php?id=25182

**Comment posted by plg on 18 Feb 2015 15:00** xbgmsharp has found something on http://piwigo.org/forum/viewtopic.php?id=25182 <!-- github-comment-id:124892570 -->
Author
Owner

Comment posted by xbgmsharp on 18 Feb 2015 15:35

I narrow down the issue to the javascript call by the "intro.tpl"
The following URL is call:
"ws.php?method=pwg.extensions.checkUpdates&format=json"

This return the following json:
{"stat":"ok","result":{"piwigo_need_update":true,"ext_need_update":true}}

As "piwigo_need_update" is set to true, the message "A new version of Piwigo is available." show up.

I did not see any HTTP sent header that include the version.

I believe it is in cookie or somewhere else.

**Comment posted by xbgmsharp on 18 Feb 2015 15:35** I narrow down the issue to the javascript call by the &quot;intro.tpl&quot; The following URL is call: &quot;ws.php?method=pwg.extensions.checkUpdates&amp;format=json&quot; This return the following json: {&quot;stat&quot;:&quot;ok&quot;,&quot;result&quot;:{&quot;piwigo_need_update&quot;:true,&quot;ext_need_update&quot;:true}} As &quot;piwigo_need_update&quot; is set to true, the message &quot;A new version of Piwigo is available.&quot; show up. I did not see any HTTP sent header that include the version. I believe it is in cookie or somewhere else. <!-- github-comment-id:124892593 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#191