Tray menu does not update
Posted by: LukeWCS (---.hsi13.kabel-badenwuerttemberg.de)
Date: May 14, 2020 07:30PM

Hi

Basically, Wampserver works perfectly, I have only had the problem for a few months that the menu is no longer updated in the following situations:

1. The left-click menu shows versions of PHP and MySQL that I uninstalled a long time ago.
2. In the right-click menu, the "Tools> Delete unused versions" menu also shows versions of PHP and MySQL that no longer exist.
3. If I change a version of PHP in the left-click menu, the system switches to the other version without errors, but the menu shows that the previous version was still selected. In my case 7.1.33 is displayed permanently, no matter what I choose.

I have already tried to fix wampmanager.ini with wampini_repair.bat, but it was not successful. In this case, the Wampmanager icon is available and green, but neither left-click nor right-click works.

Can I try something else to fix it? A new installation would take a lot of effort and I would like to avoid that.

Options: ReplyQuote
Re: Tray menu does not update
Posted by: Otomatic (Moderator)
Date: May 14, 2020 07:59PM

Hi,

Which version of Wampserver?

- Verify that all VC ++ packages are installed and with the latest versions.
To do this, use the tool:
Checks VC++ packages installed
Do not use a previously loaded tool. Make a new download to make sure you are using the correct version.
To download missing packages, do not rely on Microsoft links, they are not reliable, download packages on http://wampserver.aviatechno.net in section Visual C++ Redistribuable Packages
Do not forget that if you have a 64 bit Windows, you must install both 32 and 64 bit versions of each package.
You must install each package "as an administrator", so right-click the exe file and then run as Administrator.

- Apply Update 3.2.2 to your version of Wampserver
Wampserver update 3.2.2

> menu shows versions of PHP and MySQL that I uninstalled a long time ago.
How did you proceed to uninstall these versions a long time ago?

To indicate that a PHP version exists, Wampserver looks for all phpx.y.z folders in the wamp(64)/bin/php folder AND the presence in these folders of the files wampserver.conf AND phpForApache.ini

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.2 32 bit - Apache 2.4.43 - PHP 7.4.6/7.3.18/..../5.6.40 - MySQL 5.7.30 - MariaDB 10.4.12
Wampserver 3.2.2 64 bit - Apache 2.4.43 - PHP 7.4.6/7.3.18/..../5.6.40 - MySQL 5.7.30/8.0.20 - MariaDB 10.4.12
PhPMyadmin 5.0.2 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: Tray menu does not update
Posted by: LukeWCS (---.hsi13.kabel-badenwuerttemberg.de)
Date: May 14, 2020 09:11PM

Hi Otomatic

Thanks for your help.

> Which version of Wampserver?

I updated it today from 3.2.0 to 3.2.2 with wampserver3_x86_x64_update3.2.2.exe.

Originally I started with 3.1.7, everything was fine. If I remember correctly, the problem only came after the update to 3.2.0. However, I don't know exactly when the problem occurred because I rarely change the PHP version. So it could be related to update 3.2.0, but I can't say for sure.

> - Verify that all VC ++ packages are
> installed and with the latest versions.
> To do this, use the tool:
> [url=http://wampserver.aviatechno.net/files/tools/
> check_vcredist.exe]Checks VC++ packages
> installed[/url]

Results:

