Drupal 5.0
Configuration file Protected
Cron maintenance tasks Last run 3 days 12 hours ago
You can run cron manually.
Database schema Up to date
File system Writable (public download method)
GD library bundled (2.0.28 compatible)
MySQL database 5.0.27
PHP 5.2.0
Unicode library PHP Mbstring Extension
Web server Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.0
I initially set up drupal 5.0 for a single site using the default set-up for that. I was bad and just dumped the files directly into the htdocs folder.
Now I'm wanting to set up a test site so I can install modules, and work on customizing the user profiles before I move those changes over to the production site. This means separate databases.
A little confused I forged ahead and admittedly broke my site attempting to follow instructions. Thank god for having mySQL Administrator installed which permitted me to make a back up of the database, reinstall xampp and restore the database and my files.
Root is htdocs
Drupal is in htdocs/drupal
Anyway, now my themes and modules are in sites/all/
My production site is in sites/sheffielduncensored.ath.cx
My dev site is in sites/sevsheffuncen.ath.cx
I then attempting to set up virtualhost, and started with this:
NameVirtualHost *
ServerName sheffielduncensored.ath.cx
DocumentRoot /www/
ServerName devsheffielduncensored.ath.cx
DocumentRoot /www/
Both URLS are giving errors
Fatal error: Call to undefined function user_access() in C:\Program Files\xampp\htdocs\drupal\includes\menu.inc on line 1376
Which refers to the below chunk of code:
/**
* Returns TRUE if the site is off-line for maintenance.
*/
function _menu_site_is_offline() {
// Check if site is set to off-line mode
if (variable_get('site_offline', 0)) {
// Check if the user has administration privileges
if (!user_access('administer site configuration')) {
// Check if this is an attempt to login
if (drupal_get_normal_path($_GET['q']) != 'user') {
return TRUE;
}
}
else {
$offline_message = t('Operating in off-line mode.');
$messages = drupal_set_message();
// Ensure that the off-line message is displayed only once [allowing for page redirects].
if (!isset($messages) || !isset($messages['status']) || !in_array($offline_message, $messages['status'])) {
drupal_set_message($offline_message);
}
}
}
return FALSE;
}
Line #1376 is this line :: if (!user_access('administer site configuration')) {
Why am I thinking putting the site offline while I tinkered with this was a BAD idea.
Checked the DB in dev
changed the offline site variable to that of an online one via mysql on the dev site only.
Then realized that I made a mistake pointing root to the right folder, so corrected that based on someones advice to www/drupal
I then battled with the Bad Request error.
I hopped onto google and searched finding that xampp is a bit picking on how virtual host is set up
I got past that error
I did some research on xampp and the virtual host function.
I found this:
http://www.webmasterworld.com/forum92/3130.htm
I put a copy of that code in with it adjusted to my stuff.
Now I get this error on the dev url I get :
Fatal error: Call to undefined function block_list() in C:\Program Files\xampp\htdocs\drupal\includes\theme.inc on line 1013
Which refers to this code:
/**
* Return a set of blocks available for the current user.
*
* @param $region
* Which set of blocks to retrieve.
* @return
* A string containing the themed blocks for this region.
*/
function theme_blocks($region) {
$output = '';
if ($list = block_list($region)) {
foreach ($list as $key => $block) {
// $key == module_delta
$output .= theme('block', $block);
}
}
// Add any content assigned to this region through drupal_set_content() calls.
$output .= drupal_get_content($region);
return $output;
}
This line in particular " if ($list = block_list($region)) {"
And on the production url I get the same error I had before:
Fatal error: Call to undefined function user_access() in C:\Program Files\xampp\htdocs\drupal\includes\menu.inc on line 1376
Any ideas since I have no clue at this point.
Original post was here: http://drupal.org/node/53705#comment-191416
Comments
Comment #1
Miss Essence commentedI got it working but the documentation explaining it did not detail out how to do it very well. I intend to write a step by step walk through of how I did it when I have time.
Comment #2
Miss Essence commentedclose