Advertisement:

Author Topic: Users Can't Register  (Read 7141 times)

Offline jvaran

  • Semi-Newbie
  • *
  • Posts: 23
Re: Users Can't Register
« Reply #20 on: October 15, 2012, 02:35:41 PM »
While you're comtemplating that ;) which version of the DS-Natural theme are you currently running? Did you apply the version for SMF 2.0.2?

Might be worth a quick query on DzinerStudio.com

I did install the version for 2.0.2. I tried resetting back to the default theme, and the problem is still there.

Offline jvaran

  • Semi-Newbie
  • *
  • Posts: 23
Re: Users Can't Register
« Reply #21 on: October 15, 2012, 02:37:03 PM »
This is just a hunch...

Try emptying the forum's cache, in Forum Maintenance.

Just tried it, still no luck. However, while in there I checked all file versions, and for "Default Templates" I have 2.0 instead of 2.0.2. I'm not sure if that might be the cause of the problem, or how I would go about updating those files.

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,157
  • Gender: Male
    • i30 Owners Club
Re: Users Can't Register
« Reply #22 on: October 15, 2012, 02:54:07 PM »
For the sake of moving forwards, can you apply this final version?

If you see any errors reported from Subs.php can you list them please?

Offline jvaran

  • Semi-Newbie
  • *
  • Posts: 23
Re: Users Can't Register
« Reply #23 on: October 15, 2012, 03:12:31 PM »
I get this error in Chrome:

Code: [Select]
Server error
The website encountered an error while retrieving http://www.hiddendragon.com/forums/index.php?PHPSESSID=11f12231817f68135ebd441b3992cc81&action=register. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

However, there is nothing in the SMF Error Log.

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,157
  • Gender: Male
    • i30 Owners Club
Re: Users Can't Register
« Reply #24 on: October 15, 2012, 03:50:42 PM »
Weird. This is gonna take some thinking about...

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,392
    • StoryBB/StoryBB on GitHub
Re: Users Can't Register
« Reply #25 on: October 15, 2012, 03:56:05 PM »
Firstly, note that newsFile doesn't exist. It should never exist in a stock install. It is index 'news' and the File bit is always on the next line but for some reason when you copy from the error log it mashes things together.

That said, farting around with Subs.php isn't solving the problem - the undefined errors won't cause it to fail like that, simple as that. It might break the CAPTCHA, possibly, but it wouldn't cause a 500 on action=register.

Something is more fundamentally wrong, and I'd be looking at... Register.php and Subs-Members.php being compared to a stock copy from 2.0.2 to see what's different.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline jvaran

  • Semi-Newbie
  • *
  • Posts: 23
Re: Users Can't Register
« Reply #26 on: October 15, 2012, 11:05:13 PM »
I replaced Register.php and Subs-Members.php from a clean copy of SMF 2.0.2, and everything worked fine. Replacing Register.php messed up my install of Stop Forum Spam (as expected), but I went back in and made the required changes to that file again. And everything still works fine. So my best guess, I probably made a typo while modifying Register.php for the "Stop Forum Spam" mod.

I appreciate all the help! Thanks!  :)

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,157
  • Gender: Male
    • i30 Owners Club
Re: Users Can't Register
« Reply #27 on: October 16, 2012, 02:42:11 AM »
For closure, the various tweaks we made to Subs.php gradually removed the reference to $modSettings['news'] upto the point where Subs.php no longer 'failed' and the true origin of the fault was no longer being disguised, allowing the real error in Register.php to shine through.

That's my story, and I'm sticking to it.

Hey jvaran - it's good that you're up and running. Good luck with the forum (it looks like it's got potential) :)