This happened when registering

Forum
Last Post
Threads / Messages

SapphirePhoenix

Adoptable Site Owner
Member
Joined
Nov 22, 2015
Messages
81
Points
0
Age
19
Location
Australia
Mysidian Dollar
5,356
Code:
Warning: Cannot modify header information - headers already sent by (output started at /home/azurelia/public_html/functions/functions_forums.php:1) in /home/azurelia/public_html/functions/functions_forums.php on line 87

Warning: Cannot modify header information - headers already sent by (output started at /home/azurelia/public_html/functions/functions_forums.php:1) in /home/azurelia/public_html/functions/functions_forums.php on line 87

Warning: Cannot modify header information - headers already sent by (output started at /home/azurelia/public_html/functions/functions_forums.php:1) in /home/azurelia/public_html/classes/class_cookies.php on line 85

Warning: Cannot modify header information - headers already sent by (output started at /home/azurelia/public_html/functions/functions_forums.php:1) in /home/azurelia/public_html/classes/class_cookies.php on line 88

Warning: Cannot modify header information - headers already sent by (output started at /home/azurelia/public_html/functions/functions_forums.php:1) in /home/azurelia/public_html/classes/class_cookies.php on line 90

Warning: Cannot modify header information - headers already sent by (output started at /home/azurelia/public_html/functions/functions_forums.php:1) in /home/azurelia/public_html/classes/class_cookies.php on line 92

Warning: Cannot modify header information - headers already sent by (output started at /home/azurelia/public_html/functions/functions_forums.php:1) in /home/azurelia/public_html/functions/functions_forums.php on line 87

Warning: Cannot modify header information - headers already sent by (output started at /home/azurelia/public_html/functions/functions_forums.php:1) in /home/azurelia/public_html/functions/functions_forums.php on line 87

This happened when I was testing creating accounts. I was only testing to see if the welcome message worked. Also, when I clicked 'Manage Account' (this shows you finish registering) it logged me out.

The account's fine when I log in again and the welcome message did show.
 
Last edited:
Did you add kyttias's welcome pm code? If so, add your username to where it says YourUsernameHere in the code. The same goes with message title and content. Ex. below:
PHP:
if($mysidia->input->post("submit")){
    $document->setTitle($this->lang->success_title);
    $document->addLangvar($this->lang->success.$mysidia->input->post("username").$this->lang->success2);

    $pm = new PrivateMessage(); // Send them a welcoming message
    $pm->setsender('SapphirePhoenix');
    $pm->setrecipient(htmlentities(addslashes(trim($mysidia->input->post("username")))));
    $pm->setmessage("Welcome", "Test text.");
    $pm->post();  
    
    return;
}
The first error has nothing to do with it. It's the same problem I have as well.
 
Last edited:
I added Kyttias's, which is for the version 1.3.4 and I put 'SYSTEM' for the YourUsernameHere part, it works fine.
 
Well when posting threads like this, you need to give information about what modifications you have made to the script. Note by modification I mean script edits or file changes, not changes you made through admin control panel. This way it will be easier to get an idea of what problem you may be having.
 
I tried changing it back but there's still the same error. Is anyone else having this problem?
 
Last edited:
Well you can just disable forum integration, edit file inc/config_forum.php and change $mybbenabled from 1 to 0, and the error will go away.
 
Sure, you can upload a forum script to your server using FTP, install it and add it as a link from Mysidia's ACP.
 
I think this comes down to some change (or lack thereof) that's been made on your end.

I could tell you exactly what the error means but I don't think it'll help all that much. So...Here's one source of information, but let me explain it in my own words: Basically headers are really picky. There cannot be any html, even whitespace, rendering before it's called. If it's rendering, say, an error message because it's looking for improper or incomplete config data, well, you'd get a header error instead of the error that would tell you that's what's wrong, unfortunately.

First off, make sure your inc/config_forums.php has the correct information AND that it should also go without saying that you also should have installed the forum by visiting it's url and creating an admin account for it - its not as simple as just dropping the files in. The prefix being correct is the most important part. The file I talk about below is going to look inside your database for data from a forum install with that prefix. So if the config data is correct and the forum properly installed, you should be able to log into the forum by visiting its url with the admin account you just created for it during it's install process. If all this is good, then it's not the problem.

Inside functions/functions_forums.php, which relies upon the information above being correct, the line the error is happening in is the function mybbsetcookie() which is called in mybbregister(), also in that file, from the file register.php. This should be working just fine - so long as nothing is being rendered to the page BEFORE this happens. Can you verify for me that absolutely no changes have been made to register.php by putting in a copy from a fresh version of the files?

