Undefined index: SCRIPT_FILENAME and Undefined variable: smarty
Greetings,
I am running MySQL 4.1.9, MS IIS 5.0, PHP 4.3.10. MS WIndows XP.
I ran the install script (tiki-install.php) after setting the MySQL to use old password hashing algorithm. The tikiwiki database I have in MySQL is called 'tikiwikidb'. This I created before running the tiki wiki installation script and specified this name in the database name question on the installation script first page.
During the installation script, after selecting the tiki wiki profile type to be the default type and hitting the 'update' button on the script selection question, on the next screen, i told it to rename the install script. The next screen I saw was the "http://localhost/tikiwiki/index.php" (running this on my local computer). And it had the following error:
Notice: Undefined index: SCRIPT_FILENAME in c:\inetpub\wwwroot\tikiwiki\tiki-setup.php on line 46
Warning: mysql error: SELECT command denied to user 'user1'@'localhost' for table 'tiki_preferences' in query:
select `name` ,`value` from `tiki_preferences`
in c:\inetpub\wwwroot\tikiwiki\lib\tikidblib.php on line 134
Notice: Undefined variable: smarty in c:\inetpub\wwwroot\tikiwiki\lib\tikidblib.php on line 152
An error occured in a database query!
If I login to MySQL directly at the MySQL prompt using the id 'user1', I can run select query on the ''tiki_preferences' table without any trouble. This 'user1' account was setup using the following commands:
mysql> GRANT ALL PRIVILEGES ON tikiwikidb TO user1@localhost;
mysql> SET PASSWORD FOR user1@localhost = OLD_PASSWORD('thepassword');
So what could be the problem? And how do I fix it?
Thanks.