Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: Uncle Don on August 18, 2010, 12:17:37 PM

Title: Broken site
Post by: Uncle Don on August 18, 2010, 12:17:37 PM
Recently my hosting site (Aspiration Hosting) moved our files from one server to another.  In the process we lost our theme, photo's and all our icons.  Can anybody tell me how do I restore all of the above?  I imagine I need to copy and paste certain files and folders to the new server, problem is I don't know where my site files would be on this new machine.  Am I correct in saying that?  A little help please.
Title: Re: Broken site
Post by: Kays on August 18, 2010, 12:25:58 PM
Hi, the files should still be in the same locations/folders. It could be just that the paths are different. Try running repair_settings.php. After doing so go into the Theme settings to check and correct the paths there.

What is repair_settings.php? (http://docs.simplemachines.org/index.php?topic=663.0)
Title: Re: Broken site
Post by: kat on August 18, 2010, 01:38:05 PM
Be aware that that won't fix paths to custom themes, though. (I believe)
Title: Re: Broken site
Post by: cicka on August 18, 2010, 01:58:02 PM
Quote from: K@ on August 18, 2010, 01:38:05 PM
Be aware that that won't fix paths to custom themes, though. (I believe)

Yes, you are right. The custom styles should be fixed at the Admin Panel manually.
Title: Re: Broken site
Post by: Kays on August 18, 2010, 09:28:31 PM
I thought that I did mention that. Or wasn't I specific enough. :P

Quote from: Kays on August 18, 2010, 12:25:58 PM
Hi, the files should still be in the same locations/folders. It could be just that the paths are different. Try running repair_settings.php. After doing so go into the Theme settings to check and correct the paths there.

@ Uncle Don. Did this resolve your issue?
Title: Re: Broken site
Post by: Uncle Don on August 21, 2010, 05:52:05 PM
I figured out how to change back to the theme I had.  Went to themes and chose the Web2 and like magic, it was fixed.  My icons returned and the site looks the same.  HOWEVER, my photos are still missing.  The gallery is completely empty.  How do I find the new location of the photos and then set the path?

I see your answer run repair.php however I am a complete novice.  Where is repair.php?  I presume go to file manager in cPanel and click execute file?  I need more detail please.
Title: Re: Broken site
Post by: vbgamer45 on August 21, 2010, 06:02:08 PM
Check this topic on repair settings
http://docs.simplemachines.org/index.php?topic=663.0

Its a tool to fix broken file and url paths.
Title: Re: Broken site
Post by: mashby on August 21, 2010, 06:40:33 PM
I'll assume the gallery images are from a mod. I bet if you went into the configuration area of the gallery in your admin area, there are path/URL fields that need to be adjusted.
Title: Re: Broken site
Post by: Uncle Don on August 21, 2010, 08:50:26 PM
I have uloaded repair_settings.php to the root directory via file manager in cPanel.  How do I execute the program?
Title: Re: Broken site
Post by: Kays on August 21, 2010, 11:26:28 PM
It should be at the root of your site and then access it by url http://mysite.com/forums/repair_settings.php
Title: Re: Broken site
Post by: mashby on August 22, 2010, 12:04:19 AM
Does repair_settings.php have any impact on mods? I somehow doubt it. What mod are you using to run your gallery? There's likely some adjustments that need to happen on whatever gallery mod you are using to fix it all up.
Title: Re: Broken site
Post by: Uncle Don on August 22, 2010, 12:57:25 PM
I am using SMF Gallery Pro ver. 2.5.4 at my site.  I went into gallery config. and found the data directory path is /home2/lewporta/public_html/mgal_data  Don't know if this helps.  Where were the images stored originally?  There would be a directory just for the images correct?  And then an association to link the thumbnail which is also non-existant.

Thanks for your help.
Title: Re: Broken site
Post by: mashby on August 23, 2010, 09:57:57 AM
Go to the Server Settings page (index.php?action=serversettings), look for the SMF Directory field. Copy that and then add mgal_data to the end. That should fix it (I hope).
Title: Re: Broken site
Post by: Uncle Don on August 23, 2010, 11:32:36 AM
Quote from: mashby on August 23, 2010, 09:57:57 AM
Go to the Server Settings page (index.php?action=serversettings), look for the SMF Directory field. Copy that and then add mgal_data to the end. That should fix it (I hope).

LOL  Now I have done it.

Fatal error: require_once() [function.require]: Failed opening required '/home/lewporta/public_html/mgal_data/SSI.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lewporta/public_html/Sources/TPortal.php on line 33
Title: Re: Broken site
Post by: Uncle Don on August 24, 2010, 12:27:25 PM
Site is down.  I took someones advice and changed a line of code and now I am unable to login to site.The previous post shows the error code.  Can anybody help?

Would appreciate it.
Title: Re: Broken site
Post by: mashby on August 24, 2010, 12:43:09 PM
Did you edit code or edit settings? If you edited code, can you undo whatever you did? The suggestion I made was to edit settings. Those settings should have fixed the path to your gallery folder. I'm sure why the issue is with TPortal, but this value I have to assume is from your old settings:
/home2/lewporta/public_html/mgal_data

I would suggest getting in touch with Aspiration Hosting as they might be able to help you out with the new settings.
Title: Re: Broken site
Post by: Uncle Don on August 24, 2010, 07:43:52 PM
Quote from: mashby on August 24, 2010, 12:43:09 PM
Did you edit code or edit settings? If you edited code, can you undo whatever you did? The suggestion I made was to edit settings. Those settings should have fixed the path to your gallery folder. I'm sure why the issue is with TPortal, but this value I have to assume is from your old settings:
/home2/lewporta/public_html/mgal_data

I would suggest getting in touch with Aspiration Hosting as they might be able to help you out with the new settings.

I edit the settings.  I went thru the admin section of my site and found server settings.  I added mgal_data to the end of the line as you recommended and saved.  That is when the error message came up.  That error message comes up every time I try to open the site.

I contacted Aspiration Hosting and they are clueless.  They insist since they moved the files from server 11 to server 31 it was a identical copy and everything remained the same.    I have not heard back from them. 
Title: Re: Broken site
Post by: gbsothere on August 24, 2010, 07:55:30 PM
I actually just went through this, this weekend, moving one of my forums to another location.  It's true, the repair_settings.php only affects what is essentially core SMF, but it doesn't affect mods.  Until I went to admin----> configuration----->  gallery configuration and changed the gallery path and the gallery url to reflect the new location (path example:  var/www/vhosts/mywebsite.com/httpdocs/smf/gallery/ and URL example:  http://mywebsite.com/smf/gallery/) none of the pics would appear.  It soon became apparent that I had to do the same thing for Ultimate Profile and the Arcade.  (The example is unique to my own path and url; your's may be quite different.)

Your server settings were probably fine. 


:)


Note:  Just an FYI, since your site was moved, you want to check ownership and permissions again.  Mine were affected by the move and I had to regain ownership and reset permissions.  (Not urgent, but it could save you headaches in the future.)
Title: Re: Broken site
Post by: Uncle Don on August 24, 2010, 08:40:10 PM
Quote from: gbsothere on August 24, 2010, 07:55:30 PM
I actually just went through this, this weekend, moving one of my forums to another location.  It's true, the repair_settings.php only affects what is essentially core SMF, but it doesn't affect mods.  Until I went to admin----> configuration----->  gallery configuration and changed the gallery path and the gallery url to reflect the new location (path example:  var/www/vhosts/mywebsite.com/httpdocs/smf/gallery/ and URL example:  http://mywebsite.com/smf/gallery/) none of the pics would appear.  It soon became apparent that I had to do the same thing for Ultimate Profile and the Arcade.  (The example is unique to my own path and url; your's may be quite different.)

Your server settings were probably fine. 


:)


Note:  Just an FYI, since your site was moved, you want to check ownership and permissions again.  Mine were affected by the move and I had to regain ownership and reset permissions.  (Not urgent, but it could save you headaches in the future.)

I am sure you are right.  My site came up OK which tells me the server settings were enough to get me there.  However the problems were with the SMF Admin settings which I know very little about.  So I took Mashbys advice and changed the server setting and now I cannot gain access to the site.  How do I repair this?  The error code is posted above.
Title: Re: Broken site
Post by: gbsothere on August 24, 2010, 09:00:40 PM
There should be a file in your forum's root called Settings_bak.php.   If you save that onto your desktop and rename it Settings.php and upload it to your forum's root, you may regain access.  But before you do that, try repair_settings.php, again (just to gain access).  It's attached to this post.  Just place it into your forum's root, then point your browser to it.  For instance, if your forum is located at mywebsite.com/forum, then to run this file, you would put mywebsite.com/forum/repair_settings.php into your browser and hit your return key.  When you have the file showing, look at the difference between your settings, paths and URLs and what is suggested.  If something is different, click the link provided to make changes.  Continue checking and, when you're finished, save your changes, remove the file from your server and try, again, to access your forum.   :)



Just a note, though.... mgal_data sounds like a folder on your server, such as mivadata or conf...   whichi puzzles me.  I'm curious to know where your SMF really lives.   :D  Or is that a media gallery folder (in which case, I'm equally confused about the SSI.php file)?
Title: Re: Broken site
Post by: mashby on August 24, 2010, 09:18:26 PM
I think the confusion is with my lack of details around what should have been done. I would absolutely run that repair_settings again. mgal_data is a folder where SMF is for the gallery (images and stuff). What I was suggesting is that repair_settings won't fix the gallery setting. That should be done manually. I was suggesting using the Server Settings value and pasting that into the settings for your gallery and adding mgal_data to the end (again for the gallery settings, not your server settings). I bet that fixes your gallery. I apologize for the confusion.
Title: Re: Broken site
Post by: Uncle Don on August 25, 2010, 10:33:27 AM
This morning I tried to go thru cPanel to access files.  I got a login failure.  I also got a new error message when trying to login to the site.  this is the message.

