Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: billpoynter on December 24, 2017, 01:06:01 PM

Title: Forum is down
Post by: billpoynter on December 24, 2017, 01:06:01 PM
In trying to fix a problem with forum users suddenly being unable to either post or view attachments, I've now made the forum non-accessible. 
The following error message now appears when trying to access the forum:  Fatal error: require_once() [function.require]: Failed opening required '/home/content/55/3007655/html/simplemachinesforum/Sources/Subs-Auth.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/55/3007655/html/simplemachinesforum/Sources/Security.php on line 535 

I would greatly appreciate any help you can offer.


Bill
Title: Re: Forum is down
Post by: SaltedWeb on December 24, 2017, 01:10:24 PM
Sounds like a permission on a file changed ? I would start there and see if the permissions are correct.
Title: Re: Forum is down
Post by: Shambles on December 24, 2017, 01:17:00 PM
I would say the Subs-Auth.php file has been deleted -  most likely by your host's security scans.

Have a look in the /Sources folder and see if it's there,
Title: Re: Forum is down
Post by: billpoynter on December 24, 2017, 01:30:33 PM
That file is indeed missing.  How should I proceed?
Title: Re: Forum is down
Post by: br360 on December 24, 2017, 01:50:30 PM
If you don't already have a copy; download the smf version you have to your computer, extract the package and then upload Subs-Auth.php back to where your other source folders are. Then open a ticket with your host explaining what they did and make sure they know not to delete the file again.

Title: Re: Forum is down
Post by: Illori on December 24, 2017, 02:15:53 PM
Quote from: br360 on December 24, 2017, 01:50:30 PM
If you don't already have a copy; download the smf version you have to your computer, extract the package and then upload Subs-Auth.php back to where your other source folders are. Then open a ticket with your host explaining what they did and make sure they know not to delete the file again.



