Hello,
Drupal looks really promising to me. I installed it on a local server and it run just fine. Customized it a bit and then tried to upload it to the server. However, there I get strange errors. In never read that Drupal does only run on PHP > 4.1.0. The manual just says it needs a PHP4-capable webserver.

My webhost has PHP 4.0.6. There error sounds like "Fatal error: Call to undefined function: array_key_exists() in /home/.sites/51/site54/web/modules/locale.module on line 287"
I tried to rename locale.module and then the site loads. It does not look very nice (looks like no theme can be found, but perhaps that can easily be solved once I get in the admin-area), but it loads. So, this sounds like that I cannot use Drupal just because in one module the function array_key_exists is used. That's a pity...

Or perhaps I can disable that module. However, I guess I need it because I'd like to have my site in the Dutch language. I could ask my webhost to consider upgrading their PHP-version, but I guess that could take some time. Otherwise I am thinking about the possibility to rewrite locale.module so that array_key_exists is not used anymore. But currently I do not know what this function is used for and with what I could replace it.

I hope that someone has some more insights on this...

Thanks in advance,

Martijn
http://www.mozbrowser.nl (the site where Drupal should be hosted)

Comments

Kjartan’s picture

System requirements:
As of Drupal 4.2, we require PHP version 4.1+. Older releases will run on PHP 4.0.6+. We recommend using the latest version of PHP.

--
Kjartan

nirwana101’s picture

I also did some homework and amongst others visited the PHP-website at http://nl.php.net/array_key_exists

It says "Note: The name of this function is key_exists() in PHP version 4.0.6."
So I changed the line in locale.module to key_exists and now the server isn't complaining anymore.

When I place the .htaccess in the main-directory of Drupal I get an Internal Server Error. Could that be about specific permissions for this file ? Or that the server is not configured to use .htaccess ? I also removed some lines from the .htaccess to see if that helped, but even with one additional PHP-setting inside it still gave the 500-error.

The fact that Drupal did not look too good was that I had the wrong URL in conf.php, so that was easily solved. But now lots of functions aren't working, so I guess I will do a clean install of the database. Perhaps that will help.
About the remaining problems:
clicking on the link for creating a new account just seems to load index.php again. It adds an additional slash inbetween:
http://www.mozbrowser.nl//index.php?q=user/register
It does not seem to recognize user/register. Or does that have something to do with the PHP-settings in the .htaccess ?

I hope someone can shed some lights on these.

Thanks in advance,

Martijn

nirwana101’s picture

I already found what caused the additional slash in the URL: I did not read the comments in conf.php. However, then still no links are really working. So I guess that also has something to do with the new PHP-version.

Now I installed a previous Drupal-version to see whether that works better. And it does !!! At least the basic-functions of Drupal are working again with this older version.
Now I need to find the way to enable non-logged-in users to also view the frontpage. But I guess that cannot be very hard...

And of course see whether I can customize the theme, modules, etc. I will have a look at the Drupal 4.2.0-changelog to see what I am currently missing because I do not run the latest version.

Greetings,

Martijn
http://www.mozbrowser.nl/index.php