Community & Support

Fatal error: user_access() theme.inc line 1776

I am getting this error, after i have been trying to fix some other errors occurring during the installation of drupa 6.16.

Fatal error: Call to undefined function: user_access() in /home/sv_compulancedk/wwwdrupal/drupal-6.16/includes/theme.inc on line 1776

PLEASE, HELP ME!!!!! I have been trying to install drupal for couple of days now, but it is always coming with some errors, after fixing others........ :(:(:(

HELP!!!!!!!!!!!!!!!!!!!

Comments

Hi, just a quick note,

Hi, just a quick note, screaming at the bottom of your post _probably_ won't encourage people to help you any quicker.

Are you trying to install Drupal on your local machine, shared hosting etc? It is important that the file system permissions are set correctly, 755 usually does the trick.

Try hitting the following pages to see if they work and report back
/user
/admin
/update.php

If you can provide any more details to where / how this is occuring, it definately improves your chances of someone helping you get the solution.

Thanks for the advice. I do

Thanks for the advice.

I do not know if it is a shared hosting. The company where i work is using two servers - one for their website and i am working on the other one - trying to install drupal.

About the error:
After the window about choosing a language it shows the same one, but all in white and everything is written just like text - no options possible. After that in the url i go back to the drupal folder, so that i repeat the installation, when i click on the folder - it shows this message.

- Ekaterina Velkova -

I have the same problem. I

I have the same problem. I tried to install drupal 6.16 on a server Vevida. They told me it was possible to install drupal, but I think it is a windows server.

That are the steps I made:
- I installed drupal 6.16 on the ftp server
- I set up the writing permissions on the default settings file (I had to do this in the admin panel of my webhoster, because I couldn't do this on my ftp. the webhoster told me so)
- I went to the website
- I chosed the language
- Put the database instructions
- and than i had this error message: ...includes/theme.inc on line 1776

I tried hitting /user and /admin and update.php, but nothing happened. I receive an error message.

Can someone help me?

thanks

I have the same problem when

I have the same problem when installing Drupal (on local machine)
and than i had this error message: ...includes/theme.inc on line 1776

I tried hitting /user and /admin and update.php and I have the following error

Fatal error: Call to undefined function filter_xss_bad_protocol() in C:\Apache2.2\htdocs\drupal6\includes\common.inc on line 1049

Can someone help me.

It works now.
I have unzip again the Drupal project in apache. Copy the file sites\default\default.settings.php to sites\default\settings.php.
Restart Apache and go to the Drupal site again and it will go forward.

filter disabled?

hi Nick, i get the same problem.

/updatephp: WSOD
/user1: Fatal error: Call to undefined function user_uid_optional_load() in /home/myftp/mysite.com/includes/menu.inc on line 410
/admin: Fatal error: Call to undefined function user_access() in /home/.porche/myftp/mysite.com/includes/menu.inc on line 449
/node/X (where X is any numberof an existing node): Fatal error: Call to undefined function node_load() in /home/.porche/myftp/mysite.com/includes/menu.inc on line 410
page UR: Fatal error: Call to undefined function user_access() in /home/.porche/myftp/mysite.com/includes/theme.inc on line 1776

any suggestions? I would definitely appreciated.

Thx, hellaswebnews

I am having the same problem.
I have tried to hit /admin /user etc. and I receive the same error.

Please advise thanks

agnihotrabelize

DTools

Make sure that you have all Drupal core files. You can download Drupal again and replace all the files.
After that read this: http://drupal.org/node/482956

Quickest way is to use: http://drupal.org/project/dtools
Download, copy into drupal module dir and go to following page:

/sites/all/modules/dtools/wsod/wsod_emergency.php
/modules/dtools/wsod/wsod_emergency.php

etc.
Depends where you copied this module.
You can add '?q=' suffix to specify the page, like: ?q=node
If it's still not fixed and Paste the output.

DTools

at first thank you kindly for your quick reply.

1. this is the result or running /sites/all/modules/dtools/wsod/wsod_emergency.php
/modules/dtools/wsod/wsod_emergency.php

hook_exit wasn't executed properly at frontpage, possible unexpected exit()/die()
Backtrace:

hook_exit wasn't executed properly at frontpage, possible unexpected exit()/die()
Backtrace: wsod_sess_close(:);session_write_close(:);

2. ?q=node etc : Fatal error: Call to undefined function node_load() in /home/.porche/myftp/mysite.com/includes/menu.inc on line 410

duplicate files

There one important unwritten rule. Never do backup of Drupal within the Drupal directory.
When you did upgrade, probably you copied your old Drupal into sites/all/modules/CDC-6.15.2 and now Drupal have duplicated paths of core modules and doesn't know which to use.
Please remove or move your another instance of Drupal outside your www root directory and run:
sites/all/modules/dtools/wsod/wsod_emergency.php?q=node
to rebuild your system table with correct paths.

YES!!! but partially

First I want to thank you for the time spent on my issue and I have to admit you are way further into things than I am.

Problem is partially solved. From nowhere (wsod) I now get the pages (nodes) but with errors. I can actually log into my admin account and do various things.

I do have a problem with front page though (and the error messages on all the nodes)

I you have some spare time have a look in the links below to see what I mean (don't bother with the content, its all Greek to you :) )

http://www.hellaswebnews.com/

http://www.hellaswebnews.com/frontpage

Kind Regards

aris53m
http://www.hellaswebnews.com/node/1762

problem solved. Thx for your

problem solved. Thx for your support!!!

I am also getting the

I am also getting the user_access() and filter_xss_bad_protocol() message when I try to set up a second site through a multisite install of Drupal 6.19:

Fatal error: Call to undefined function user_access() in /.../includes/theme.inc  on line 1776 (running /index.php)
Fatal error: Call to undefined function user_access() in /.../includes/menu.inc  on line 449 (running /admin)
Fatal error: Call to undefined function filter_xss_bad_protocol() in /.../includes/common.inc  on line 1053 (running /update.php)

The first site is running without problems which makes me think that the files should be ok. I tried the dtools module but it also offers me a white screen.

Are there any more ideas what could cause this behavior?

Things to check

I was also getting the following error after updating a 6.17 site:

Call to undefined function filter_xss_bad_protocol() ... /includes/common.inc on line 1053

It worked fine with my other sites, including multisite setups sharing one database through the Domain Access module. First check are the paths to your modules and compare them against the system table in the DB. Then check for duplicate core components that may confuse Drupal. Another good tip is to re-upload the core components via FTP, just to be sure all of the files made it to their destination.

When all of these didn't work, I looked at the Filter module itself. In my case, it was Filezilla causing the problem. For some reason, when I uploaded the core and module components the file modules/filter/filter.module reported a 0 filesize.

I tried to re-upload the file in question, and it still gave me grief. Finally, I deleted the file on the remote server and uploaded a 4th time with success. After that, update.php ran fine. Hope it helps.

Check file permissions on settings.php

Even though I had installed Drupal for several clients and even more test sites I just encountered this error for the first time upon installation. It has been solved by enabling write permission for /sites/default/settings.php, simple as that.

I noticed one more symptome: if the file permissions are not set right the "Advanced options" on Database configuaration page is not clickable (thus the fieldset is not getting expanded).

Cheers,
Paul

EDIT: The problem has not been solved, but it helped to make the fieldset expandible again. The installation still stops without notification on "Install Site".

EDIT2: I dropped all database tables and tried some tips from http://drupal.org/node/381808 and finally succeeded. The last thing I tried before was to add ini_set("display_errors", 0); at the top of the settings.php.

-- formerly known as sin.star

nobody click here