News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Registration and PM errors

Started by rob54, August 15, 2013, 06:38:22 PM

Previous topic - Next topic

rob54

I upgraded my 1.1.18 forum using Softaculous, against advice here http://www.simplemachines.org/community/index.php?topic=509481.0 but nevertheless it seemed to work.

Now I find registration doesn't work, whether I register as if a new member, or if I try to register a member using the admin logon. I get the following error:
Fatal error: require_once(): Failed opening required '/home/late7e/public_html/forum/Sources/Subs-Post.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/late7e/public_html/forum/Sources/Subs-Members.php on line 468
When I looked in the files in FTP I could only see Subs-Post.php~, so I extracted the installation file and uploaded Subs-Post.php but it made no difference. Subs-Members.php was there but I still uploaded a new version. No difference. Also I note as I entered the username field, I got a tickmark, same against passwords, but no tickmark against email address.

Similarly, private messages fail with a similar error:
Fatal error: require_once(): Failed opening required '/home/late7e/public_html/forum/Sources/Subs-Post.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/late7e/public_html/forum/Sources/PersonalMessage.php on line 111

In both these cases the error logs say 'no such file or directory, citing the same line numbers as above

Any ideas please?

Chalky

Try making a copy of Subs-Post.php~ and renaming it to Subs-Post.php and see if that's any good.  The ~ indicates the automatic backup file taken by the system so if you're lucky it will be a copy of what you had before.

rob54

This is strange. I did that (made a copy and removing the ~) and uploaded it. It appeared as expected, but disappears on refreshing!

Illori

then have a talk with your host, maybe they disabled the file for some reason.

Arantor

Very likely because they see the use of email in there and think ERMAHGERD it's a spam trap.

rob54

Quote from: Arantor on August 15, 2013, 07:46:13 PM
Very likely because they see the use of email in there and think ERMAHGERD it's a spam trap.
Not sure I know what you mean  ???
Quote from: Illori on August 15, 2013, 07:02:12 PM
then have a talk with your host, maybe they disabled the file for some reason.
Have raised a ticket with my host to see if they have an answer re file disappearance. Doubt they will  :( they seem to know little about forums.

Illori

sounds to me like it is time to find a new host if they cant tell you why this file cant stay on their server then.

rob54

Maybe, but I had no problem with these issues with registration and PMs before upgrading to 2.0.5, so I would not had cause to look at these files. Can't help thinking I ought to just start afresh. There isn't much content really. I could maybe make copies of the posts (there's that few) and copy over to a new clean fully working forum.

Arantor

I still believe it's because of your host being idiotic and removing them because ERMAHGERD THEY MAKES SPAMZ. Your host wouldn't be the first to do just that.

rob54

#9
They said they thought their 'exploit scanner accidently blocked these files' and restored them. Subs-Post.php is there an stays there. It changed something as Read Messages works, but Send Messages doesn't with error:
Fatal error: Cannot redeclare theme_postbox() (previously declared in /home/late7e/public_html/forum/Sources/Subs-Post.php:1149) in /home/late7e/public_html/forum/Sources/Subs-Editor.php on line 1414

People can still not register and they get error message:
Fatal error: Cannot redeclare theme_postbox() (previously declared in /home/late7e/public_html/forum/Sources/Subs-Editor.php:1409) in /home/late7e/public_html/forum/Sources/Subs-Post.php on line 1275

I can register people, though it appears not to work, with error:
Fatal error: Call to undefined function loadEmailTemplate() in /home/late7e/public_html/forum/Sources/Subs-Members.php on line 818

[Edit: On looking at the memberlist, the one I added (me with another name from the same computer) has a different IP. I'm feeling rather suspicious I might just junk the forum. No members to speak of and New Topics doesn't work either with error:
Fatal error: Cannot redeclare theme_postbox() (previously declared in /home/late7e/public_html/forum/Sources/Subs-Post.php:1149) in /home/late7e/public_html/forum/Sources/Subs-Editor.php on line 1414]

Chalky

QuoteThey said they thought their 'exploit scanner accidently blocked these files' and restored them.

Deffo time to change hosts!  You don't know what their out-of-control "exploit scanner" will "accidentally" delete next.  And next time they might not or might not be able to restore it.  Run now and run fast  :-X

kat

Fatal error: Cannot redeclare theme_postbox() (previously declared in /home/late7e/public_html/forum/Sources/Subs-Editor.php:1409) in /home/late7e/public_html/forum/Sources/Subs-Post.php on line 1275

REDECLARE.

Has something been installed twice, perhaps?

Want to attach the file, so we can take a look at it?

rob54

Not sure which one of the two files you mean but here's both mentioned, and thanks.

rob54

Sorry to bug you again, but my host answer is this:

We recently upgraded the servers to the latest version of PHP (5.4) - your website doesn't appear to be compatible with this version.

You can now set your PHP version from your cPanel control panel under the 'Select PHP Version' icon in the 'Software' section. Chose 5.2 and press the 'Set As Current' button.

This should solve the issue.


Does that sound right given I am talking about SMF to them, installed in the /forum folder, by their installer provided, and not my very crude amateur website? I'm asking you guys before trying what they suggest.

MrPhil

"Cannot redeclare <function name>" is your error. You installed a mod twice. Nothing your host did, unless you thought a mod was gone and they restored the file with the installed mod just as you reinstalled it.

SMF 1.1.18 I think is PHP 5.4 compatible (and I'm pretty sure people are running 2.0.4 on that level). You might search this forum for mention of PHP 5.4 just to be sure.

rob54

Quote from: MrPhil on August 16, 2013, 12:55:43 PM
"Cannot redeclare <function name>" is your error. You installed a mod twice. Nothing your host did, unless you thought a mod was gone and they restored the file with the installed mod just as you reinstalled it.

SMF 1.1.18 I think is PHP 5.4 compatible (and I'm pretty sure people are running 2.0.4 on that level). You might search this forum for mention of PHP 5.4 just to be sure.
Oh right (I think)! I was running 1.1.18 and upgraded to 2.0.5. I junked the mods I had on 1.1.18 after upgrade along with the themes. The restore they did was today, the upgrade was very early the previous day. In any case what they did only solved one problem and many more persist. It sounds completely messed up. I think I am going to uninstall the whole forum. Not worth the effort trying to unravel it all. But many thanks.

Sleezy

Check you version. Which version of SMF do you use?
SMFNew Advocate for SMFNew (Dagger)

kat

Just to add to the weirdness, theme_postbox() doesn't appear in either of those files, at all, let alone twice.

Arantor

It sounds like there's some legacy 1.1.x stuff trying to mesh with 2.0 stuff.

rob54

Have just asked host if this could be case. I'm strongly tempted to junk it entirely as it is not actually used!

Advertisement: