Author Topic: Find and repair errors  (Read 2360 times)

0 Members and 1 Guest are viewing this topic.

Offline sheryltoo

  • Sr. Member
  • *
  • Posts: 271
  • Karma: 42
  • Gender: Female
    • Sheryl's Page
  • SMF Version: smf 2.0 RC1
Find and repair errors
« on: January 08, 2009, 06:31:12 PM »
I see a link for this in my administration panel and I was wondering if I should click this every now and then?
Will it fix an errors you might have gotten when you installed a mod?
Sheryl

Offline bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13217
  • Karma: 269
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: Find and repair errors
« Reply #1 on: January 08, 2009, 06:33:14 PM »
It is good to do regular maintenance yes. If it does find anything wrong it will try to fix it. Welcome to the site btw. :)

Offline Smoky

  • who, me?
  • Guru
  • *
  • Posts: 3980
  • Karma: 1450
  • Gender: Female
  • It's all in your HEAD!
    • HangOutSpot
  • SMF Version: 2.0 ??
Re: Find and repair errors
« Reply #2 on: January 08, 2009, 06:44:27 PM »
lol ditto sheryltoo.. welcome to smfh!! ;)

BigGuy beat me to it..  :dnc :vic
Oh wow, guess who dropped by! Im still on secondlife.. but will respond to im's *waves

Offline sheryltoo

  • Sr. Member
  • *
  • Posts: 271
  • Karma: 42
  • Gender: Female
    • Sheryl's Page
  • SMF Version: smf 2.0 RC1
Re: Find and repair errors
« Reply #3 on: January 08, 2009, 08:01:21 PM »
Thanks for the welcome. I actually joined awhile back but I guess I never asked any questions.
I've had a message board on SMF for over a year but never really did much to it until recently.
A lot of this is very confusing for me but I expect my board might get busy now that I'm actually using it and I want to be sure everything runs smoothly.
It's nice to know there's a site that can answer some questions for me and help me out.
I think I'll go run that tool now, after I back up my site.
All these things I never thought much about doing.
Sheryl

Offline bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13217
  • Karma: 269
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: Find and repair errors
« Reply #4 on: January 08, 2009, 09:13:36 PM »
Play around a bit it won't break. Always backup your site either from the admin panel or from cpanel if your host has that. Its very important to keep a regular backup. I do this sites every night, sometimes twice a day if I am playin with it. :)

Offline sheryltoo

  • Sr. Member
  • *
  • Posts: 271
  • Karma: 42
  • Gender: Female
    • Sheryl's Page
  • SMF Version: smf 2.0 RC1
Re: Find and repair errors
« Reply #5 on: January 08, 2009, 10:24:41 PM »
When I got my first computer, the computer store owner said the same thing to me about using the computer.
About a week or two after I bought the computer, I called the store and told him everything was disappearing from my computer screen. He said to turn the computer right off and bring it to the store.
It turns out I had the Michael Angelo virus and it was eating up my entire maybe 16 MB hard drive, lol.
Or was it KBs back then?
It's hard to believe just how much you could do with those 286 computers, lol, assuming you've been using computers as long as me, if not longer.
I have learned a lot from trial and error but when I only mess up my own computer, I'm not too concerned. I don't want to mess up my site and have people not be able to get to it so I might be a little more cautious when making changes.
And php is Greek to me. I've come a long way with HTML and still learning. I've also been trying to learn css but that's a little confusing.
I bought a book on php but it's way over my head.
It's so nice of people like you who'll post the exact codes we need to find or change when we're trying to fix something or make changes.
I would never know where to look.
Thanks for your help.
BTW, I backed up my database and will try to do it on a regular bases.
Sheryl

Offline bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13217
  • Karma: 269
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: Find and repair errors
« Reply #6 on: January 08, 2009, 10:55:53 PM »
I remember 286 computers. My first one was a ibm 286 with windows 3.1 on it, lol. Since then I have used every single operating system out for windows and some that aren't out, lol. I have been building my own and fixing computers now for 10 years or more. I almost had a business open for computers but decided to go another way. So yeah I know all about trial and error, lol. I still play with computers but now I am trying my hand at webpages and stuff. I have been doing this now for about 3 years I think or maybe a bit under that. Glad to see you backed it up. Try to make it regular.

Offline sheryltoo

  • Sr. Member
  • *
  • Posts: 271
  • Karma: 42
  • Gender: Female
    • Sheryl's Page
  • SMF Version: smf 2.0 RC1
Re: Find and repair errors
« Reply #7 on: January 08, 2009, 11:44:44 PM »
I think I've been playing with computers around 10 years too. My first computer had one of the first CD roms sold at the computer store we bought it at. It was 1 speed and pretty slow.
I have had a ton of computers since then, some real lemons but the good thing about lemons is, it made me learn how to fix a lot of the problems.
I don't really understand the programming part of computers but I know how to format and reload windows. Every time something went wrong with one of my computers, I'd wipe it out and reload it. It was a lot cheaper then taking it to the shop.
I even learned how to install a DVD drive and a hard drive but that was by just replacing what was already in a computer with the new drives.
I'm not really afraid to try things on my computer and I love to learn all I can about using a computer or anything I do in regards to a computer so I'm really trying hard to understand all the coding needed to make SMF work.
I've been able to apply some of my html knowledge into figuring out what some of the php codes mean but I don't know what echo means or what the $ sign means and I see them a lot in the coding.
Maybe if I play around with this stuff enough, I'll learn something.
Sheryl

