Desperately need help

Desperately need help

Dr. Ali Abureesh - ން
Number of replies: 17
ފޮޓޯ ފޮޓޯ

Before I begin posting the problem that I'm facing with the installation of Moodle, I would like to say a word of thank and appreciation to Mr. Martin Dougiamas for the extremely excellent job he has done in moodle. In fact, I have not use it personally yet, but I have seen a friend of main using it for his classes and I decided to set it up for my classes as well; however, I'm finding a major problem installing it. I've checked all the posts in this forum concerning that same problem, but I found them of no help at all. Therefore, I'm posting this problem again and I hope I'm not duplicating the posts. But, honestly speaking the other posts, which I'm listing below, don't give much help.

Now let me state my problem:

Fatal error: Failed opening required '/aburessh/abureesh.net/www/onlinecourses//lib/setup.php' (include_path='.;c:\php4\pear') in D:\webspace\resadmin\aburessh\abureesh.net\www\onlinecourses\config.php on line 129

By the way, I've tried the two last version of Moodle; I've read all the posts here concerning this problem, but no help.

Is there any way that this can be fixed. Why it give this Fatal error while all the configrations in the config.php are correct?!

http://moodle.org/mod/forum/discuss.php?d=815

http://moodle.org/mod/forum/discuss.php?d=814

Average of ratings: -
In reply to Dr. Ali Abureesh

Re: Desperately need help

Martin Dougiamas - ން
ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ
Specifically, try this in your config.php:

$CFG->wwwroot = "D:\webspace\resadmin\aburessh\abureesh.net\www\onlinecourses";

(See how the correct address is in the error message?)
In reply to Martin Dougiamas

Re: Desperately need help

Dr. Ali Abureesh - ން
ފޮޓޯ ފޮޓޯ

Many thanks for your prompt reply. I tried your suggestion and I got the following:

Notice: Undefined property: dirroot in D:\webspace\resadmin\aburessh\abureesh.net\www\onlinecourses\lib\setup.php on line 18

Fatal error: Failed opening required '/lib/adodb/adodb.inc.php' (include_path='.;c:\php4\pear') in D:\webspace\resadmin\aburessh\abureesh.net\www\onlinecourses\lib\setup.php on line 20

It seems now the setup file is causing a problem. Do I need to edit it?!

In reply to Dr. Ali Abureesh

Re: Desperately need help

Martin Dougiamas - ން
ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ
My fault, sorry, I typed too quickly in my last post - I meant:

$CFG->dirroot = "D:\webspace\resadmin\aburessh\abureesh.net\www\onlinecourses";

wwwroot should still be your web address (URL).
In reply to Martin Dougiamas

Re: Desperately need help

Dr. Ali Abureesh - ން
ފޮޓޯ ފޮޓޯ
Hi Martin, I feel guilty for taking a lot of your time, please forgive me. I did as you said, but we are back to square # 1 The same old error: Fatal error: Failed opening required 'D:\webspace esadmin\aburessh\abureesh.net\www\onlinecourses/lib/setup.php' (include_path='.;c:\php4\pear') in D:\webspace\resadmin\aburessh\abureesh.net\www\onlinecourses\config.php on line 131 މޮޅިވެރި
In reply to Dr. Ali Abureesh

Re: Desperately need help

Martin Dougiamas - ން
ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ
No problem - glad to help. It's a trivial but annoying thing to be stuck on.

My guess now is that the \r between webspace and is being misinterpreted as a "return" character ... bizarre.

Anyhow ... in that setting (diroot) try changing all the \ characters to / :

$CFG->dirroot = 'D:/webspace/resadmin/aburessh/abureesh.net/www/onlinecourses';
In reply to Martin Dougiamas

Re: Desperately need help

Dr. Ali Abureesh - ން
ފޮޓޯ ފޮޓޯ
Thanks a lot for your time and endless support. I know I'm taking a lot of your time, though I'm not a programmer, but I think this very interesting and as you say "bizarre". After changing the "/ and \". this is what come up. Please fix your settings in config.php: You have: $CFG->dirroot = "D:/webspace/resadmin/aburessh/abureesh.net/www/onlinecourses"; but it should be: $CFG->dirroot = "D:\webspace\resadmin\aburessh\abureesh.net\www\onlinecourses"; Continue -------------------------------------------------------------------------------- You are not logged in. (Login) Home ------------- If I click continue, I get the same message. If I click (Login)I get the following: -------------------------- Could not create guest user record !!! No site found! Continue --------------------------------- By the way, could it be Windows?! Because my hosting company has a Windows platform not Unix Platform.
In reply to Dr. Ali Abureesh

Re: Desperately need help

Martin Dougiamas - ން
ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ
Sigh - caught by own bug catcher.

Unfortunately I don't have a Windows server handy at the moment to test this once and for all, but please try double backslashes for me:

$CFG->dirroot = "D:\\webspace\\resadmin\\aburessh\\abureesh.net\\www\\onlinecourses";

Yes, it's because of Windows - Unix uses forward slashes / so this problem never arises.
In reply to Martin Dougiamas

Re: Desperately need help

Ger Tielemans - ން

