New versions installed but not showing in WAMP menu
Posted by: jerryjoh (---.12.100.97.cfl.res.rr.com)
Date: August 09, 2009 04:40PM

I have WAMP 2.0 installed on a Win XP machine. I have had it installed over a year. It works great. I wanted to install the latest version of Apache, MySQL, and PHP so I downloaded them and ran the install programs. The installs all ran successfully, but the new versions do not show in the WAMP menu under the version list for any of the apps.

I checked the wamp folder and the new versions are there, but they do not show up in the list. I have restarted the machine several times but no luck.

How can I get them to show?

Regards,

Jerry

Options: ReplyQuote
Re: New versions installed but not showing in WAMP menu
Posted by: toumimi (---.114.116-78.rev.gaoland.net)
Date: August 09, 2009 04:48PM

Submenu containing different version of application is automatically generated.
Probably you got an error in refresh.php file...
Check your php error log to see if there is an error...
Then it should be a wampserver.conf file into each folder version...

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: New versions installed but not showing in WAMP menu
Posted by: jerryjoh (---.12.100.97.cfl.res.rr.com)
Date: August 09, 2009 05:30PM

I do get an error each time I start wamp. See the following two lines:
[09-Aug-2009 11:02:14] PHP Warning: require(lang): failed to open stream: No such file or directory in J:\wamp\scripts\refresh.php on line 29
[09-Aug-2009 11:02:14] PHP Fatal error: require(): Failed opening required 'lang' (include_path='.;C:\php5\pear') in J:\wamp\scripts\refresh.php on line 29

But that doesn't appear to be new. My system drive is j: not c:, but I haven't had any trouble with that before.

Each version of the PHP, Apache, and MySQL all have a wampserver.conf file.

I did check the wampmanager.conf file in the wamp folder and it only shows the original versions. See below:

[php]
phpVersion = "5.2.6"
phpLastKnown = 5.2.6
phpIniDir = .
phpConfFile = php.ini
phpExeDir = .

Can I update that file and, if so, what is the format?

I appreciate your help.

Jerry

Options: ReplyQuote
Re: New versions installed but not showing in WAMP menu
Posted by: toumimi (---.114.116-78.rev.gaoland.net)
Date: August 09, 2009 05:45PM

So you can't refresh wamp menu. I'm sure that it's not updated if you tick a php extension for example...
You must correct this error in order to use wamp functionallities.

You are probably using a wamp installed in c:
Check your shortcut and check if there is a wamp folder in c:

Try to modify InstallDir in wampmanager.conf if it's wrong 'c:/wamp' to 'j:/wamp'

Finally, check scripts/config.inc.php file which contains lang dir.

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: New versions installed but not showing in WAMP menu
Posted by: jerryjoh (---.12.100.97.cfl.res.rr.com)
Date: August 09, 2009 05:59PM

I don't have a c: drive installed. The installDir parameter is "j:/wamp".

I checked the config.inc.php file but I don't see a lang dir parameter.

Sorry to be such a bother!

Jerry

Options: ReplyQuote
Re: New versions installed but not showing in WAMP menu
Posted by: toumimi (---.114.116-78.rev.gaoland.net)
Date: August 09, 2009 06:13PM

Hum you get two problems..

if (is_file($langDir.$lang.'.lang'))
    {
        require($langDir.$lang.'.lang');
    }
else
    {
        require($langDir.$wampConf['defaultLanguage'].'lang');
    }

You are in the second case (default) so $langDir is empty and $wampConf['defaultLanguage'] is empty,
and so it require string 'lang' which is the concatenation...

Few possible source of problems...

Is this code at the top of your refresh.php file :
require 'config.inc.php';
require ('wampserver.lib.php');

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: New versions installed but not showing in WAMP menu
Posted by: jerryjoh (---.12.100.97.cfl.res.rr.com)
Date: August 09, 2009 06:19PM

Yes, those are the first two lines of refresh.php

Options: ReplyQuote
Re: New versions installed but not showing in WAMP menu
Posted by: toumimi (---.114.116-78.rev.gaoland.net)
Date: August 09, 2009 06:53PM

So those files are well included. (no require error raised)
Add missing vars into different files to get it working. I don't know why they are not, but...

In main section of wampmanager.conf, add those lines :
defaultLanguage = "english"
language = "english"

In config.inc.php, add this line :
$langDir = '../lang/';

Clear your php error log file to be sure that errors are new.
Then do a refresh from wamp menu (or quit and relaunch wamp) and watch php error log file.
If there is no error, then your menu should have been updated with all versions and eventually others modifications.

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: New versions installed but not showing in WAMP menu
Posted by: jerryjoh (---.12.100.97.cfl.res.rr.com)
Date: August 09, 2009 07:46PM

I got rid of the lang error but I'm still getting the following:

[09-Aug-2009 13:37:08] PHP Fatal error: require(): Failed opening required '' (include_path='.;C:\php5\pear') in J:\wamp\scripts\refresh.php on line 68


Is this supposed to b ethe wampmanager.tpl file in j:\wamp ?

Options: ReplyQuote
Re: New versions installed but not showing in WAMP menu
Posted by: toumimi (---.114.116-78.rev.gaoland.net)
Date: August 09, 2009 08:33PM

Yes, wampmanager.tpl should be in j:\wamp.

I suggest you to rename your wamp folder to make a backup and to reinstall a working wamp.
Then you import previous addon without modifying anything.
Try if it works.
Then import your configuration (alias, projects, databases)

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: New versions installed but not showing in WAMP menu
Posted by: jerryjoh (---.12.100.97.cfl.res.rr.com)
Date: August 10, 2009 06:32AM

Thank you for your help. I renamed my wamp folder and reinstalled. That got me the newest versions of each app. Then I installed the older versions piecemeal and they all show.

I then imported my databases and I'm back up and running.

Thanks again.

Jerry

Options: ReplyQuote


Sorry, only registered users may post in this forum.