FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Optimize Theme fail in 2.6.6
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Optimize Theme fail in 2.6.6 [message #19849] Mon, 13 September 2004 08:36 Go to next message
rhinofly is currently offline  rhinofly   China
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 ?
Re: Optimize Theme fail in 2.6.6 [message #19879 is a reply to message #19849] Wed, 15 September 2004 05:16 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Your patch is correct, I've applied it to the FUDforum CVS.

FUDforum Core Developer
Re: Optimize Theme fail in 2.6.6 [message #19893 is a reply to message #19849] Wed, 15 September 2004 07:22 Go to previous message
rhinofly is currently offline  rhinofly   China
Messages: 15
Registered: August 2004
Karma: 0
Junior Member
Thanks.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Unreadable forums cannot be collapsed by anonymous
Next Topic: Problem "solved" - nevermind & delete this thread :D
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 01 04:41:27 GMT 2024

Total time taken to generate the page: 0.03986 seconds