marxjohnson/moodle-block_course_appointments — Issue #1: Error when accessing /admin/index.php if smslib is not present
Author: marxjohnson
Created: 2012-01-24 11:34:05+00:00
State: open

If smslib files are not present, trying to run an upgrade results in an error as described below:

On Wed, 2012-01-18 at 16:57 +0100, Tatjana Lekic wrote:
> >
> > I've been trying to install course_appointments into my Moodle 2.2.
> > website, but after having installed it I cannot upgrade
> > admin/index.php. It says error. I've tried a couple of times on both
> > Moodle 2.2. and Moodle 2.0. and the same thing happens. I've installed
> > plugin 'accessibility' without any problems.

On Mon, 2012-01-23 at 17:56 +0100, Tatjana Lekic wrote:
Dear Mark,
> This is what the script says:
>
>
> Warning:
> include_once(/home/users/legis/e-engleski.hr/blocks/moodle_notifications/lib
> //SMS.php): failed to open stream: No such file or directory in
> /home/users/legis/e-engleski.hr/blocks/moodle_notifications/settings.php on
> line 4 Warning: include_once(): Failed opening
> '/home/users/legis/e-engleski.hr/blocks/moodle_notifications/lib//SMS.php'
> for inclusion
> (include_path='/home/users/legis/e-engleski.hr/lib/zend:/home/users/legis/e-
> engleski.hr/lib/pear:.:/usr/share/php:/usr/share/pear') in
> /home/users/legis/e-engleski.hr/blocks/moodle_notifications/settings.php on
> line 4

The solution is probably just a simple case of checking that SMS.lib exists before attempting inclusion.