Just installed Wampserver2
Posted by: enor_anidi (---.asfd.broadband.ntl.com)
Date: November 29, 2007 09:24PM

Hi

I have just installed the latest WampServer from this website. But when I view the index.php file I get the following Notices at the top of my page:

Notice: Undefined variable: aliasContents in C:\wamp\www\index.php on line 178

Notice: Undefined variable: projectContents in C:\wamp\www\index.php on line 193

Notice: Undefined variable: phpExtContents in C:\wamp\www\index.php on line 204

Does anyone know why this has happened?

Thanks

Options: ReplyQuote
Re: Just installed Wampserver2
Posted by: yfastud (Moderator)
Date: November 30, 2007 03:48PM

If your problem still exist after restarting wamp, your index file or might be whole wamp is corrupted while installing; you might want to uninstall and reinstall it

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Just installed Wampserver2
Posted by: enor_anidi (---.asfd.broadband.ntl.com)
Date: December 02, 2007 12:11PM

Thanks for your suggestion.

I did try un-installing it and re-installing it again but I still get the same 'Notice' messages.

I guess it shouldn't be too much of a concern then right? As ran my test database and it appears to be working ok.

Options: ReplyQuote
Re: Just installed Wampserver2
Posted by: yfastud (Moderator)
Date: December 02, 2007 04:54PM

I remember it happens to someone before, but not sure about the solution. Anyway, try different browser to see if you duplicate the same error or not

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Just installed Wampserver2
Posted by: enor_anidi (---.asfd.broadband.ntl.com)
Date: December 02, 2007 05:47PM

Ok well if the solution comes back to you? Please do let me know....

And just tried opening the link in IE and still the same messages.

I will see if anything else pops up with this installation I have.

Options: ReplyQuote
Re: Just installed Wampserver2
Posted by: rip_pit (---.w90-5.abo.wanadoo.fr)
Date: December 04, 2007 05:21PM

I had the same problem here what you can (must) do :

Edit the file index.php

1.Modify the path in the line :
$wampConfFile = '../wampmanager.conf';
Write the full path to the file (not relative path)
For me it gives :
$wampConfFile = 'D:/wamp/wampmanager.conf';

2.Modify the path in the line :
$aliasDir = '../alias/';
Write the full path to the the alias folder
For me it gives :
$aliasDir = 'D:/wamp/alias/';

It should fix the problem.

---------------------------------------------
XP SP3 - pIV - 3.2Ghz - 1.5Go de ram - Wamp 2.0

Options: ReplyQuote
Re: Just installed Wampserver2
Posted by: enor_anidi (---.asfd.broadband.ntl.com)
Date: December 09, 2007 10:57PM

Thanks for that.

Will try it out if I get those 'Notices' on my index.php page again, as for some reason they have disappeared.

Options: ReplyQuote
Re: Just installed Wampserver2
Posted by: swaruprajsekar (---.sify.net)
Date: January 25, 2008 12:01PM

Hello,

I am getting a similar error while opening [localhost] in my browser.

- Notice: Undefined variable: aliasContents in C:\wamp\www\index.php on line 178

- Notice: Undefined variable: phpExtContents in C:\wamp\www\index.php on line 204

What do you suggest?

Thanks in advance!

> Swarup

Options: ReplyQuote
Re: Just installed Wampserver2
Posted by: rip_pit (---.w90-5.abo.wanadoo.fr)
Date: January 25, 2008 06:03PM

it is errors but only notices.
I doesn't block the script but a notice to be corrected.
To correct it, manually edit the file index.php and declare the faulty vars:

in line 171, add something like this:
$aliasContents = '';

After that, in line 189:
$projectContents = '';

then 205:
$phpExtContents = '';


Or you can just change the error_reporting variable in php.ini to don't report Notices.

---------------------------------------------
XP SP3 - pIV - 3.2Ghz - 1.5Go de ram - Wamp 2.0

Options: ReplyQuote
Re: Just installed Wampserver2
Posted by: swaruprajsekar (59.92.194.---)
Date: January 25, 2008 07:44PM

Thank you rip_pit. It works perfectly after correcting it with your guidance.

There are no more notices.

Cheers,
Swarup

Options: ReplyQuote
Re: Just installed Wampserver2
Posted by: groundzero2010 (---.ks.ks.cox.net)
Date: January 27, 2008 08:00PM

This Notice is very common so it seems. Usually when a variable is used but not set with a value. There are also problems when you set a variable value, yet you don't use that variable anywhere in your application.

---------------------------------------------
Windows NT VISTA 6.0 build 6000
MySQL Version: 5.0.45-community-nt
PHP Version: 5.2.5
Web Server: Apache/2.2.6 (Win32) PHP/5.2.5 mod_aspdotnet/2.2
Web Server to PHP interface: apache2handler
Joomla! Version: Joomla! 1.5.0 Production/Stable


GZero

Options: ReplyQuote
Re: Just installed Wampserver2
Posted by: Cold Blue (---.dhcp.stls.mo.charter.com)
Date: January 28, 2008 03:01PM

