hi, Im having this problem every time I press sql Builder:
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home4/signs3d/public_html/login/nuselect.php:1) in /home4/signs3d/public_html/login/nuchoosesetup.php on line 9
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Warning: session_start():
-
- Posts: 47
- Joined: Thu Oct 15, 2020 8:43 pm
Re: Warning: session_start():
I see that here when going into the SQL Builder, have tried both Safari and MS Edge.
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /Users/n9yty/Sites/nubuilder/nuchoosesetup.php on line 52
Warning: session_start(): Cannot start session when headers already sent in /Users/n9yty/Sites/nubuilder/nuchoosesetup.php on line 9
I don't know if it is related, but I can paste the SQL in and set it to "Edit Manually", but it doesn't seem to be working. Also, I can add tables, but I cannot drag/interact with them. [EDIT: I can interact with them in FireFox, but not the other two browsers]
Also, saw this post: https://forums.nubuilder.cloud/viewtopic. ... ers#p18657
I can confirm if I do that, the messages go away, but unsure what side effect that has.
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /Users/n9yty/Sites/nubuilder/nuchoosesetup.php on line 52
Warning: session_start(): Cannot start session when headers already sent in /Users/n9yty/Sites/nubuilder/nuchoosesetup.php on line 9
I don't know if it is related, but I can paste the SQL in and set it to "Edit Manually", but it doesn't seem to be working. Also, I can add tables, but I cannot drag/interact with them. [EDIT: I can interact with them in FireFox, but not the other two browsers]
Also, saw this post: https://forums.nubuilder.cloud/viewtopic. ... ers#p18657
I can confirm if I do that, the messages go away, but unsure what side effect that has.
-
- Posts: 47
- Joined: Thu Oct 15, 2020 8:43 pm
Re: Warning: session_start():
As another reply to this, I think this really should be fixed, unless it is due to some PHP mis-configuration or something else? But I have a clean setup here, not any real customization on an out-of-the box macOS Catalina setup, so it should be "typical" as opposed to heavily-customized.
Note, I set up /etc/php.ini (did not exist) and included "error_reporting = E_ALL ^ E_WARNING" to remove warnings, this makes it go away (after restarting the web server), but this is not the ideal solution and other warnings will now be missed.
If I hand edit files (unselect.php in this case) to make it go away, I fear it will prevent them being updated in the future when I refresh from GitHub. I don't want to have it force overwrite or I will lose my nuconfig.php file.
I am seeing this in Firefox, Safari and Microsoft Edge on the Mac, so it is not isolated to one browser, it is a PHP server message because the file is sending the DOCTYPE and HTML tags before the PHP section of the code loads and initiates the session.
The post I referenced in my last reply does show the start of unselect.php that is causing this problem. Maybe the opening HTML has to be moved to a location after the require_once call? or some nuJSInclude calls?
Note, I set up /etc/php.ini (did not exist) and included "error_reporting = E_ALL ^ E_WARNING" to remove warnings, this makes it go away (after restarting the web server), but this is not the ideal solution and other warnings will now be missed.
If I hand edit files (unselect.php in this case) to make it go away, I fear it will prevent them being updated in the future when I refresh from GitHub. I don't want to have it force overwrite or I will lose my nuconfig.php file.
I am seeing this in Firefox, Safari and Microsoft Edge on the Mac, so it is not isolated to one browser, it is a PHP server message because the file is sending the DOCTYPE and HTML tags before the PHP section of the code loads and initiates the session.
The post I referenced in my last reply does show the start of unselect.php that is causing this problem. Maybe the opening HTML has to be moved to a location after the require_once call? or some nuJSInclude calls?
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Warning: session_start():
When I change nuselect.php this way, I can't click on anything in the added tables or move them.n9yty wrote: Also, saw this post: https://forums.nubuilder.cloud/viewtopic. ... ers#p18657
I can confirm if I do that, the messages go away, but unsure what side effect that has.
BTW, I'm not seeing this issue. And I don't think that it's caused by any browser since this error occurs in PHP (server-side). What's your PHP version?
You do not have the required permissions to view the files attached to this post.
-
- Posts: 47
- Joined: Thu Oct 15, 2020 8:43 pm
Re: Warning: session_start():
I am running PHP 7.3.11 on macOS 10.15.
I can mute that warning by changing my php.ini so that it didn't complain, but that doesn't mean the underlying cause is solved.
The point is that some data is being emitted before some routine trying to alter headers runs, which can't be done after data is sent. The fact that the file has HTML at the top before the PHP that is trying to alter the headers is the source of the problem, and that is why commenting that HTML out (or removing it, the DOCTYPE/etc) will make the error go away, but it is having unintended consequences for the operation of the software. That is why I suggested maybe the DOCTYPE/etc needs to be moved to a location in that file AFTER whatever is modifying the headers has run.
I don't think this is new to PHP 7.3, though. Perhaps your PHP config is not set to show warnings?
I can mute that warning by changing my php.ini so that it didn't complain, but that doesn't mean the underlying cause is solved.
The point is that some data is being emitted before some routine trying to alter headers runs, which can't be done after data is sent. The fact that the file has HTML at the top before the PHP that is trying to alter the headers is the source of the problem, and that is why commenting that HTML out (or removing it, the DOCTYPE/etc) will make the error go away, but it is having unintended consequences for the operation of the software. That is why I suggested maybe the DOCTYPE/etc needs to be moved to a location in that file AFTER whatever is modifying the headers has run.
I don't think this is new to PHP 7.3, though. Perhaps your PHP config is not set to show warnings?
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Warning: session_start():
Even if I change the settings ton9yty wrote: I don't think this is new to PHP 7.3, though. Perhaps your PHP config is not set to show warnings?
Code: Select all
error_reporting=E_ALL
display_errors=On