Parse Error in Smarty.class.php

Parse Error in Smarty.class.php

by Fazel Naghdy -
Number of replies: 1

We have been running moodle  for about a year with no problem. Today, when I called moodle I received the following error:

Parse error: parse error in /xx/www/xx/moodle/lib/smarty/Smarty.class.php on line 1313

Fatal error: Cannot instantiate non-existent class: smarty in /xx/www/xx/moodle/lib/setup.php on line 105

There has been no changes to Moodle or operating system according to the system administrator. Can somebody please help as the work of our campus is halted and I cannot undertand what is wrong?

Fazel

Average of ratings: -
In reply to Fazel Naghdy

Re: Parse Error in Smarty.class.php

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
There is a syntax error around line 1313 of the file /xx/www/xx/moodle/lib/smarty/Smarty.class.php. If no one has changed it, then it somehow has become corrupt. Putting a fresh copy of that file in place should fix it.

Saludos. Iñaki.