I followed the installation guide step by step, and I've tried every version of Drupal I could find. They all do this.

The installation proceeds normally, like everything is perfect. Then, on the very last screen which tells me "Drupal installation complete" - I get the following errors in a red box:

-----------------------------------------------------------------------------------------
* warning: array_fill() [function.array-fill]: Number of elements must be positive in /websites/drupal/includes/database.inc on line 253.
* warning: implode() [function.implode]: Bad arguments. in /websites/drupal/includes/database.inc on line 253.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /websites/drupal/modules/user/user.module on line 513.
* 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 /websites/drupal/modules/user/user.module on line 513.
-----------------------------------------------------------------------------------------

When I access the site itself post-install, I get this:

-----------------------------------------------------------------------------------------
Access denied

* warning: array_fill() [function.array-fill]: Number of elements must be positive in /websites/drupal/includes/database.inc on line 253.
* warning: implode() [function.implode]: Bad arguments. in /websites/drupal/includes/database.inc on line 253.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /websites/drupal/modules/user/user.module on line 513.
* 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 /websites/drupal/modules/user/user.module on line 513.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /websites/drupal/modules/block/block.module on line 432.
* warning: array_fill() [function.array-fill]: Number of elements must be positive in /websites/drupal/includes/database.inc on line 253.
* warning: implode() [function.implode]: Bad arguments. in /websites/drupal/includes/database.inc on line 253.
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /websites/drupal/modules/block/block.module on line 433.
* 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 /websites/drupal/modules/block/block.module on line 433.

You are not authorized to access this page.
-----------------------------------------------------------------------------------------

Any ideas?

Thank you!!

Comments

cog.rusty’s picture

It must be some PHP setting. Maybe session.auto_start not set to 0, or something else.

If your server does not accept PHP settings from .htaccess files, check the PHP settings in Drupal's .htaccess file (the "php_value" lines) and try to set them yourself in php.ini.

Daerimin’s picture

That was it. session.auto_start was set to 1, because I've always found that very convenient. I suppose the new term for that is "lazy."

Thank you so much.

~D

noslokire’s picture

Fixed, thanks. Wasted a morning, hopefully another comment on this saves someone else from the same pain!