Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: JollyGuru on April 22, 2015, 09:30:41 AM

Title: Admin>Configuration>FeaturesAndOptions>General = 404 Error File Not Found!
Post by: JollyGuru on April 22, 2015, 09:30:41 AM
When I go to to Admin>Configuration>FeaturesAndOptions>General, I reach a:
404 Error File Not Found

What I did before this happened was:
- I upgraded the addon 'Google Analytics Code', and then I...
- Upgraded from SMF 2.0.4 to 2.0.5.

I have no idea how to resolve this.  :o

What can I do to fix it?
Title: Re: Admin>Configuration>FeaturesAndOptions>General = 404 Error File Not Found!
Post by: Kindred on April 22, 2015, 09:34:55 AM
well - did you take a backup before doing your upgrade?

If not, you COULD try recovering the possible autobackup form the packages/backups directory...

or, you could bite the bullet and do a full upgrade directly to 2.0.9 (although that will require you to reinstall your mods)
Title: Re: Admin>Configuration>FeaturesAndOptions>General = 404 Error File Not Found!
Post by: JBlaze on April 22, 2015, 09:42:11 AM
What file can't be found, exactly? Knowing which file it's looking for can help to figure out where the problem is.
Title: Re: Admin>Configuration>FeaturesAndOptions>General = 404 Error File Not Found!
Post by: JollyGuru on April 22, 2015, 09:45:17 AM
Quote from: Kindred on April 22, 2015, 09:34:55 AM
well - did you take a backup before doing your upgrade?

If not, you COULD try recovering the possible autobackup form the packages/backups directory...

or, you could bite the bullet and do a full upgrade directly to 2.0.9 (although that will require you to reinstall your mods)
Thank you for a super-quick response!  :)

No. But this has hopefully taught me a lesson to do backups in the future.
Using FileZilla, within the 'Packages'-folder, I do see a folder called 'Backups'! There are five files from today:
2015-04-22_backup_google_analytics.tar.gz
2015-04-22_before_GoogleAnalytics.tar.gz
2015-04-22_before_smf_patch_1.tar.gz
2015-04-22_before_smf_patch_2.tar.gz
2015-04-22_before_smf_patch_2_2.tar.gz

I have never done a restore before and I don't want to screw up stuff more.

So what is the proper way to go about of trying to do a restore?
Title: Re: Admin>Configuration>FeaturesAndOptions>General = 404 Error File Not Found!
Post by: JollyGuru on April 22, 2015, 09:48:20 AM
Quote from: zilladotexe on April 22, 2015, 09:42:11 AM
What file can't be found, exactly? Knowing which file it's looking for can help to figure out where the problem is.

Love the responsive support here on SMF!  :)

Well... I'm not sure how to find out what file it's looking for? How do I do that?
If the URL can be of help it is like this:

domainname.com/admin/index.php?area=featuresettings;sa=basic;bbff417548=bd6aa9ce2de4c3f40ac086b76482574c
Title: Re: Admin>Configuration>FeaturesAndOptions>General = 404 Error File Not Found!
Post by: margarett on April 22, 2015, 10:50:28 AM
Check your server logs. If you have cPanel it will tell you which file triggers the 404 error ;)
Title: Re: Admin>Configuration>FeaturesAndOptions>General = 404 Error File Not Found!
Post by: margarett on April 22, 2015, 10:52:01 AM
Oh wait, I see: you have admin/index.php. SMF has no admin folder, your paths are wrong. Do you have pretty urls or any other redirect in place?
Title: Re: Admin>Configuration>FeaturesAndOptions>General = 404 Error File Not Found!
Post by: JollyGuru on April 22, 2015, 04:16:42 PM
Quote from: margarett on April 22, 2015, 10:52:01 AM
Oh wait, I see: you have admin/index.php. SMF has no admin folder, your paths are wrong. Do you have pretty urls or any other redirect in place?

Yup I do have Pretty URLs.
So what is my next step in solving this? ☺
Title: Re: Admin>Configuration>FeaturesAndOptions>General = 404 Error File Not Found!
Post by: margarett on April 22, 2015, 04:36:17 PM
I would say uninstall it :P
If you can't or won't do that, then post in its support topic ;)
Title: Re: Admin>Configuration>FeaturesAndOptions>General = 404 Error File Not Found!
Post by: JollyGuru on April 22, 2015, 05:34:45 PM
Quote from: margarett on April 22, 2015, 04:36:17 PM
I would say uninstall it :P
If you can't or won't do that, then post in its support topic ;)

So is the mod 'Pretty URLs' the cause of this error? ???
Will I be able to reinstall it after uninstalling it?

Sorry I'm not so savvy of how these things work yet. 
Title: Re: Admin>Configuration>FeaturesAndOptions>General = 404 Error File Not Found!
Post by: margarett on April 22, 2015, 05:42:28 PM
Most likely yes. In no part of SMF an action inside admin links like that.
Can you try
domainname.com/index.php?action=admin;area=featuresettings;sa=basic
Title: Re: Admin>Configuration>FeaturesAndOptions>General = 404 Error File Not Found!
Post by: JollyGuru on April 22, 2015, 05:46:59 PM
Quote from: margarett on April 22, 2015, 05:42:28 PM
Most likely yes. In no part of SMF an action inside admin links like that.
Can you try
domainname.com/index.php?action=admin;area=featuresettings;sa=basic

Oki. I tried the URL you wrote, and it works.
How can I get stuff working and still use 'Pretty URL's'?  :)
Title: Re: Admin>Configuration>FeaturesAndOptions>General = 404 Error File Not Found!
Post by: margarett on April 22, 2015, 05:48:48 PM
Ask the MOD support topic, please ;) http://www.simplemachines.org/community/index.php?topic=146969.0
You can link this topic if you want to
Title: Re: Admin>Configuration>FeaturesAndOptions>General = 404 Error File Not Found!
Post by: JollyGuru on April 22, 2015, 06:17:22 PM
I noticed there was a later version of 'Pretty URL's', so here's what I did:
- I uninstalled the version I had.
Then stuff worked but no pretty urls.
- I Installed the latest version of 'Pretty URL's'.
Now stuff seems to be working! Yay!  :D

But this episode brings up three questions:
1: Is there a mod to automatically backup my forum in case things like this happen again?
2: Is there a mod to automatically keep my mods up to date?
3: Now, my URL to the same "General" page is:
DomainName.com/admin/?area=featuresettings;sa=basic;bbff417548=bd6aa9ce2de4c3f40ac086b76482574c
...is this how things should be? (before it said index.php after admin)


Title: Re: Admin>Configuration>FeaturesAndOptions>General = 404 Error File Not Found!
Post by: margarett on April 22, 2015, 06:24:29 PM
1: no. SMF automatically performs a backup when you install/uninstall a MOD yes
http://wiki.simplemachines.org/smf/Modifications_-_A_mod_broke_my_forum_what_should_I_do
but you can't just rely on that as it only stores some files. A good backup is *ALL* files + database, which you should perform yourself. There are some tricks to do it through your control panel ;)

2: no, and there won't be. Some MODs can fail on install/uninstall/upgrade and SMF can't make decisions for you. Besides, the current implementation of Package Manager and our modsite can't really do that.

3: no idea, never used that MOD. Again, refer to the MOD support topic.
Title: Re: Admin>Configuration>FeaturesAndOptions>General = 404 Error File Not Found!
Post by: JollyGuru on April 22, 2015, 06:32:10 PM
Whow. Really impressive support here.
Many, many thanks for helping us out! You guys are amazing!  :D
*thumbs up!*