Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: katerix on June 30, 2012, 03:17:29 PM

Title: Problem from accidental deletion
Post by: katerix on June 30, 2012, 03:17:29 PM
I uploaded a theme directly through ftp because it was too big, but I had to delete folders because I loaded the theme in theme manager, not the name of the theme directory. Then, by mistake, I deleted the file index.php and default theme. Now that gives me access site: theme_template_error. I uploaded the file index.php and default theme, but the same. I assume that some data were recorded there. How to fix? Note that no backup files to the database do not.
I manage to solve without losing categories and sections, because they are very much to do again.
Title: Re: Problem from accidental deletion
Post by: kat on June 30, 2012, 03:29:17 PM
You did what?!?!?

That's crazy, if you don't mind me saying so...

Even more crazy that you didn't backup, first.

Is this your site?

http://hlebopechka.ru

If it is, I can get in OK.
Title: Re: Problem from accidental deletion
Post by: katerix on June 30, 2012, 03:37:47 PM
no, not it is. If you can not do anything, that's it...
Title: Re: Problem from accidental deletion
Post by: kat on June 30, 2012, 03:38:49 PM
Can you post a link to your site, please?
Title: Re: Problem from accidental deletion
Post by: katerix on June 30, 2012, 03:42:54 PM
http://forumzonal.ro
Title: Re: Problem from accidental deletion
Post by: kat on June 30, 2012, 03:54:04 PM
You uploaded the default theme's files, overwriting everything in the directory named "default", yes?

You got those files from the SMF install archive, yes?

How did you upload the files and what did you use, to do that?
Title: Re: Problem from accidental deletion
Post by: katerix on July 01, 2012, 01:51:15 AM
Filezilla. And I did exactly what you have written.
Title: Re: Problem from accidental deletion
Post by: kat on July 01, 2012, 05:38:56 AM
You had Filezilla's "Transfer type" set to "Binary"?
Title: Re: Problem from accidental deletion
Post by: katerix on July 01, 2012, 06:52:45 AM
No, auto.
Title: Re: Problem from accidental deletion
Post by: kat on July 01, 2012, 08:00:38 AM
That might be your problem, then.

It's a "feature" of Filezilla. Try uploading the files, again, with that set to "binary".
Title: Re: Problem from accidental deletion
Post by: katerix on July 01, 2012, 10:55:28 AM
What permissions must be default folder and index.php?
Title: Re: Problem from accidental deletion
Post by: MrPhil on July 01, 2012, 11:06:37 AM
Please post in English (there is a separate Romanian language support board).

Directories (folders) are always 755, unless SMF complains that it can't write to a specific folder, in which case you try 775 and finally 777. Files are 644, or 664 or even 666 if SMF complains that it can't write to a specific file. Settings.php should be 444 Read-Only, to prevent its accidentally being emptied out. 777 and 666 are "world writable", and should be avoided if at all possible.
Title: Re: Problem from accidental deletion
Post by: katerix on July 01, 2012, 02:16:52 PM
I did everything from 0.
Title: Re: Problem from accidental deletion
Post by: kat on July 02, 2012, 07:21:59 AM
You mean you reinstalled?
Title: Re: Problem from accidental deletion
Post by: katerix on July 02, 2012, 07:53:20 AM
Yes. I did some cleaning to something I did not like. We have now made ​​available by the host backup provider with one click. Both files, and database.
Title: Re: Problem from accidental deletion
Post by: kat on July 02, 2012, 07:57:58 AM
It works and that's what matters. :)

Well done!