VC_2008_SP1_ATL_SEC_UPD_REDIST_X86 ID={1F1C2DFC-2D24-3E06-BCB8-725134ADF989}
Visual C++ 2008 SP1 ATL Security (x86)
**** NOT INSTALLED ****
Installation file is on: [url]http://wampserver.aviatechno.net[/url]
VC 2008 SP1 ATL Package (x86)
----------------------------------------
*** VC_2008 (VC9) is needed to use PHP 5.3 or 5.4 ***
VC_2013_REDIST_X86_MIN ID={8122DAB1-ED4D-3676-BB0A-CA368196543E}
Visual C++ 2013 x86 Minimum Runtime - 12.0.40664
**** NOT INSTALLED ****
Installation file is on: [url]http://wampserver.aviatechno.net[/url]
VC 2013 Package Up 5 (x86)
----------------------------------------
VC_2019_REDIST_X86 ID={2BC3BD4D-FABA-4394-93C7-9AC82A263FE2}
Visual C++ 2015-2019 x86 Minimum Runtime - 14.25.28508
**** NOT INSTALLED ****
Installation file is on: [url]http://wampserver.aviatechno.net[/url]
VC 2015-2019 (VC16 x86) 14.25.28508
----------------------------------------
VC_2008_SP1_REDIST_X64 ID={9B3F0A88-790D-3AD9-9F96-B19CF2746452}
Visual C++ 2008 SP1 Redistributable Package (x64)
**** NOT INSTALLED ****
Installation file is on: [url]http://wampserver.aviatechno.net[/url]
VC 2008 SP1 Package (x64)
----------------------------------------
VC_2008_SP1_ATL_SEC_UPD_REDIST_X64 ID={4B6C7001-C7D6-3710-913E-5BC23FCE91E6}
Visual C++ 2008 SP1 ATL Security Update (x64)
**** NOT INSTALLED ****
Installation file is on: [url]http://wampserver.aviatechno.net[/url]
VC 2008 SP1 ATL Package (x64)
----------------------------------------
*** VC_2008 (VC9) is needed to use PHP 5.3 or 5.4 ***
VC_2013_REDIST_X64_MIN ID={53CF6934-A98D-3D84-9146-FC4EDF3D5641}
Visual C++ 2013 x64 Minimum Runtime Update 5 - 12.0.40664
**** NOT INSTALLED ****
Installation file is on: [url]http://wampserver.aviatechno.net[/url]
VC 2013 Up 5 (x64)
----------------------------------------
VC_2019_REDIST_X64 ID={EEA66967-97E2-4561-A999-5C22E3CDE428}
Visual C++ 2015-2019 x64 Minimum Runtime - 14.25.28508
**** NOT INSTALLED ****
Installation file is on: [url]http://wampserver.aviatechno.net[/url]
VC 2015-2019 (VC16 x64) 14.25.28508
----------------------------------------

So it looks like some dependencies are missing!? However, I have never uninstalled any C ++ runtimes. O.o

> - Apply Update 3.2.2 to your version of
> Wampserver
> [url=http://wampserver.aviatechno.net/files/update
> s/wampserver3_x86_x64_update3.2.2.exe]Wampserver
> update 3.2.2[/url]

I have already done this in the hope that the menu will work again.

> > menu shows versions of PHP and MySQL that I
> uninstalled a long time ago.
> How did you proceed to uninstall these versions a
> long time ago?

With "Tools > Delete unused versions".

> To indicate that a PHP version exists, Wampserver
> looks for all phpx.y.z folders in the
> wamp(64)/bin/php folder AND the presence in these
> folders of the files wampserver.conf AND
> phpForApache.ini

Okay, I checked all the PHP folders and these two files are everywhere and have content.

Options: ReplyQuote
Re: Tray menu does not update
Posted by: Otomatic (Moderator)
Date: May 15, 2020 09:00AM

Hi,

> So it looks like some dependencies are missing!? However, I have never uninstalled any C ++ runtimes.
Yes, but some Windows updates do it surreptitiously for you.
So, install what's missing and don't bother looking for where the files are at Microsoft, there's everything you need in the link provided.

> With "Tools > Delete unused versions".
Option that appeared with Wampserver 3.0.7 and has not been modified since.
It is the wamp(64)\scripts\deleteVersion.php script that performs the complete deletion of the folder, with an error message in php_error.log if there is a problem.

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.2 32 bit - Apache 2.4.43 - PHP 7.4.6/7.3.18/..../5.6.40 - MySQL 5.7.30 - MariaDB 10.4.12
Wampserver 3.2.2 64 bit - Apache 2.4.43 - PHP 7.4.6/7.3.18/..../5.6.40 - MySQL 5.7.30/8.0.20 - MariaDB 10.4.12
PhPMyadmin 5.0.2 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: Tray menu does not update
Posted by: LukeWCS (---.hsi13.kabel-badenwuerttemberg.de)
Date: May 16, 2020 12:06AM

