PDA

View Full Version : Install Error


Deckard
11-19-2003, 08:30 PM
Hi,

I have PHP 4.0 installed (from PHP.Net) with an Apache Server and MySQL 4.0.12, on a Windows XP Pro system.
I have been trying to install your calendar but I have some problems as soon as I use the escalInstall.php.
I created a data base in MySQL "My_Calendar" and made the modifications to escalDB.php.

When using escalInstall.php I have the following errors:
Notice: Undefined variable: error in C:\Apache2\htdocs\EZCalendar\escalInstall.php on line 17
>> The connection to the database was successful!

Notice: Undefined variable: error in C:\Apache2\htdocs\EZCalendar\escalInstall.php on line 37
>>The table was added to the database!

You should now be able to use the ESCalendar Script with it's SQL functions.
Never the less the table "escevents" has been created in the database.
The line 17 only contain "if ($error) {".
And the line 37 the same "if ($error) {".

If I try to run the Calendar I havec even more error and nothing get displayed.

Can somebody give me some help ? :huh:

Brian
11-19-2003, 10:16 PM
What happens if you add this at line 2 in the escal.php file:

error_reporting(0);

Deckard
11-19-2003, 10:46 PM
You are the man Papa ! http://12.211.5.182/MV/Forum/Images/Smiles/Yeah.gif
The calendar display itself, but some more problem come up after that.

So far what I can see is the link to Add Event end up being http://12.211.5.182/ezcalendar/<br%20/>Notice:%20%20Undefined%20variable:%20%20PHP_SELF%2 0in%20C:/Apache2/htdocs/EZCalendar/escalAE.php%20on%20line%2044<br%20/>?event=add which is the HTML code
">Add Event (<? echo )w
I get some more error on the page such as
Notice: Undefined variable: Submit in C:\Apache2\htdocs\MV\Calendar\escalAE.php on line 50
Notice: Undefined variable: Submit in C:\Apache2\htdocs\MV\Calendar\escalAE.php on line 105
Notice: Undefined variable: event in C:\Apache2\htdocs\MV\Calendar\escalAE.php on line 120
Notice: Undefined variable: event in C:\Apache2\htdocs\MV\Calendar\escalAE.php on line 148
Notice: Undefined variable: eid in C:\Apache2\htdocs\MV\Calendar\escalAE.php on line 188
Notice: Undefined variable: del in C:\Apache2\htdocs\MV\Calendar\escalAE.php on line 223
Notice: Undefined variable: Submit in C:\Apache2\htdocs\MV\Calendar\escalAE.php on line 230
Notice: Undefined variable: Submit in C:\Apache2\htdocs\MV\Calendar\escalAE.php on line 275

I added "error_reporting(0);" in EscalAE.php which of course hide the errors. But I can't add event either.

You can check the calendar at http://www.Morts-Vivants.clan.st/Calendar/Index.php

What would be causing the errors ?

Another question: regarding the license, what is your policy regarding futur upgrades ?

Deckard
11-20-2003, 03:03 AM
:rolleyes: Ok I'm sorry... was my fault...

I had register_globals = Off in my PHP.ini which was the reason of all my troubles with the Calendar.
The code is fine but all the variables were not defined... which of course raised all the errors.

From there it work all fine, I can add events an use the rest of it.

Thanks for your time, sorry for the trouble Papa.

Brian
11-20-2003, 10:06 AM
No problem. I'm glad everything is working now.

trinitywave
04-07-2004, 09:46 PM
DOn't you want to program with registered globals off......

Brian
04-07-2004, 09:52 PM
The script is developed with register_globals = Off so this should not be an issue while running the calendar script.

The answer to the undefined variables can be found in the FAQ. This applies to servers with abnormal error reporting settings.