PDA

View Full Version : "Cannot use a scalar value as an array in"


mr_moot
06-20-2008, 09:05 AM
The server is a windows machine running PHP and MYSQL 5

The installation process actually completes successfully despite the errors, however, when you go to log in for the first time the page simply reloads if you enter the correct user name and password.

A normal error message is displayed if the user name/password are wrong.

Any suggestions would be apreciated.


Upon Installation I get the following error:


Warning: Cannot use a scalar value as an array in E:\web\public_html\eqman\jordankalev_site\admin\in stall\install_functions.php on line 297

Warning: Cannot use a scalar value as an array in E:\web\public_html\eqman\jordankalev_site\admin\in stall\install_functions.php on line 310

Warning: Cannot use a scalar value as an array in E:\web\public_html\eqman\jordankalev_site\admin\in stall\install_functions.php on line 321

Warning: Cannot use a scalar value as an array in E:\web\public_html\eqman\jordankalev_site\admin\in stall\install_functions.php on line 334

Warning: Cannot use a scalar value as an array in E:\web\public_html\eqman\jordankalev_site\admin\in stall\install_functions.php on line 350

Warning: Cannot use a scalar value as an array in E:\web\public_html\eqman\jordankalev_site\admin\in stall\install_functions.php on line 368

Warning: Cannot use a scalar value as an array in E:\web\public_html\eqman\jordankalev_site\admin\in stall\install_functions.php on line 377

Warning: Cannot use a scalar value as an array in E:\web\public_html\eqman\jordankalev_site\admin\in stall\install_functions.php on line 392

Warning: Cannot use a scalar value as an array in E:\web\public_html\eqman\jordankalev_site\admin\in stall\install_functions.php on line 401

Warning: Cannot use a scalar value as an array in E:\web\public_html\eqman\jordankalev_site\admin\in stall\install_functions.php on line 444

mr_moot
06-25-2008, 01:09 AM
How can I possibly be the only one having this problem.

I tried re-uploading the files. It must be because I am trying to install it on a windows platform or some settings in php are different?

It passes all the requirement tests during the setup processes.


If anybody could help it would be appreciated.

Thanks.

Dkozikowski
06-25-2008, 02:43 AM
OK. Lets try this.

Open admin/install/install_functions.php in a basic text editor and find the following code (It should be at the very top of the file.): if(!defined('PP_INSTALL')) { die(header("Location: ../index.php")); }

Right below that line of code add the following: $result = array();

So the end result will look something like this:

if(!defined('PP_INSTALL')) { die(header("Location: ../index.php")); }

$result = array();

mr_moot
06-25-2008, 04:24 AM
As it turns out the install completed successfully despite the errors.

My inability to log in was fixed by simply checking the remember password box.

Thanks anyway for your response!