Hi!

After installation of Drupal 6.10 and filling in a form I received a greeting page with following errors:

Drupal installation complete

warning: array_fill() [function.array-fill]: Number of elements must be positive in /home/username/www/includes/database.inc on line 241.
warning: implode() [function.implode]: Invalid arguments passed in /home/username/www/includes/database.inc on line 241.
warning: array_keys() [function.array-keys]: The first argument should be an array in /home/username/www/modules/user/user.module on line 502.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT p.perm FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in /home/username/www/modules/user/user.module on line 502.

Congratulations, Drupal has been successfully installed.
Please review the messages above before continuing on to your new site

If I click on 'continuing on to your new site' I receive the following page:

Access denied

warning: array_fill() [function.array-fill]: Number of elements must be positive in /home/username/www/includes/database.inc on line 241.
warning: implode() [function.implode]: Invalid arguments passed in /home/username/www/includes/database.inc on line 241.
warning: array_keys() [function.array-keys]: The first argument should be an array in /home/username/www/modules/user/user.module on line 502.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT p.perm FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in /home/username/www/modules/user/user.module on line 502.
warning: array_keys() [function.array-keys]: The first argument should be an array in /home/username/www/modules/block/block.module on line 406.
warning: array_fill() [function.array-fill]: Number of elements must be positive in /home/username/www/includes/database.inc on line 241.
warning: implode() [function.implode]: Invalid arguments passed in /home/username/www/includes/database.inc on line 241.
warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/username/www/modules/block/block.module on line 407.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') OR r.rid IS NULL) ORDER BY b.region, b.weight, b.module' at line 1 query: SELECT DISTINCT b.* FROM blocks b LEFT JOIN blocks_roles r ON b.module = r.module AND b.delta = r.delta WHERE b.theme = '' AND b.status = 1 AND (r.rid IN () OR r.rid IS NULL) ORDER BY b.region, b.weight, b.module in /home/username/www/modules/block/block.module on line 407.

You are not authorized to access this page.

I tried several times to delete website with database and to reinstall it, but it did not help.

How to solve such problem?

Comments

hanzahar’s picture

delete everything and install again...don't use fantastico

YIY’s picture

But how can I install without fantastico? Is it possible to switch it off?

einsteinsboi’s picture

The better way is to install Drupal manually. Delete the database and files the first install created. Then go into phpmyadmin in your host and create a new database and a new user with all privileges. Add the user to the database. Make sure you write down somewhere the name of the user and the password and the name of the database and its password.

Then you need to go to Drupal.ord and download Drupal. Unzip it on your desktop or somewhere where you will remember. Open the folder site/default and find the file default.settings.php. Make a copy of that file and rename the copy to settings.php. So now you should have two files in that folder - default.settings.php and settings.php.

Now you're ready to transfer the files to your host.

Using an FTP client, like Filezilla or FireFTP (firefox extension), upload all the contents of the Drupal folder (not the folder itself, just the folders and files inside it) to your host.

When that is done, open your browser and enter your domain name, and this should take you to start installing Drupal. You will need to enter the database name and user name from before and their passwords.

This is kind of a rough guide but I hope it helps.

You can also watch an excellent screencast here: http://www.lullabot.com/videocasts/installing-drupal-6

YIY’s picture

Actually I did so, but these errors remain.

I contacted my hosting provider – they have neither fantastico nor cpanel.
They have a Linux Server and they were also not able to install Drupal 6.10 (or previous Version) properly.

kenorb’s picture

This could be related as well to wrong parameters in 'access callback'.
See: http://drupal.org/node/368584