rip_pit Wrote:
-------------------------------------------------------
> I had the same problem here what you can (must) do
> :
>
> Edit the file index.php
>
> 1.Modify the path in the line :
> $wampConfFile = '../wampmanager.conf';
> Write the full path to the file (not relative
> path)
> For me it gives :
> $wampConfFile = 'D:/wamp/wampmanager.conf';
>
> 2.Modify the path in the line :
> $aliasDir = '../alias/';
> Write the full path to the the alias folder
> For me it gives :
> $aliasDir = 'D:/wamp/alias/';
>
> It should fix the problem.

I followed these steps but used 'C:/wamp...' instead and still get the errors.



Edited 1 time(s). Last edit at 01/28/2008 03:01PM by Cold Blue.

Options: ReplyQuote
Re: Just installed Wampserver2
Posted by: rip_pit (---.w82-125.abo.wanadoo.fr)
Date: January 28, 2008 05:51PM

can't be !

if your wamp installation folder is c:/wamp then it should work fine.

# For wampconfFile, you must wrote:
$wampConfFile = 'C:/wamp/wampmanager.conf'; #(with slashes and not antislashes) to tell wamp where he can locate the so called "wampmanager.conf" file on your drives.

if not, look in the logs if nothing else is wrong (open with notepad) :
C:\wamp\logs\php_error.log
C:\wamp\logs\apache_error.log

---------------------------------------------
XP SP3 - pIV - 3.2Ghz - 1.5Go de ram - Wamp 2.0

Options: ReplyQuote
Re: Just installed Wampserver2
Posted by: Cold Blue (---.dhcp.stls.mo.charter.com)
Date: January 29, 2008 04:04AM

//chemin jusqu'au fichier de conf de WampServer
$wampConfFile = 'C:/wamp/wampmanager.conf';

//chemin jusqu'aux fichiers alias
$aliasDir = 'C:/wamp/alias/';


This is exactly what I have in there and it is still causing the error.

Options: ReplyQuote
Re: Just installed Wampserver2
Posted by: rip_pit (---.w82-125.abo.wanadoo.fr)
Date: January 29, 2008 05:01PM

what's in the logs ?

---------------------------------------------
XP SP3 - pIV - 3.2Ghz - 1.5Go de ram - Wamp 2.0

Options: ReplyQuote
Re: Just installed Wampserver2
Posted by: Cold Blue (---.dhcp.stls.mo.charter.com)
Date: January 30, 2008 06:00AM

[27-Jan-2008 13:45:07] PHP Notice: Undefined variable: aliasContents in C:\wamp\www\index.php on line 178

[27-Jan-2008 13:45:07] PHP Notice: Undefined variable: projectContents in C:\wamp\www\index.php on line 193

[27-Jan-2008 13:45:07] PHP Notice: Undefined variable: phpExtContents in C:\wamp\www\index.php on line 204



**********************************

[Sun Jan 27 12:42:28 2008] [notice] Apache/2.2.6 (Win32) PHP/5.2.5 configured -- resuming normal operations
[Sun Jan 27 12:42:28 2008] [notice] Server built: Sep 5 2007 08:58:56
[Sun Jan 27 12:42:28 2008] [notice] Parent: Created child process 2520
[Sun Jan 27 12:42:28 2008] [notice] Child 2520: Child process is running
[Sun Jan 27 12:42:28 2008] [notice] Child 2520: Acquired the start mutex.
[Sun Jan 27 12:42:28 2008] [notice] Child 2520: Starting 250 worker threads.
[Sun Jan 27 12:42:28 2008] [notice] Child 2520: Starting thread to listen on port 80.
[Sun Jan 27 12:52:51 2008] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sun Jan 27 12:52:51 2008] [notice] Child 2520: Exit event signaled. Child process is ending.
[Sun Jan 27 12:52:52 2008] [notice] Child 2520: Released the start mutex
[Sun Jan 27 12:52:53 2008] [notice] Child 2520: Waiting for 250 worker threads to exit.
[Sun Jan 27 12:52:53 2008] [notice] Child 2520: All worker threads have exited.
[Sun Jan 27 12:52:53 2008] [notice] Child 2520: Child process is exiting
[Sun Jan 27 12:52:53 2008] [notice] Parent: Child process exited successfully.



Stuff like that.

Options: ReplyQuote
Re: Just installed Wampserver2
Posted by: rip_pit (---.w82-125.abo.wanadoo.fr)
Date: January 30, 2008 05:25PM

lol! this loggued notices aren't related to the config file vars:
$wampConfFile = 'C:/wamp/wampmanager.conf';
$aliasDir = 'C:/wamp/alias/';
are not faulty here ...

The following will correct the notices, the answer is already given at the top of this thread :
in line 171, add something like this:
$aliasContents = '';

After that, in line 189 add:
$projectContents = '';

then 205 add:
$phpExtContents = '';

---------------------------------------------
XP SP3 - pIV - 3.2Ghz - 1.5Go de ram - Wamp 2.0

Options: ReplyQuote


Sorry, only registered users may post in this forum.