atal error: Cannot redeclare ssi_shutdown() (previously declared in /home/lewporta/public_html/mgal_data/SSI.php:199) in /home/lewporta/public_html/SSI.php on line 201


I contacted the host company and they claim they did not make any changes.  However, they did send me this note.

The SMF variable "boarddir" was specified as /home/lewporta/public_html/mgal_data/ . The configuration files were specified relative to this path. But the file like SSI.php were residing in the folder /home/lewporta/public_html so the files were missing the mentioned folder. If you have modified the variable "boarddir" , you need to reset it or copy the files to the correct path.  Can you break this down into layman terms for me.  Please be specific since I am very novice.  Thanks.
Title: Re: Broken site
Post by: mashby on August 25, 2010, 10:37:19 AM
1. Run repair_settings. I think you put mgal_data into the Server Settings field rather than the Gallery Settings field (which should be on a different page).
2. Let us know what is in your gallery settings field (assuming you can get to it after step 1. I have to believe the setting there is wrong, but can be fixed.
Title: Re: Broken site
Post by: Uncle Don on August 25, 2010, 10:42:06 AM
I can't run repair_settings.php thru the URL.  I can't access cPanel which is the access site provided by the hosting company.  I don't know how to get to files to do anything.
Title: Re: Broken site
Post by: mashby on August 25, 2010, 10:51:01 AM
http://www.lewportalumni.com/repair_settings.php

Do you have FTP access to put that file and go to the above? cPanel login failure could be resolved with your host.
Title: Re: Broken site
Post by: Uncle Don on August 25, 2010, 10:58:08 AM
I have always used cPanel for FTP access and don't know of another way.  I contacted the hosting company and they told me to reset my password and clear the cache.  I have done so to no avail.  They sent me the message above.  They really did not help me with FTP access, only gave me instruction of what to do once I am in. 
Title: Re: Broken site
Post by: mashby on August 25, 2010, 11:14:09 AM
cPanel is outside of SMF, so you really need to get that addressed with your hosting company first. As far as FTP goes, you can use programs to use FTP without going to cPanel (CoreFTP, FileZilla come to mind).
Title: Re: Broken site
Post by: kat on August 25, 2010, 11:16:06 AM
How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480.msg5499#msg5499)

If you go for Filezilla, make sure transfers are set to "Binary", NOT "Auto".

It's a "Feature". ;)
Title: Re: Broken site
Post by: Uncle Don on August 25, 2010, 11:21:45 AM
How can I get IP address without logging onto site? 
Title: Re: Broken site
Post by: kat on August 25, 2010, 11:31:39 AM
According to this:

http://www.ip-adress.com/reverse_ip/www.lewportalumni.com

Your site's IP is 173.231.2.194
Title: Re: Broken site
Post by: Uncle Don on August 25, 2010, 11:53:07 AM
GREAT!  Thank you.  I managed to login thru Filezilla, upload the repair_settings.php to the root dir.  Now how do I execute the file?  It won't work by going thru URL.
Title: Re: Broken site
Post by: kat on August 25, 2010, 12:26:15 PM
Is it in the same place as Settings.php? That's where it should be.

If it is, it may be read-disabled.

You can change that with Filezilla.

You DID check that transfers are set to "Binary", NOT "Auto"?
Title: Re: Broken site
Post by: Uncle Don on August 25, 2010, 04:50:53 PM
OK I managed to get onto Filezilla.  Yes Transfer is set to Binary.  I went into Public/html and found settings.php and settings_bak.php    The settings file was slightly larger than the bak file so I renamed it, and then made the bak the new settings.php.  I then opened a new browser and logged onto the site.

Now I am back to where I was trying to fix the problems with my gallery.  There are no photos or icons showing in my gallery.  What needs to be changed within the SMF Forum, admin settings to show the pictures?
Title: Re: Broken site
Post by: kat on August 25, 2010, 04:57:59 PM
Ah... Now that, I don't know, I'm afraid, coz I don't have that mod.

If it doesn't have it's own section, try "Features and options".

You'll possibly need to be using the SMF default theme, though.

You have to make manual edits to custom themes, you see, to get mods to show on them.
Title: Re: Broken site
Post by: MrPhil on August 25, 2010, 05:18:12 PM
Have you run repair_settings.php yet? It may fix your problem. It should be downloaded into the same directory/folder as Settings.php. Look inside it after downloading, to make sure it came down cleanly. It should look much like any other of your PHP files inside (no funny characters, especially at the end of the lines, and lines not run together or double-spaced or anything else). Compare it to Settings.php to see what a file looks like. Then you go to your browser and enter your site name and directory to where SMF lives, followed by /repair_settings.php, and it should run. Make any corrections it suggests.

If repair_settings.php did not appear to come down cleanly (or you get a 500/Internal Server error when running it), try with "Auto" mode. If you cleanly downloaded it to your PC from this site, it should be "clean" on your PC (per above instructions), and you need to upload in ASCII/text mode (Auto should pick that), not binary. If you somehow downloaded it in binary from this site, it will look strange on your PC, and then you need to upload to your site in binary.
Title: Re: Broken site
Post by: mashby on August 25, 2010, 06:09:19 PM
What gallery mod are you using? I tried to get to your gallery, but guests evidently cannot get there.
Title: Re: Broken site
Post by: Uncle Don on August 25, 2010, 11:22:12 PM
SMF Gallery Pro  ver.2.5.4  We have the gallery set to members only.  All the albums are there, however the icons are all broken links.  There is not one picture out of perhaps thousands.  So suspect that the files are in another location and need to be linked back to the albums.  How do I go about doing that?

I have read that repair_settings.php will not do that for me, that I have to do it thru the admin.
Title: Re: Broken site
Post by: mashby on August 25, 2010, 11:43:13 PM
In your admin area on the left, is there a Gallery Configuration link under Configuration?
Title: Re: Broken site
Post by: Uncle Don on August 26, 2010, 01:12:18 PM
Yes.  mgal_data is not in the path or the URL.  Tried to add it to each and got a message that it is not writable.  Also says that my version of the gallery is not up to date.  How do I update?
Title: Re: Broken site
Post by: xenovanis on August 26, 2010, 03:42:55 PM
Quote from: Uncle Don on August 25, 2010, 11:22:12 PM
SMF Gallery Pro  ver.2.5.4  We have the gallery set to members only.  All the albums are there, however the icons are all broken links.  There is not one picture out of perhaps thousands.  So suspect that the files are in another location and need to be linked back to the albums.  How do I go about doing that?

I have read that repair_settings.php will not do that for me, that I have to do it thru the admin.

You'll need to change the path and url in Admin -> Gallery Configuration -> Settings

If you're not sure what the path to your forum is, check this in Admin -> Configuration -> Server Settings -> Database and paths

Copy the path for "SMF Directory" to the Gallery configuration and add /galery after it, so it will look like this
/path/to/smf/gallery/

To upgrade, login to the SMF Hacks website and visit the board " SMF Gallery 3.0 Downloads". You'll find the upgrade attached to the first post.

Hope that helps :)
Title: Re: Broken site
Post by: Uncle Don on August 26, 2010, 08:17:47 PM
Currently the path = /home/lewporta/public_html/gallery/

Currently the URL = http://www.lewportalumni.com/gallery/

Getting to the gallery is not the issue.  It executes OK, however there are no picture files associate with the gallery.

I went to do the upgrade and they indicated I was due to renew my license which I did.  Now they want the license #which is to be sent to me via email.  So far, there is no email.  Looks like I have to wait for them to send me the updated license No.
Title: Re: Broken site
Post by: Uncle Don on August 27, 2010, 11:16:52 AM
I feel like a fish out of water.

So I can't get anyone at SMF Hacks to ask about my license after recently renewing for SMF Gallery Pro.  I cannot continue with the upgrade, (was thinking that may correct my problem) until I hear from SMF Hacks.  Any ideas?

Any ideas how to link my gallery to my data (jpegs) files?  The gallery is there but does not link to the files.  Every photo has a red X
Title: Re: Broken site
Post by: xenovanis on August 27, 2010, 03:14:59 PM
I'm sorry, I can't help you with the SMF Hacks issue. I'm sure they'll get back to you.

Can you provide me with a temorary admin account for your forum? Please read this first
http://www.simplemachines.org/community/index.php?topic=228940.0