I just installed Drupal on FreeBSD server (Apache 1.3.34, PHP 5.1.4, MySQL 4.1.18).
Then I followed the link to start page and got Drupla error page (403):
Access denied
warning: array_keys() [function.array-keys]: The first argument should be an array in /usr/home/staff/rav/public_html/ysa/modules/user/user.module on line 361.
warning: implode() [function.implode]: Bad arguments. in /usr/home/staff/rav/public_html/ysa/modules/user/user.module on line 361.
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 DISTINCT(p.perm) FROM ysa_role r INNER JOIN ysa_permission p ON p.rid = r.rid WHERE r.rid IN () in /usr/home/staff/rav/public_html/ysa/includes/database.mysqli.inc on line 151.
warning: array_keys() [function.array-keys]: The first argument should be an array in /usr/home/staff/rav/public_html/ysa/modules/block/block.module on line 644.
warning: implode() [function.implode]: Bad arguments. in /usr/home/staff/rav/public_html/ysa/modules/block/block.module on line 644.
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 ysa_blocks b LEFT JOIN ysa_blocks_roles r ON b.module = r.module AND b.delta = r.delta WHERE b.theme = 'garland' AND b.status = 1 AND (r.rid IN () OR r.rid IS NULL) ORDER BY b.region, b.weight, b.module in /usr/home/staff/rav/public_html/ysa/includes/database.mysqli.inc on line 151.
You are not authorized to access this page.
Note! PHP.ini option session.auto_start = 1
Comments
I had this problem as well.
I had this problem as well. Here is a post where it was solved for others and me...if that doesn't work, search that entire thread or do a new search on "access denied"...it's been discussed pretty thoroughly here:
http://drupal.org/node/20397#comment-112105
Session auto start causes drop of session during installation
I investigated my case.
Problem is with option (php.ini):
session.auto_start=1This brokes work with PHP session in Drupal.
---
I introduce short workaround:
- at file /includes/bootstrap.inc after line
case DRUPAL_BOOTSTRAP_SESSION:insert this code
BTW, the same workaround I formerly did for Joomla :-)