News:

Wondering if this will always be free?  See why free is better.

Main Menu

Broken site

Started by Uncle Don, August 18, 2010, 12:17:37 PM

Previous topic - Next topic

Uncle Don

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.
In times like these it is wise to remember that there has always been times like these. - Paul Harvey

Kays

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?

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

kat

Be aware that that won't fix paths to custom themes, though. (I believe)

cicka

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.

Kays

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?

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Uncle Don

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.
In times like these it is wise to remember that there has always been times like these. - Paul Harvey

vbgamer45

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.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

mashby

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.
Always be a little kinder than necessary.
- James M. Barrie

Uncle Don

I have uloaded repair_settings.php to the root directory via file manager in cPanel.  How do I execute the program?
In times like these it is wise to remember that there has always been times like these. - Paul Harvey

Kays

It should be at the root of your site and then access it by url http://mysite.com/forums/repair_settings.php

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

mashby

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.
Always be a little kinder than necessary.
- James M. Barrie

Uncle Don

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.
In times like these it is wise to remember that there has always been times like these. - Paul Harvey

mashby

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).
Always be a little kinder than necessary.
- James M. Barrie

Uncle Don

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
In times like these it is wise to remember that there has always been times like these. - Paul Harvey

Uncle Don

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.
In times like these it is wise to remember that there has always been times like these. - Paul Harvey

mashby

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.
Always be a little kinder than necessary.
- James M. Barrie

Uncle Don

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. 
In times like these it is wise to remember that there has always been times like these. - Paul Harvey

gbsothere

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.)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

Uncle Don

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.
In times like these it is wise to remember that there has always been times like these. - Paul Harvey

gbsothere

#19
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)?
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

Advertisement: