I've tried installing Views several times now and each time I get this same error message. It appears as though it's looking for files in the "includes" folder, but I don't see an "includes" folder in the "views" folder. Can anyone help?

Comments

jaydelaney’s picture

Status: Active » Closed (fixed)
KerrySanto’s picture

Version: 6.x-2.3 » 6.x-2.5

okay i have tried this a few times, ive cleared out the database, i have reinstalled a fresh drupal about 3 times and I haven't got a clue where I am going wrong

Warning: require_once(./sites/all/modules/views/includes/admin.inc) [function.require-once]: failed to open stream: No such file or directory in /home/scaryme/public_html/testsite/sites/all/modules/views/views_ui.module on line 168

Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/views/includes/admin.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/scaryme/public_html/testsite/sites/all/modules/views/views_ui.module on line 168

KerrySanto’s picture

Status: Closed (fixed) » Active

forgot to open this up, apologies, tried a few other things but they didnt work either

atzi’s picture

I get the same error. This occurred when installing a new Drupal site and installing and after enabling Views.
Now the site will not open at all. On any address including the home page same error.....

Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/views/includes/admin.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lynnauto/public_html/solar/sites/all/modules/views/views_ui.module on line 168

I opened the views_ui.module folder and line 168 says........

require_once "./$path/includes/admin.inc";

merlinofchaos’s picture

Category: bug » support
Status: Active » Closed (won't fix)

This can only mean that Views files are installed properly. Ensure that the tarball didn't flatten the directories or mangle the names. But clearly, it's trying to load views/includes/admin.inc and is unable to find it. That file should have been included with Views.

atzi’s picture

I downloaded views and uploaded again to my site folder and when extracting the views-6.x-2.6.tar.gz file
after many files created at the bottom is......
Output Truncated by browser
Is this a factor?
I re-extracted the views-6.x-2.6.tar.gz file on top of the already extracted files and did not get the Fatal error. The problem is gone.
So I am fine now but what did I learn?

payam321’s picture

hi i get this same error :
Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/views/includes/admin.inc'

on drupal 16 or 17 i didn't get this error but on this new version drupal 18 i get this views error and i can't fix this i don't know what is wrong is there some thing wrong with my hosting company or is it to do with drupal new versions

Stasroot1’s picture

Version: 6.x-2.5 » 6.x-2.13
Assigned: Unassigned » Stasroot1
Category: support » bug
Status: Closed (won't fix) » Active

Problems when updating views c version * .12 to * .13 * .16 current available

Delete the old folder with the module version 12, fill the folder with the version of the module 13, there is a critical patch, update the list of modules through the admin panel, shows that the version of the module is now 13, but as I recall, he just reads the version of the module file *. Info ... ie should execute the script: update.php, he is not satisfied, departs with such a mistake:

require_once(./sites/all/modules/views/includes/admin.inc): failed to open stream: No such file or directory in file /home/srv/www/vhosts/vgreble.ru.loc/sites/all/modules/views/views_ui.module on line 169.

Address handling: http://vgreble/update.php?op=info
Error appears when working out here this function:

function views_ui_theme() {
  $path = drupal_get_path('module', 'views');
  require_once "./$path/includes/admin.inc";

Are, respectively, 167,168,169 lines.
On the 169 line:

 require_once "./$path/includes/admin.inc";

Tell me what the problem is how to treat?

Stasroot1’s picture

Category: bug » task
Status: Active » Fixed

The problem was the lack of multiple files in a specified directory. When you copy a folder on the site is not a known cause, unrelated to Drupal does not have copied all the files. And this occurred because of this error.

This is a problem of my OS, briefings could be a Dolphin file manager with root privileges.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.