The last months I installed several other PHP-products on several Windows-machine for comparison-reasons. I got used to type forward slashes. (And also developed a reflex to remove spaces behind the last ?> in several php's when I get complains like "Cannot sent header.. (...had to do it in the last cvs.)
Getting scripts with extra linespaces became also a warning-signal for me.)

  • When I did a new install with 109, I was suprised that MOODLE prompted me, that I had to replace the backslahes with (window-style) forward-slashes
  • AND that I had to change "lowerscripts" in capitals when I had used them in names and paths (like I had to do otherwise when my testsfiles goto Linux)
  •  ..........but also I had to change c:\ into C:\

Another idea: I get the same messages if I spell name (or path) of the included file, in this case setup.php, wrong. (or is it a Capital problem?)

  • By the way, why is there this double forward slash before lib in your original error-message?
    (spelling error in the config for the paths?)

 '/aburessh/abureesh.net/www/onlinecourses//lib/setup.php' (include_path='.;c:\php4\pear')

In reply to Ger Tielemans

Re: Desperately need help

Martin Dougiamas - ން
ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ
Even though Windows itself stores but ignores the case of filenames, PHP on windows has some known problems when dealing with files if the case is wrong. That's why I added all the checks and prompts.
In reply to Martin Dougiamas

Re: Desperately need help

Dr. Ali Abureesh - ން
ފޮޓޯ ފޮޓޯ

cool.gif YES, THAT'S IT. Solved. billions of thanks. If I may suggset, this could be encluded in the Troubleshooting page and  in install file.

Thanks again.

By the way, I have many suggestion for improvements, I'll post them soon as I get totally familiar with your fantastic environment.

Always wish you the best.

Catch you soon.

In reply to Dr. Ali Abureesh

Re: Desperately need help

Martin Dougiamas - ން
ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ
I now realise this would all have been avoided if we'd just used single-quotes in the first place (no need for the double slashes then) - so I'll update the config-dist.php to do this.

What a big saga for a tiny problem, but a bug solved at least.

    By the way, I have many suggestion for improvements ...

Yes, Moodle has that effect on people. ވިންކް (އެއް ލޯ މެރި) ހެއްވާ މީހާ
In reply to Martin Dougiamas

Re: Desperately need help

Dr. Ali Abureesh - ން
ފޮޓޯ ފޮޓޯ

Well Martin, I'm speechless. Every thing is working fine, yet a few minor problems. Just to mention two of them because I think I'm becoming a pain in the neck.

First, I think what I'm facing right now, after the setup went smoothly, is directory permission because I can't access moodle home page. I get the following message:

Directory Listing Denied

This Virtual Directory does not allow contents to be listed.

Nonetheless, I can access the Administration part and I can modify Moodle. This is what is confusing me. If the directory does not have premission, then how can I access the Adminstration section and be able to make modifications?!

Second, when I Logout from the Adminstration section, which is the only thing that I can access now, I get the following error:

Fatal error: Call to undefined function: save_session() in D:\webspace\resadmin\aburessh\abureesh.net\www\onlinecourses\login\logout.php on line 8
Could this be because the directory premissions?!

Thanks.

P.S. By the way, I did register.

In reply to Dr. Ali Abureesh

Re: Desperately need help

Dr. Ali Abureesh - ން
ފޮޓޯ ފޮޓޯ

Hi I'm back again hoping I'm not bothering you  with all this.

For the previous problem is still even though my host says that the folder permission as set. This problem of Directory Listing Denied occurs when I just type in the URL http://www.abureesh.net/onlinecourses/   onlinecourses directory contains Moodle.

when I type the following URL : http://www.abureesh.net/onlinecourses/login/index.php

I get the login page, but at the top of the page I get the the following:

El sistema ha enviado un correo electrónico a \$a->email.

Revise su correo para recibir una nueva contraseña

La nueva contraseña se genera automáticamente, por lo que tal vez Ud. desee link>cambiarla por una que le sea más fácil de recordar."; $string['people'] = "Personas"; $string['personalprofile'] = "Información personal"; $string['phone'] = "Teléfono"; $string['potentialteachers'] = "Profesores potenciales"; $string['preferredlanguage'] = "Idioma preferido"; $string['preview'] = "Vista previa"; $string

This is just a small portion of this, in the page you have to scroll down till you get the login  page. After I enter the User name and the password and click the botton I'm back to the Directory Listing Denied message, but when I add the name of the file (index.php) it page comes out with, again, with the 

El sistema ha enviado un correo electrónico a \$a->email.

Revise su correo para recibir una nueva contraseña 

This happens too when I go the Configure variables  page, but before the previous message I get the following then the previous message after tha I get  to the Language Drop-dwon- menu. and the rest.

What could be the problem now?

Do I have to do the setup again?

Shall I go back and setup Moodle 1.0.8.1 instead of 1.0.9 Beta 1?

 

In reply to Dr. Ali Abureesh

Re: Desperately need help

Martin Dougiamas - ން
ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ
Did you get my private email a couple of days ago about this?
In reply to Martin Dougiamas

Re: Desperately need help

Timothy Takemoto - ން

Sorry to dig up an old thread but, to confirm, when the dirroot settings are specified in config.php in single quotes, then single backlashes are the way to specify Windows directories?

//    $CFG->dirroot = 'C:\FoxServ\www\moodle';    // Windows

Tim