PDA

View Full Version : Fatal errors on new install - array_key_exists()


PaulJ
09-07-2005, 06:27 PM
Hi,

I am running Apache 1.3.33 with PHP 4.0.6. All files have been uploaded in there original case, and all the relivant permissions have been changed.

After some initial trouble I enabled mod_rewrite ON, and that helped me get to my next problem.

When I execute /install/ in the browser, I get the following errors:

Notice: SmartyValidate: [unregister_validator] form 'default' is not registered. in /usr/local/home/httpd/vhtdocs/seosoftware.net/resources/libs/smarty/SmartyValidate.class.php on line 417

Fatal error: Call to undefined function: array_key_exists() in /usr/local/home/httpd/vhtdocs/seosoftware.net/resources/libs/intsmarty/intsmarty.class.php on line 224

The fatal error seemed to be the array_key_exists function, so I changed it to key_exists in the libs/intsmarty/intsmarty.class.php (in two places).

Then I run /install/ again, and get the following errors:

Notice: SmartyValidate: [register_criteria] form 'default' is not registered. in /usr/local/home/httpd/vhtdocs/seosoftware.net/resources/libs/smarty/SmartyValidate.class.php on line 487

Notice: SmartyValidate: [unregister_validator] form 'default' is not registered. in /usr/local/home/httpd/vhtdocs/seosoftware.net/resources/libs/smarty/SmartyValidate.class.php on line 417

Fatal error: Call to undefined function: version_compare() in /usr/local/home/httpd/vhtdocs/seosoftware.net/resources/install/index.php on line 134

The fatal error this time round is caused by the version_compare function.

Nothing is showing up in the error log. Do you think there is any hope that I will get this script working?

Any help at all most appreciated!! I feel the problem might be with the Apache configuration simply because so many other people seem to run the scipts with little problem, but cant be sure!

Thanks,
Paul

Ap0s7le
09-08-2005, 06:10 AM
Hey Paul, seems you're running an older version of PHP.

Try upgrading :)

-Casey

PaulJ
09-08-2005, 10:37 AM
What version should I be running?

Does this help:

{test url removed}

PaulJ
09-08-2005, 12:20 PM
Well, I upgraded to PHP 4.2 and hey presto, everything works perfectly. Now I just have to get to grips with how to use it!

yktan
09-08-2005, 02:41 PM
Congratulations PaulJ, glad to hear that you got it working. Have fun playing with PHPLD :)

Ap0s7le
09-08-2005, 05:21 PM
Latest with it not running in CGI haha

later