you may need to upload the file with your hosts file manager rather then FTP to make it say in place.
Title: Re: Forum is down
Post by: billpoynter on December 24, 2017, 02:29:09 PM
Here's the result after I uploaded the file:  Fatal error: require_once() [function.require]: Failed opening required '/home/content/55/3007655/html/simplemachinesforum/Sources/Subs-Auth.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/55/3007655/html/simplemachinesforum/Sources/Security.php on line 543
Title: Re: Forum is down
Post by: Illori on December 24, 2017, 02:51:10 PM
did you upload it with your hosts file manager?
Title: Re: Forum is down
Post by: Sir Osis of Liver on December 24, 2017, 03:21:41 PM
On GoDaddy servers, if you upload source files via ftp, upload will be successful but file will immediately be deleted.  If you watch carefully, you can see it happen.  This can affect up to a dozen source files.  You can upload the file using cpanel file manager and it will stick.  I've only seen this on GD, but a couple of recent posts indicate it may be happening on other hosts.
Title: Re: Forum is down
Post by: billpoynter on December 24, 2017, 05:44:51 PM
I uploaded the file using GoDaddy's file manager.  The forum will now come up, but when I try to log in, I get this error message:  Fatal error: Call to undefined function safe_unserialize() in /home/content/55/3007655/html/simplemachinesforum/Sources/Subs-Auth.php on line 114
Title: Re: Forum is down
Post by: SaltedWeb on December 24, 2017, 06:14:54 PM
Not that its any fault of SMF, but seems that GD is consistently causing issues with this software.
Make one wonder if it should not be recommended at that not unless they just do this no matter what program they have installed. ( sorry didnt mean to Hijack the post seems allot of GD have issues)
Title: Re: Forum is down
Post by: billpoynter on December 24, 2017, 06:33:08 PM
I was wondering if upgrading to a newer version would correct all of the errors in my forum.  I can't log on as an administrator at this time.  My website is culvercadet.com and there's a link there to the forum.
Title: Re: Forum is down
Post by: Kindred on December 24, 2017, 07:41:57 PM
sounds like you might not have uploaded a current version of the file...   or you uploaded the 2.0.15 version and you are not actually running 2.0.15
Title: Re: Forum is down
Post by: billpoynter on December 28, 2017, 10:58:12 AM
I seem to have everything working except for this error message: The default theme's directory is wrong, please correct it by clicking this text.     I can't seem to resolve this issue.  Any ideas?
Title: Re: Forum is down
Post by: Illori on December 28, 2017, 11:01:06 AM
What is repair_settings.php? (https://wiki.simplemachines.org/smf/Repair_settings.php) should fix that for you.
Title: Re: Forum is down
Post by: billpoynter on December 28, 2017, 02:41:56 PM
I've now managed to create a new problem by changing one of the database settings in the repair_settings tool.  I now get this message when I try to run repair settings:   Fatal error: Call to undefined function () in /home/content/55/3007655/html/simplemachinesforum/repair_settings.php on line 368

Warning: Unknown: open(/home/content/55/3007655/tmp/sess_2er7q4arga7240tjne152mkg55, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0
Title: Re: Forum is down
Post by: Sir Osis of Liver on December 28, 2017, 03:24:18 PM
Why did you change a db setting?  Which one?
Title: Re: Forum is down
Post by: shawnb61 on December 28, 2017, 03:29:35 PM
To me, that looks like 'Enable DB Sessions' was disabled.  Two thoughts: 

First, I would suggest re-enabling it.   

Second, I would suggest talking with your host to determine why /tmp isn't configured/working properly. 
Title: Re: Forum is down
Post by: billpoynter on December 28, 2017, 03:45:10 PM
Is it possible that I could give someone access to the site so that they can determine what I have done to it?  I think that the original problem was caused by GoDaddy, but I have only made it worse.  I take one step forward and two back.
Title: Re: Forum is down
Post by: Sir Osis of Liver on December 28, 2017, 03:56:20 PM
PM your username/password for GD account and I'll have a look.
Title: Re: Forum is down
Post by: Aleksi "Lex" Kilpinen on December 29, 2017, 12:21:00 AM
Quote from: billpoynter on December 28, 2017, 03:45:10 PM
Is it possible that I could give someone access to the site so that they can determine what I have done to it?  I think that the original problem was caused by GoDaddy, but I have only made it worse.  I take one step forward and two back.

A reminder about admin / ftp passwords... (https://www.simplemachines.org/community/index.php?topic=228940.0)
Did you try what shawnb61 suggested?

Quote from: shawnb61 on December 28, 2017, 03:29:35 PM
To me, that looks like 'Enable DB Sessions' was disabled.  Two thoughts: 

First, I would suggest re-enabling it.   

Second, I would suggest talking with your host to determine why /tmp isn't configured/working properly. 

Though, GoDaddy is probably one the worst hosts out there for forums and other non-static content.
Title: Re: Forum is down
Post by: Just Another Member on December 29, 2017, 01:45:58 AM
Quote from: billpoynter on December 28, 2017, 10:58:12 AM
I seem to have everything working except for this error message: The default theme's directory is wrong, please correct it by clicking this text.     I can't seem to resolve this issue.  Any ideas?
A bit late but I had the same problem about 24 hours ago and went to my Themes settings page and found that repair_settings didn't fix the theme settings. I had gone to the same domain name but a different TLD.

Evidently repair_settings missed some of the theme settings despite theme settings being shown right in repair_settings. I'm sure I had all the settings right in repair_settings.

But. Too late now. Wish I'd seen this topic about 20 minutes ago. Might have worked for you too.
Title: Re: Forum is down
Post by: Sir Osis of Liver on December 29, 2017, 12:29:36 PM
I have this forum up and running, just some cleaning up to do tonight.  Another GoDaddy ******up. :P
Title: Re: Forum is down
Post by: Just Another Member on December 29, 2017, 01:50:10 PM
Quote from: Sir Osis of Liver on December 29, 2017, 12:29:36 PM
Another GoDaddy ******up. :P
LOLOL! You realize that's an oxymoron! :D :D :D

Please, make plans to change providers. Look forward to the date when your current contract expires and shop around ahead of time to find a better plan with a REAL provider, not a TOY provider like GoDaddy.

Note that you can change providers and then host your current domains as external sites, allowing you time to transfer your domains gracefully. I highly recommend http://internet.bs (located in the Bahamas) as being a very professional domainn registrar outfit with good support and excellent rates.* In fact you could benefit by transferring your sites there any time and host them at Who'sYaDaddy! ;) if they are smart enough to be able to handle hosting external domains (doubtful but who knows?). Please note that I don't go around recommending sites or products unless I feel strongly about them.

It's very smart to have your hosting at one company and your domain registration at another company, VERY SMART! When your hosting service is also your registrar they hold power over you and your domain. When your domain is at a registrar not connected with your hosting service, just make backups, get a new host, restore your backups and then delete the stuff at your nasty hosting provider. They get left holding an empty bag. Come to think of it, GoDaddy is already holding an empty bag—of hot air and poor hosting.


* I'm in the process of moving all my domains (about 10) to Internet.BS. I've done business with them about 3-4 years and it was only recently that 1and1 began pissing me off that I decided to get my own server, fire 1and1, and start moving domains around to eventually all land at Internet.BS. My situation was complicated by having a lot of money in BTC and Internet.BS not accepting BTC. I had to go to an intermediate registrar and up my domains for 10 years and then move them to Internet.BS. I'm currently hung up on the 60 day rule but in a few months every domain I own will be with Internet.BS.

(BTW 1and1 is fine for most people although some PPL at SMF don't like them, but I simply grew too big for a shared hosting account at 1and1 and got my own dedicated server. I send people to 1and1 unless they are big enough to require a dedicated server. I'd rather be dipped in mud than rent a dedicated server from 1and1, there are much better rates and better dedicated servers elsewhere. For sure 1and1 is 1000x better than Who'sYaDaddy!)
Title: Re: Forum is down
Post by: Aleksi "Lex" Kilpinen on January 08, 2018, 05:16:04 AM
Quote from: Sir Osis of Liver on December 29, 2017, 12:29:36 PM
I have this forum up and running, just some cleaning up to do tonight.  Another GoDaddy ******up. :P

I'm assuming this is ready to be marked solved then?