Offline tyty1234

  • V.I.P.
  • *
  • Posts: 823
  • Karma: 1109
  • Gender: Male
    • tytyweb
  • SMF Version: 2.0.2
Re: Find and repair errors
« Reply #8 on: January 09, 2009, 12:33:41 AM »
The $ sign represents a variable, and echo basically means what it says. It echoes what you want it to say. For example:

Example of echo.
:
echo "Hello World!";

This will simply read "Hello World!" on your web browser. You always need a (single/double) quote to echo something. You can also echo HTML.

:
echo "<p>This is a paragraph</p>";

More on echo can be found at http://www.php.net.

Example of $ sign:
:
$hello = "Hello World";

This just basically assigns "Hello World!" to the variable $hello. You can do loads of things with variables, but for beginners, you can also echo variables.

:
$hello = "Hello World!";
echo $hello;

When echoing variables however, you do not need the quotes, and this will just simply read "Hello World!" on your web browser. This is the same idea as the example above.

Play around with variables. They're fun. See what you can discover.  :dnc :vic

Offline sheryltoo

  • Sr. Member
  • *
  • Posts: 271
  • Karma: 42
  • Gender: Female
    • Sheryl's Page
  • SMF Version: smf 2.0 RC1
Re: Find and repair errors
« Reply #9 on: January 09, 2009, 09:29:00 AM »
Thanks for the mini tutorial. So if I'm understanding this correctly, the $ works the same way as assigning rules like in css?
I bought a book that says it teaches you PHP, My SQL, and Apache  in 24 hours a couple months ago when I thought I'd be trying to get my message board on SMF running and I never got further then the first section that gives you the basics for php because it didn't make sense and I wasn't sure how to test out what it was telling me to do.
The book came with software but I didn't understand how to install it and set it up, plus I wasn't sure I needed it since it's all on my host site.
Could I have just downloaded a .php file to my host and opened it in a web browswer like I do with .html files?
 
Anyway, I just opened that book this morning and now after making some changes in codes, because of some help I got here and at other smf help sites, things are starting to click.
I'll have to try experimenting and reading further in my book.
 
And maybe you could answer one other question for me. Why use php and not html and CSS? It seems as if there's a lot more coding involved in php. I use to think html was so hard but it's a piece of cake compared to php, lol.
Perhaps it's because I really don't understand it.
I'm going to go click that link you posted and see if I can learn some more.
Sheryl

Offline sheryltoo

  • Sr. Member
  • *
  • Posts: 271
  • Karma: 42
  • Gender: Female
    • Sheryl's Page
  • SMF Version: smf 2.0 RC1
Re: Find and repair errors
« Reply #10 on: January 09, 2009, 09:32:08 AM »
I just wanted to get back to you quick and say I see some of my questions have been answered at that link.
I'm going to try doing their tutorial and play around a bit.
That's a great site. Thanks so much for leading me there.
Sheryl

Offline sheryltoo

  • Sr. Member
  • *
  • Posts: 271
  • Karma: 42
  • Gender: Female
    • Sheryl's Page
  • SMF Version: smf 2.0 RC1
Re: Find and repair errors
« Reply #11 on: February 09, 2009, 09:46:18 PM »
Speaking of errors, I'm getting this error when people try and upload certain avatars to my site:
 
The attachments upload directory is not writable. Your attachment or avatar cannot be saved
 
What exactly does that mean? I went looking through the various settings for attachments and avatars and see there are several uploaded at my site by different people so I don't know why so are ok and some aren't.
Would it have anything to do with the size of the avatar?
And if I understand what I was looking at correctly, it appears there's a space limit as to how many kbs can be uploaded to my site.
Does this mean if too may people decide to upload an avatar from their computer to my site, some won't be able to because I've exceeded my space limit?
Right now I'm no where near being close but perhaps I should suggest people store their avatars some place else?
Sheryl

Offline ccbtimewiz

  • Dreamer
  • Guru
  • *
  • Posts: 1304
  • Karma: 2100
  • Gender: Male
  • $info->close();
    • Dream Portal
  • SMF Version: SMF 2.0 RC4
Re: Find and repair errors
« Reply #12 on: February 09, 2009, 09:58:44 PM »
Generally that error occurs when SMF cannot write the attachments directory. This is often due to permission malfunctions with your server itself.

The solution is to CHMOD the directories to proper intervals (such as 0777 or 0655). You can often do this through your FTP client.

Offline sheryltoo

  • Sr. Member
  • *
  • Posts: 271
  • Karma: 42
  • Gender: Female
    • Sheryl's Page
  • SMF Version: smf 2.0 RC1
