http://localhost/moodle/auth/joomdle/land_logout.php Error

  • Don Chico
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 10 months ago - 12 years 10 months ago #1 by Don Chico
Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.

Im using joomla 2.5.9 moodle 2.5 joomdle 09


Please see attached picture. I have observed that it is able to connect to moodle database able to logout of joomla because if i refresh the page it shows the site that have already logged out, however I still encounter the error on every log out attempt

just for the record I have configured my moodle data directory correctly on my moodle root folders config.php .

===============================================
<?php // Moodle configuration file

unset($CFG);
global $CFG;
$CFG = new stdClass();

$CFG->dbtype = 'mysqli';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'mydatabase';
$CFG->dbuser = 'mydbusername;
$CFG->dbpass = 'mydbpassword';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbsocket' => 0,
);

$CFG->wwwroot = 'http://localhost/moodle';
$CFG->dataroot = '/var/www/moodledata';
$CFG->admin = 'admin';

$CFG->directorypermissions = 0755; // before this was 0777 changed it to 0755 to test permission issue

require_once(dirname(__FILE__) . '/lib/setup.php');

// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!
==============================================================

hope you can help me with this one :)

thank you so much! :cheer:
Last edit: 12 years 10 months ago by Don Chico.

Please Log in or Create an account to join the conversation.

  • Don Chico
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 10 months ago #2 by Don Chico
SOLUTION FOR THIS IS:

go to joomla admin>>components>>joomdle>>configuration>>Use redirectless logout SET TO "Yes"

Works like a charm!

:)

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago - 12 years 10 months ago #3 by Fernando Acedo
$CFG->dataroot should be something like = '/var/moodledata';

In moodle 2.x moodledata folder must be outside the public folder with the proper rights and user permissions
Last edit: 12 years 10 months ago by Fernando Acedo.

Please Log in or Create an account to join the conversation.

  • Don Chico
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 10 months ago - 12 years 10 months ago #4 by Don Chico
B) Joomla 2.5.9 / moodle 2.5 / joomdle R09

thank you for your prompt reply chris :) I really appreciate your help! I have a question regarding this issue.

:unsure: I tried working around with the permission changing it to 0777 and doing it manually from CentOS Shell but still no luck.
It seems that I'm not having any problem accessing the moodledata on my localhost. At mysite http://feutamboard,no-ip.biz, I am able to use the modules like the mod_question it connects to my moodle question bank and i am able to access the My Courses module but when I try to click the lecture files in My Course Moodle Module to try and download it, I encounter the $CFG->dataroot Error do the thing if I try to access it from its IP (192.168.5.107) another computer on my network.
:(
It seems that i will not be able to download my lecture from moodledata directory because it tries to load the url from localhost and this does not connect if i am outside of it. like if I try to pull the website from another computer using its local ip or accessing the file from my http://feutamboard,no-ip.biz website.
:blink:
however as i have said when I tried to download the same lecture from the computer (localhost) where my server resides i am able to access it without any error
:whistle:
======================================================
online = feutamboard.no-ip.com
Network Access = http://192.168.5.107
The Computer where my server reside = http://localhost
joomla directory = /var/www/html
moodle directory = /var/www/html/moodle
moodledata directory = /var/www/moodledata
======================================================
:huh:
so I think its not a permission issue because I am able to access the folder from the localhost.

I hope you can help me, Im sorry for the long message its the result of the long hours of research i did.

Thank you again Chris! More Power to you and to Antonio :) :P
Last edit: 12 years 10 months ago by Don Chico.

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #5 by Chris
Hi there,

I am not that experienced when it comes to the unix side. I believe this would be a question best posted in the moodle forums as they would be more experienced withe Moodle's configuration as it relates to unix / linux.

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #6 by Fernando Acedo
Is your localhost running on Linux or Windows?

Please Log in or Create an account to join the conversation.

  • Don Chico
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 10 months ago - 12 years 10 months ago #7 by Don Chico
working with different errors and trying to resolve them had pointed me to related errors that had one solution :)

in this thread I have solved 2 errors in one solution.

the one at the this thread and the one on this link .

by the way Chris I am using CentOS 6.4 in my VMware Machine which is running on top of my Windows 7
Last edit: 12 years 10 months ago by Don Chico.

Please Log in or Create an account to join the conversation.