Parse Error in Smarty.class.php

Parse Error in Smarty.class.php

از 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

میانگین امتیازات: -
In reply to Fazel Naghdy

Re: Parse Error in Smarty.class.php

از Iñaki Arenaza در
تصویر Core developers تصویر Documentation writers تصویر Particularly helpful Moodlers تصویر Peer reviewers تصویر 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.