Re: Find and repair errors
« Reply #13 on: February 09, 2009, 10:34:18 PM »
After I asked this question I went searching the smf site to see if anyone had this problem and it seems some have had this problem however they were told to set the permission to 755, which is what my avatars are set at.
I never changed that permission and people have uploaded avatars to my site so why would it stop working?
Sheryl

Offline bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13217
  • Karma: 269
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: Find and repair errors
« Reply #14 on: February 11, 2009, 09:05:13 PM »
Some hosts have their servers set differently. Some servers will ask for 777 for all files and folders. While this in itself is NOT a security risk alot of hosts will go to 755 permissions instead which means basically that the public has less permissions to do things than any other group. No matter what the permissions are if a server is not secured properly by the host then a hacker will get in.

Offline sheryltoo

  • Sr. Member
  • *
  • Posts: 271
  • Karma: 42
  • Gender: Female
    • Sheryl's Page
  • SMF Version: smf 2.0 RC1
Re: Find and repair errors
« Reply #15 on: February 11, 2009, 10:50:21 PM »
I ended up asking my host for some help since some of the messages I found pertaining to this issue said it was a host problem. They didn't say anything about it being their problem but they did say I probably had to change the permission to 777 so I did and it seems to be working.
I have a non administration account on my site so I can check things as a regular member and I was able to upload an avatar, however it leads me to more confusion only this time it has to do with what the image looks like when you upload it from your computer.

I ran into a problem at Smokey's site with an avatar getting all squished when I added it from a photobucket account.
The same thing happens at my site yet an image looks perfect if I upload the exact same image  to the site from my computer.
Apparently the upload feature re sizes the image and keeps it proportioned correctly but adding it from photobucket doesn't.
Any ideas why?
Sheryl

Offline ccbtimewiz

  • Dreamer
  • Guru
  • *
  • Posts: 1304
  • Karma: 2100
  • Gender: Male
  • $info->close();
    • Dream Portal
  • SMF Version: SMF 2.0 RC4
Re: Find and repair errors
« Reply #16 on: February 12, 2009, 08:33:21 AM »
Ahhhh.....

Admin > Attachments and Avatars > Avatar Settings

Configure those setting properly.

Offline sheryltoo

  • Sr. Member
  • *
  • Posts: 271
  • Karma: 42
  • Gender: Female
    • Sheryl's Page
  • SMF Version: smf 2.0 RC1
Re: Find and repair errors
« Reply #17 on: February 12, 2009, 09:58:51 AM »
I believe they were configured properly since it was working up until a week or so ago and I never made any changes there. In fact, once I found out there was a problem and I went looking for some help as to how to fix this, I looked at the settings and wondered what would happen if I tried making some changes only I didn't really understand all the options so I figured I just better leave everything alone.
Now that I've changed the permission to 777, it's working and I still didn't do anything to the admin>.attachments and avatars settings.

One of the options was to have the attachments and avatars saved to a file off of my host site. What kind of a site are they talking about? Could I link it to a photobucket account? Would they need a password in order to upload something?
I'm not sure I really like the idea of people uploading files to a file at my host site since I don't want to use up all my space and I'm worried about bandwidth stealing.
No matter how many times you tell people not to copy and paste pictures, they still do it.
Sheryl

Offline Smoky

  • who, me?
  • Guru
  • *
  • Posts: 3980
  • Karma: 1450
  • Gender: Female
  • It's all in your HEAD!
    • HangOutSpot
  • SMF Version: 2.0 ??
Re: Find and repair errors
« Reply #18 on: February 12, 2009, 01:18:14 PM »
Sheryl, its ok for them to upload a avatar, its not taking up that much room. as far as linking to photobucket etc., its your site and you can make the rules.. the avatars, you can specify what folder they go in.. (they dont end up in a file ;)  ) and normally they go into the attachements folder.. most people are used to being able to upload their avatar to the site or linking it to a place off site so either way will work

as far as you worrying about image thieft, there are a few mods out there that can stop that.. just search on the smf site for images and it might pull it up.. the one im thinnking on is:

http://www.tinyportal.net/index.php/topic,8937.0.html

and its just a snippet for if you have a portal..  :vic
Oh wow, guess who dropped by! Im still on secondlife.. but will respond to im's *waves

Offline sheryltoo

  • Sr. Member
  • *
  • Posts: 271
  • Karma: 42
  • Gender: Female
    • Sheryl's Page
  • SMF Version: smf 2.0 RC1
Re: Find and repair errors
« Reply #19 on: February 12, 2009, 02:17:36 PM »
Thanks Smokey. I'll look into that. I think I may have come across something that helps prevent theft only if I remember correctly, it may also have taken away the ability to do any right clicking and I really don't want to do that.
Sometimes I like to check the properties on pictures that get uploaded just to be sure they haven't been copied from someone's site. If you can't right click, you can't do that, but I'll look at that link you posted and check it out.
I think I'll also look into using photobucket for storage.
I store pictures there but I've never checked in to sharing certain files with people.
I did set up a photobucket account for pictures that pertain only to my site and allow the members to see it. They can't add any pictures to it unless they sign up for an account, and then I don't think the pictures would go to that site. Of course I could be wrong.
I guess I better check into some photobucket settings, lol.
Sheryl