Otomatic Wrote:
-------------------------------------------------------
> Yes, but some Windows updates do it
> surreptitiously for you.

Darn! Can I somehow prevent this?

> So, install what's missing and don't bother
> looking for where the files are at Microsoft,
> there's everything you need in the link provided.

Okay, done. I downloaded and installed all missing packages from [wampserver.aviatechno.net]. Then I ran check_vcredist.exe again: all okay now. However, it didn't do anything regarding the menu problematic.

> > With "Tools > Delete unused versions".
> Option that appeared with Wampserver 3.0.7 and has
> not been modified since.

Not that you misunderstand me: all functions of both menus work as far as I can tell. Simply neither of the two menus is updated.

> It is the wamp(64)\scripts\deleteVersion.php
> script that performs the complete deletion of the
> folder, with an error message in php_error.log if
> there is a problem.

Okay, I have now looked at this log and it looks as if the following line is added to the log every time the PHP version is changed:

[15-May-2020 23:40:58 Europe/Berlin] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) in G:\programme\wamp\scripts\refresh.php on line 541

So whenever I select an action in one of the two menus where the menu needs to be updated, this message appears in the log. That is 100% reproducible.

Options: ReplyQuote
Re: Tray menu does not update
Posted by: Otomatic (Moderator)
Date: May 16, 2020 08:52AM

Hi,

With a text editor, like Notepad++, open successively all the log files located in wamp64/logs/, empty the content (Ctrl-A, Suppr) then save the empty file.

This problem, corrected with 3.2.2, comes from a problem of growing memory occupancy not cleaned after each operation.

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.2 32 bit - Apache 2.4.43 - PHP 7.4.6/7.3.18/..../5.6.40 - MySQL 5.7.30 - MariaDB 10.4.12
Wampserver 3.2.2 64 bit - Apache 2.4.43 - PHP 7.4.6/7.3.18/..../5.6.40 - MySQL 5.7.30/8.0.20 - MariaDB 10.4.12
PhPMyadmin 5.0.2 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: Tray menu does not update
Posted by: Otomatic (Moderator)
Date: May 16, 2020 11:36AM

Hi,

Sometimes my memory fails, I don't remember very well (like in Jeanne Moreau's song - "J'ai la mémoire qui flanche"winking smiley:
- there's a tool that does that in three clicks: Right-Click -> Tools -> Empty logs -> Empty ALL log files

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.2 32 bit - Apache 2.4.43 - PHP 7.4.6/7.3.18/..../5.6.40 - MySQL 5.7.30 - MariaDB 10.4.12
Wampserver 3.2.2 64 bit - Apache 2.4.43 - PHP 7.4.6/7.3.18/..../5.6.40 - MySQL 5.7.30/8.0.20 - MariaDB 10.4.12
PhPMyadmin 5.0.2 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: Tray menu does not update
Posted by: LukeWCS (---.hsi13.kabel-badenwuerttemberg.de)
Date: May 16, 2020 11:53AM

Good morning

Otomatic Wrote:
-------------------------------------------------------
> Hi,
>
> With a text editor, like Notepad++, open
> successively all the log files located in
> wamp64/logs/, empty the content (Ctrl-A, Suppr)
> then save the empty file.

Done and ... yes, the menu works again. More precise: the menu is updated properly again. Yehaaa smiling smiley

> This problem, corrected with 3.2.2, comes from a
> problem of growing memory occupancy not cleaned
> after each operation.

Okay, if I understand that correctly, then the fix in 3.2.2 ensures that the error will no longer occur in the future, but cannot fix the error if it already exists?

