Community Forums

ATutor Support

Failed opening... theme.cfg.php


You must be signed-in to post.

AuthorSubject
 
Page: 1
skappes

Avatar for skappes
hpctrain_php_info.pdf
Subject: Failed opening... theme.cfg.phpQuote this post in your reply
I am getting the error below when I am logged in as an admin. I can login and do some functions such as setting the default theme and viewing a course. An example of where it breaks is when I view a course and then click Return to Admin Area. (It all seems to work fine when logged in as a student.)

Warning: require(../include/../themes//theme.cfg.php) [function.require]: failed to open stream: No such file or directory in /home1/hpctrain/public_html/ATutor/include/vitals.inc.php on line 263

Fatal error: require() [function.require]: Failed opening required '../include/../themes//theme.cfg.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home1/hpctrain/public_html/ATutor/include/vitals.inc.php on line 263

I've seen that others have had this error. My themes directory has permissions 755 and I have done a fresh install.


* Statistics & Information
Database: 26.70 MB
Disk Usage: 55.32 MB
Courses: 34
Users: 8575
ATutor Version: 1.6.4.
PHP Version: 5.2.11
MySQL Version: 5.1.45-log
OS: Linux 2.6.28-10.21.intel.E1000E.BHsmp
Patches: All installed

* php_info is attached

* Theme: default15 (also tried default)

I don't know if this is relevant but I set AT_DEVEL to 1 in vitals.php and get this output when I view the course:

Array
(
[lang] => en
[token] => e13b290874855a620677a607aed8ac66bedc4e2a
[session_test] => 1
[message] => Array
(
)

[is_guest] => 0
[last_updated] => 21160629.6
[enroll] => 1
[s_cid] => 0
[privileges] => 0
[packaging] => top
[groups] => Array
(
)

[course_title] => AG00:Overview for Decision Makers
[menu] => Array
(
[2967] => 1
[2455] => 1
[1943] => 1
[0] => 1
[2717] => 1
[1294] => 1
[1941] => 1
)

[cid_time] => 0
[last_visited_page] => www.hpc-training.org/ATutor/content.php?cid=1941
[flash] => yes
[login] => training
[valid_user] => 1
[course_id] => 31
[member_id] => 11
[prefs] => Array
(
[PREF_NUMBERING] => 1
[PREF_THEME] => default
[PREF_TIMEZONE] =>
[PREF_JUMP_REDIRECT] => 1
[PREF_FORM_FOCUS] => 1
[PREF_CONTENT_EDITOR] => 0
[PREF_SHOW_GUIDE] => 1
[PREF_FONT_FACE] =>
[PREF_FONT_TIMES] =>
[PREF_FG_COLOUR] =>
[PREF_BG_COLOUR] =>
[PREF_HL_COLOUR] =>
[PREF_USE_ALTERNATIVE_TO_TEXT] => 0
[PREF_ALT_TO_TEXT] =>
[PREF_ALT_TO_TEXT_APPEND_OR_REPLACE] =>
[PREF_ALT_TEXT_PREFER_LANG] =>
[PREF_USE_ALTERNATIVE_TO_AUDIO] => 0
[PREF_ALT_TO_AUDIO] =>
[PREF_ALT_TO_AUDIO_APPEND_OR_REPLACE] =>
[PREF_ALT_AUDIO_PREFER_LANG] =>
[PREF_USE_ALTERNATIVE_TO_VISUAL] => 0
[PREF_ALT_TO_VISUAL] =>
[PREF_ALT_TO_VISUAL_APPEND_OR_REPLACE] =>
[PREF_ALT_VISUAL_PREFER_LANG] =>
[PREF_DICTIONARY] => 0
[PREF_THESAURUS] => 0
[PREF_NOTE_TAKING] => 0
[PREF_CALCULATOR] => 0
[PREF_ABACUS] => 0
[PREF_ATLAS] => 0
[PREF_ENCYCLOPEDIA] => 0
[PREF_SHOW_CONTENTS] => 0
[PREF_SHOW_NEXT_PREVIOUS_BUTTONS] => 1
[PREF_SHOW_BREAD_CRUMBS] => 1
)

[is_super_admin] => bmather007
[is_admin] => 1
)
Posted: 2010-03-26 18:28:13
greg

Avatar for greg
Subject: Re: Failed opening... theme.cfg.phpQuote this post in your reply
It seems the theme directory name is not being output. Not sure why this would be happening on a fresh install, unless the installation was incomplete, or perhaps tyhe installation was done on ATutor source code that was uploaded file by file (which often leads to broken installations)

Examine the themes table in the database and see if anything seems unusual. Or post a dump of the table and we'll take a look.
Posted: 2010-03-29 10:56:16
pmink
Subject: Re: Failed opening... theme.cfg.phpQuote this post in your reply
I have had this exact problem when upgrading from 1.6.1 to 1.6.4. For our site it appeared to be caused by clicking on the Default Preferences and saving. I can now reproduce this problem (and its solution) on our installation by the following steps:

1. Log in an go to the System Preferences page. Set Theme Specific Categories to Enabled and Save.
2. Go to the Default Preferences page where you will see the message "The personal theme preference has been disabled in favour of theme specific categories."
3. Change nothing on the form but click Apply. You will now see the broken page (no theme defined).
4. Close browser, reopen and ctl-f5 to clear cache.
5. Log back in, go to the Default Preferences page to confirm it is still broken.
6. Close browser and reopen, ctl-f5 to clear cache.
7. Log back in then go to the System Preferences page and set Theme Specific Categories to Disabled and click Save.
8. Go to the Themes page and change the current theme default to anything else, save and then change back to your desired default theme.
9. Go to the Default Preferences page and click Apply. Everything now works.
Posted: 2010-05-17 09:53:17
pmink
Subject: Re: Failed opening... theme.cfg.phpQuote this post in your reply
BTW - I have confirmed that these steps are reproducable on the official demo site linked to from www.atutor.ca/atutor/demo.php
Posted: 2010-05-17 10:09:05
cindy

Avatar for cindy
Subject: Re: Failed opening... theme.cfg.phpQuote this post in your reply
Thanks for the report.

This bug has been confirmed. Patch #11 is published for the fix. Please install via admin page "Patcher".
Posted: 2010-05-18 15:35:24
 
Page: 1

You must be signed-in to post.

Related Articles