But this isn't the only place where problems could have occurred. Afterall, $mysidia->user->register(); is called before mybbregister() and if it attempted to render anything to the page, even a blank space, this error would be happening. I'm pretty sure that function is being called up from it's location in classes/class_visitor.php (since the visitor class is what actually registers users and extends user) and it's register() function. All this function should be doing is adding a user to the database. Definitely not writing anything to the page, so it shouldn't be interfering. Put in a fresh copy of classes/class_visitor.php to confirm no changes were made here from the default?

If you've literally made no changes at all (or if your forum config was correct), I don't see how this would be happening.

It's also worth asking, if all the above is fine, what version of MyBB are you trying to integrate? It's best with v1.6, which is slightly older. (Other types of forum software will not work, period, unless you write your own integration technique and cookie forwarder.)
 
Last edited:
Well her site is on my webhost, so the PHP version is 5.5 which shouldnt be a problem. I thought the problem was resolved last time, so I dont quite understand what the OP is asking for this time?
 
It was never resolved. You asked her to turn off forum integration. Yes, that solved the problem, but she opened another thread asking how to integrate a forum and even PMed me about it. She knew she was doing something wrong (and I'm going to guess it was not installing the forum after putting the files in).
 
I see. If she has an active site with users, its a bit harder to integrate the forum. I thought her forum integration was working before, unless my memory wasnt correct. In this case, it may be good to ask her when it stopped working all of a sudden. Or if my memory was indeed wrong, did it never work in the first place?
 
The forum works fine, but when I register testing accounts (on my site, not the forum) there's this error:
Code:
Warning: Cannot modify header information - headers already sent by (output started at /home/azurelia/public_html/functions/functions_forums.php:1) in /home/azurelia/public_html/functions/functions_forums.php on line 87

Warning: Cannot modify header information - headers already sent by (output started at /home/azurelia/public_html/functions/functions_forums.php:1) in /home/azurelia/public_html/functions/functions_forums.php on line 87

Warning: Cannot modify header information - headers already sent by (output started at /home/azurelia/public_html/functions/functions_forums.php:1) in /home/azurelia/public_html/classes/class_cookies.php on line 85

Warning: Cannot modify header information - headers already sent by (output started at /home/azurelia/public_html/functions/functions_forums.php:1) in /home/azurelia/public_html/classes/class_cookies.php on line 88

Warning: Cannot modify header information - headers already sent by (output started at /home/azurelia/public_html/functions/functions_forums.php:1) in /home/azurelia/public_html/classes/class_cookies.php on line 90

Warning: Cannot modify header information - headers already sent by (output started at /home/azurelia/public_html/functions/functions_forums.php:1) in /home/azurelia/public_html/classes/class_cookies.php on line 92

Warning: Cannot modify header information - headers already sent by (output started at /home/azurelia/public_html/functions/functions_forums.php:1) in /home/azurelia/public_html/functions/functions_forums.php on line 87

Warning: Cannot modify header information - headers already sent by (output started at /home/azurelia/public_html/functions/functions_forums.php:1) in /home/azurelia/public_html/functions/functions_forums.php on line 87

So...
 
Inside functions/functions_forums.php, which relies upon the information above being correct, the line the error is happening in is the function mybbsetcookie() which is called in mybbregister(), also in that file, from the file register.php. This should be working just fine - so long as nothing is being rendered to the page BEFORE this happens. Can you verify for me that absolutely no changes have been made to register.php by putting in a copy from a fresh version of the files?

But this isn't the only place where problems could have occurred. Afterall, $mysidia->user->register(); is called before mybbregister() and if it attempted to render anything to the page, even a blank space, this error would be happening. I'm pretty sure that function is being called up from it's location in classes/class_visitor.php (since the visitor class is what actually registers users and extends user) and it's register() function. All this function should be doing is adding a user to the database. Definitely not writing anything to the page, so it shouldn't be interfering. Put in a fresh copy of classes/class_visitor.php to confirm no changes were made here from the default?
I believe the problem is probably that part, but I have checked that the files weren't edited. But then this:
Afterall, $mysidia->user->register(); is called before mybbregister() and if it attempted to render anything to the page, even a blank space, this error would be happening.
Is something that I'm not 100% sure about, so can you please explain? :pleased:

EDIT:
Also, I have noticed that when I registered on other Mysidia sites with integrated forums, the same error shows up.
 
Similar threads
Thread starter Title Forum Replies Date
L What happened with? Other Chat 4
Mortain can't create forum account - when registering Questions and Supports 6

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,130
Members
1,603
Latest member
Monako
BETA

Latest Threads

Latest Posts

Top