Hi,
when I am trying to export questions in QTI 2.0 format, I get following errors:
Warning:
_compile_resource(c:\programme\easyphp\www\moodle\lib\smarty\internals\core.write_compiled_resource.php):
failed to open stream: No such file or directory in c:\programme\easyphp\www\moodle\lib\smarty\Smarty.class.php on line 1425
Fatal error: _compile_resource(): Failed opening required
'c:\programme\easyphp\www\moodle\lib\smarty\internals\core.write_compiled_resource.php'
(include_path='.;C:\Programme\EasyPHP\php\pear\') in c:\programme\easyphp\www\moodle\lib\smarty\Smarty.class.php on line 1425
I try to export them over the normal quiz interface.
I am using moodle 1.5 and as underlying apache/my sql db those contained in EasyPHP 1.7.
Thanks a lot for any answers
Best regards,
Patrick Schmidt
hi patrick,
in the directory structure for moodle 1.4 as well as 1.5, I see the file under
lib\smarty\core\, not under lib\smarty\internals\
I would suspect that your problem would be solved by either 1) or 2) below.
1) changing, in Smarty.class.php,
if (!defined('SMARTY_CORE_DIR')) {
define('SMARTY_CORE_DIR', SMARTY_DIR . 'internals' . DIRECTORY_SEPARATOR);
}
to
if (!defined('SMARTY_CORE_DIR')) {
define('SMARTY_CORE_DIR', SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR);
}
2) renaming the directory core to internals.
I haven't tried out the official 1.5 release yet, and am not running moodle under windows, so I haven't run into this problem.
Please let me know if this doesn't solve your problem, and provide more information - e.g. a listing of the directory structure under lib\smarty with all files and their permissions.
Regards,
Brian
in the directory structure for moodle 1.4 as well as 1.5, I see the file under
lib\smarty\core\, not under lib\smarty\internals\
I would suspect that your problem would be solved by either 1) or 2) below.
1) changing, in Smarty.class.php,
if (!defined('SMARTY_CORE_DIR')) {
define('SMARTY_CORE_DIR', SMARTY_DIR . 'internals' . DIRECTORY_SEPARATOR);
}
to
if (!defined('SMARTY_CORE_DIR')) {
define('SMARTY_CORE_DIR', SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR);
}
2) renaming the directory core to internals.
I haven't tried out the official 1.5 release yet, and am not running moodle under windows, so I haven't run into this problem.
Please let me know if this doesn't solve your problem, and provide more information - e.g. a listing of the directory structure under lib\smarty with all files and their permissions.
Regards,
Brian
hi brian,
thank you for your answer.
i changed
if (!defined('SMARTY_CORE_DIR')) {
define('SMARTY_CORE_DIR', SMARTY_DIR . 'internals' . DIRECTORY_SEPARATOR);
}
to
if (!defined('SMARTY_CORE_DIR')) {
define('SMARTY_CORE_DIR', SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR);
}
and now it works fine.
best regards,
patrick schmidt
thank you for your answer.
i changed
if (!defined('SMARTY_CORE_DIR')) {
define('SMARTY_CORE_DIR', SMARTY_DIR . 'internals' . DIRECTORY_SEPARATOR);
}
to
if (!defined('SMARTY_CORE_DIR')) {
define('SMARTY_CORE_DIR', SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR);
}
and now it works fine.
best regards,
patrick schmidt
It works for me, but it does indeed seem that these paths don't match up. I'll fix it in cvs.