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

Home » FUDforum Development » Bug Reports » adding theme killed site - deleted theme directories!!
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
adding theme killed site - deleted theme directories!! [message #27049] Thu, 25 August 2005 11:43 Go to next message
langer is currently offline  langer   Australia
Messages: 19
Registered: August 2005
Location: Sydney, Australia
Karma: 0
Junior Member
This is weird...

I updated some admin side configs, such as using clean urls. After doing this, I realised that I needed to create a new template set as instructed for clean urls, using the path_info set..

So I went to create a new set, checked enable, and forgot to put in a name. So, I deleted this new template set, which did not appear to cause any problems. However, when I went to create another template set, it wiped my site out!!

This is what it now shows:
Warning: fud_use(/home/username/fudforum-data/include/theme/por1/err.inc): failed to open stream: No such file or directory in /home/username/fudforum-data/include/core.inc on line 70

Warning: fud_use(): Failed opening '/home/username/fudforum-data/include/theme/por1/err.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/username/fudforum-data/include/core.inc on line 70

Warning: main(/home/username/public_html/forums/theme/por1/index.php): failed to open stream: No such file or directory in /home/username/public_html/forums/index.php on line 1197

Warning: main(/home/username/public_html/forums/theme/por1/index.php): failed to open stream: No such file or directory in /home/username/public_html/forums/index.php on line 1197

Fatal error: main(): Failed opening required '/home/username/public_html/forums/theme/por1/index.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/username/public_html/forums/index.php on line 1197


I checked, and sure enough the following were COMPLETELY MISSING!!!

Directory (/theme/) and theme directories/files all deleted:
/home/username/fudforum-data/include/theme/

All contents (themes) deleted from:
/home/username/public_html/forums/theme/

Could it be that deleting a theme with no name deleted all of my themes?!?!?

I managed to restore it from backups, but what a ride!
Re: adding theme killed site - deleted theme directories!! [message #27055 is a reply to message #27049] Thu, 25 August 2005 13:40 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
Yeah, deleting a theme without a name results in the exact type of an error you've described. I've patched the relavent file to:
1) Prevent creation of nameless themes
2) If such theme already exists, do not try to remove any files on disk for it.

http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=7256


FUDforum Core Developer
icon14.gif  Re: adding theme killed site - deleted theme directories!! [message #27059 is a reply to message #27055] Thu, 25 August 2005 13:51 Go to previous messageGo to next message
langer is currently offline  langer   Australia
Messages: 19
Registered: August 2005
Location: Sydney, Australia
Karma: 0
Junior Member
wow! That was quick!!

Thanks!

PS How long before this fix will appear in a stable download?

[Updated on: Thu, 25 August 2005 13:59]

Report message to a moderator

Re: adding theme killed site - deleted theme directories!! [message #27073 is a reply to message #27059] Thu, 25 August 2005 15:36 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Probably Monday.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Private messages
Next Topic: More troubles - splitting topic
Goto Forum:
  

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

Current Time: Wed Nov 27 21:15:43 GMT 2024

Total time taken to generate the page: 0.07778 seconds