Optimize Theme fail in 2.6.6 [message #19849] |
Mon, 13 September 2004 08:36 |
rhinofly
Messages: 15 Registered: August 2004
Karma: 0
|
Junior Member |
|
|
Hi,
I have searched the bug report and found this: Optimize theme
http://fudforum.org/forum/index.php?t=msg&goto=15851&#msg_15851
I think I should say more about it.
I just installed New 2.6.6 forum,and goto Admin Control Panel -> Template Management -> Theme Manager -> Optimize Theme,now ,something show:
Warning: opendir(): Unable to access /data/virtual/forums.oss4e.org/public_html/include/theme/english_pi in /data/virtual/forums.oss4e.org/public_html/adm/admthemes.php on line 180
Warning: opendir(/data/virtual/forums.oss4e.org/public_html/include/theme/english_pi): failed to open dir: No such file or directory in /data/virtual/forums.oss4e.org/public_html/adm/admthemes.php on line 180
Warning: readdir(): supplied argument is not a valid Directory resource in /data/virtual/forums.oss4e.org/public_html/adm/admthemes.php on line 182
Warning: readdir(): supplied argument is not a valid Directory resource in /data/virtual/forums.oss4e.org/public_html/adm/admthemes.php on line 182
Warning: readdir(): supplied argument is not a valid Directory resource in /data/virtual/forums.oss4e.org/public_html/adm/admthemes.php on line 183
Warning: closedir(): supplied argument is not a valid Directory resource in /data/virtual/forums.oss4e.org/public_html/adm/admthemes.php on line 188
what is line 180?
/* optimize *.inc files */
$path = $WWW_ROOT_DISK . 'include/theme/' . $t_name;
$dir = opendir($path);
So,I change the codes to:
/* optimize *.inc files */
//change by rhinofly
//$path = $WWW_ROOT_DISK . 'include/theme/' . $t_name;
$path = $DATA_DIR . 'include/theme/' . $t_name;
$dir = opendir($path);
Ok,It's work.It this change right ?
|
|
|
|
|