> Sometimes my memory fails, I don't remember very well (like in Jeanne Moreau's song - "J'ai la mémoire qui flanche"winking smiley:

Hehe I can understand that, after all, we all don't get any younger.

> - there's a tool that does that in three clicks: Right-Click -> Tools -> Empty logs -> Empty ALL log files

Okay, so would it be a good idea to use this feature from time to time? I have to admit I've never used it.

In any case, thank you for your help and patience!

Options: ReplyQuote
Re: Tray menu does not update
Posted by: Otomatic (Moderator)
Date: May 16, 2020 12:45PM

Hi,

> Okay, if I understand that correctly, then the fix in 3.2.2 ensures that the error will no longer occur
> in the future, but cannot fix the error if it already exists?
That's exactly right, I was trying to figure out how to translate this into English, you did it better than me winking smiley

> Okay, so would it be a good idea to use this feature from time to time? I have to admit I've never used it.
By default and if the Wamp settings option "Clean up log files automatically" is left on, it's done by itself. Of course, this can only be done when starting Wampserver... not while it is started.

> Hehe I can understand that, after all, we all don't get any younger.
Let's just say that three-quarters of a century is long gone!

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.2 32 bit - Apache 2.4.43 - PHP 7.4.6/7.3.18/..../5.6.40 - MySQL 5.7.30 - MariaDB 10.4.12
Wampserver 3.2.2 64 bit - Apache 2.4.43 - PHP 7.4.6/7.3.18/..../5.6.40 - MySQL 5.7.30/8.0.20 - MariaDB 10.4.12
PhPMyadmin 5.0.2 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: Tray menu does not update
Posted by: LukeWCS (---.hsi13.kabel-badenwuerttemberg.de)
Date: May 19, 2020 10:15PM

Good evening

> That's exactly right, I was trying to figure out
> how to translate this into English, you did it
> better than me winking smiley

I also try to translate my language into English. So we have the same problem. But it worked. ^^

> By default and if the Wamp settings option "Clean
> up log files automatically" is left on, it's done
> by itself. Of course, this can only be done when
> starting Wampserver... not while it is started.

I just checked: this option is activated on my WampServer. What surprises me and what I forgot to write to you: before I deleted the logs according to your instructions, I saw that php_error.log had almost 100MB. If I understand the option correctly, a log would have to be reduced to 50 lines as soon as 1000 lines were reached, right?

So I checked a backup and the file had exactly 97,139,321 bytes and 765,930 lines.

> Let's just say that three-quarters of a century is
> long gone!

Okay, two-quartes here. ^^

Options: ReplyQuote
Re: Tray menu does not update
Posted by: Otomatic (Moderator)
Date: May 20, 2020 08:34AM

Hi,

> If I understand the option correctly, a log would have to be reduced to 50 lines as soon as 1000
> lines were reached, right?

It's a little more complicated. The only way I know how to get the number of lines in a text file is to use the PHP file() function, but this function consumes a lot of resources (memory and time), so before counting the number of lines I look at the size of the file (counting approximately 90 bytes per line) and only if it exceeds (maximum number of lines X 90) do I apply the magic reduction formula to the last 50 lines.

But then, if Wampserver has been running for a "certain time" the log files get bigger and these increases in size can only be checked when starting Wampserver, that's why one can be confronted with this "fatal error". Nevertheless, with Wampserver 3.2.2, this is now checked at each modification of Wamp, PHP, MySQL, Apache parameters and at version changes.

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.2 32 bit - Apache 2.4.43 - PHP 7.4.6/7.3.18/..../5.6.40 - MySQL 5.7.30 - MariaDB 10.4.12
Wampserver 3.2.2 64 bit - Apache 2.4.43 - PHP 7.4.6/7.3.18/..../5.6.40 - MySQL 5.7.30/8.0.20 - MariaDB 10.4.12
PhPMyadmin 5.0.2 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote


Sorry, only registered users may post in this forum.