News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Broken site

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

Previous topic - Next topic

mashby

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

Uncle Don

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

mashby

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

Uncle Don

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

mashby

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

Uncle Don

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

mashby

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

kat

How do I use FTP? / What is FTP?

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

It's a "Feature". ;)

Uncle Don

How can I get IP address without logging onto site? 
In times like these it is wise to remember that there has always been times like these. - Paul Harvey

kat


Uncle Don

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

kat

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"?

Uncle Don

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

kat

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.

MrPhil

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.

mashby

What gallery mod are you using? I tried to get to your gallery, but guests evidently cannot get there.
Always be a little kinder than necessary.
- James M. Barrie

Uncle Don

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

mashby

In your admin area on the left, is there a Gallery Configuration link under Configuration?
Always be a little kinder than necessary.
- James M. Barrie

Uncle Don

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

xenovanis

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 :)
"Insanity: doing the same thing over and over again and expecting different results."

Advertisement: