do i have to change the paths to redirect the files to the moodledata directory?
1. have created a rootdirectory and a data directory
2. the users profile are stored in the user profile
however i am getting the following error
Warning: include_once(/home/shivda/public_html/moodle/shivda/moodledata/user/profile/lib.php) [function.include-once]: failed to open stream: No such file or directory in /home/shivda/public_html/moodle/lib/moodlelib.php on line 3339
Warning: include_once() [function.include]: Failed opening '/home/shivda/public_html/moodle/shivda/moodledata/user/profile/lib.php' for inclusion (include_path='/home/shivda/public_html/moodle/lib/pear:.:/usr/lib/php:/usr/local/lib/php') in /home/shivda/public_html/moodle/lib/moodlelib.php on line 3339
Fatal error: Call to undefined function profile_user_record() in /home/shivda/public_html/moodle/lib/moodlelib.php on line 3341
SD,
I'm not sure what you mean by " do i have to change the paths to redirect the files to the moodledata directory?," but judging by the error msgs. it looks like whatever you did was not correct, and the answer to the question is, "No".
I'm not sure what you mean by " do i have to change the paths to redirect the files to the moodledata directory?," but judging by the error msgs. it looks like whatever you did was not correct, and the answer to the question is, "No".
- Moodledata should normally not be under the main Moodle directory, for security reasons, because it should not be web-accessible. It looks like that's exactly where you put it. Sometimes you don't have a choice, but there are still steps you can take to make the data folder (directory) web inaccessible, depending on what type of web server software you are using (I'm guessing Apache), and whether you have access to the configuration file for it (usually called httpd.conf), and whether your web host allows you to use .htaccess files. But you certainly shouldn't have Moodle PHP files under the data folder.
- It looks like you've got it looking for Moodle script files that ought to be under the main Moodle folder, in subfolders of the Moodle data folder where they don't belong.
- From the msgs., I can see that your main Moodle folder is /home/shivda/public_html/moodle. My best guess is that your data folder is /home/shivda/public_html/moodle/shivda/moodledata. (Is this true? Does that folder exist?) The file the include_once function was looking for is /home/shivda/public_html/moodle/user/profile/lib.php (does that exist?), but it didn't find it because it was looking for it under moodledata. The undefined function error probably happened because the function was defined in the file that include_once was unable to find.
- So the questions are: am I right about the locations (pathnames) of the main Moodle folder and the data folder? What pathnames did you give the installation script (wizard) when it asked about those two folders? I suspect you gave it the wrong pathnames. If so, run it again and give the correct paths this time and you should get farther. Who knows, you might even successfully complete the installation process!