Parsing and Fatal Errors

Parsing and Fatal Errors

by Wilson Cortez Ribeiro -
Number of replies: 7

Hi all
I´ve just installed Moodle 1.4.1 on my  localhost, running easyPHP1.6.

The installation was smooth and without a glitch.

Now on differents situations I have some erros like these:

===============================================================

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE in c:\arquivos de programas\easyphp\www\moodle141\mod\forum\lib.php on line 1194

Fatal error: Call to undefined function: forum_get_course_forum() in c:\arquivos de programas\easyphp\www\moodle141\course\format\weeks\format.php on line 31

================================================================

Please note that those erros don´t seem to drasticaly affect or crash the system. After a simple refresh (F5) on the browser, the site starts to work again in a regular way.

Thanks in advance for any help on this,

Reagrds,
Wilson

Average of ratings: -
In reply to Wilson Cortez Ribeiro

Re: Parsing and Fatal Errors

by Wilson Cortez Ribeiro -

Any clue on that?

Thanks smile

In reply to Wilson Cortez Ribeiro

Re: Parsing and Fatal Errors

by Wilson Cortez Ribeiro -

Sorry fellows.

As I´m a beginner , did I post my problem in the right forum?

Is this question non relevant at all?

Before my post I did a search but seems that there is no answer to problems like this.

PLease give me some advice.

Thanks

In reply to Wilson Cortez Ribeiro

Re: Parsing and Fatal Errors

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
That's a very odd error...

Can you see what the code is on and around the line it identifies?

Also, how did you install it? From CVS or from a zip file? If from a zip file, since you installed it on a windows server, make sure you used the 'zip' file rather than the 'tgz' file (I'm not sure it matters, but it might).

mike
In reply to Mike Churchward

Re: Parsing and Fatal Errors

by Wilson Cortez Ribeiro -

Than you so much for your reply, Mike.

I was almost quiting smile

I´ve downloaded from a zip file for shure

I´ll check if it cames from a "zip" or "tgz".

Do you think that error has anything to do with blank spaces in the code?

Thanks smile

In reply to Wilson Cortez Ribeiro

Re: Parsing and Fatal Errors

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
I think so, yes.

It may also be due to the difference in text files between Unix and Windows machines. That's why I asked about the archives. I don't know for sure, but I'll bet the '.tgz' is Unix text, while the '.zip' is Windows text.

It usually doesn't matter, but you know, ...

Anyway, your problem seems unique. If you haven't gone to far, you may want to reinstall it. Otherwise, if you're uncomfortable checking the code, post the file in question here and I'll have a look.

mike
In reply to Wilson Cortez Ribeiro

Re: Parsing and Fatal Errors

by Marco Solanas -

Hello Wilson, today I have the same problem. I have installed twice moodle from the .zip. But it gives me random errors.

I have Xp Professional with EasyPhp. What about you?

Regards.