LeonLatex Posted October 5, 2021 Share Posted October 5, 2021 I cant find out whats wrong. Can some of you guys? Quote Link to comment https://forums.phpfreaks.com/topic/313876-pdo-connect-session-error-pictures-of-error-codes/ Share on other sites More sharing options...
requinix Posted October 5, 2021 Share Posted October 5, 2021 Unfortunately you cut off the screenshot of those error messages just when they were getting to the good parts. Something is including header.php a second time, after the first time when marina.php included it. Fix whatever logic error caused you to decide you had to include it a second time. Then switch to require() instead of include(), Quote Link to comment https://forums.phpfreaks.com/topic/313876-pdo-connect-session-error-pictures-of-error-codes/#findComment-1590706 Share on other sites More sharing options...
LeonLatex Posted October 6, 2021 Author Share Posted October 6, 2021 There in's any more info in the error msg than showing. So nothing is cut off. Look: This was working with include before and should be now too. Quote Link to comment https://forums.phpfreaks.com/topic/313876-pdo-connect-session-error-pictures-of-error-codes/#findComment-1590707 Share on other sites More sharing options...
gizmola Posted October 6, 2021 Share Posted October 6, 2021 Yes, well it looks like your header.php does a session_start() and the session has already been started. That could be because it also is trying to include the same db_inc.php. You also don't ever want to call session_start() after you have made any output, because at that point, the HTTP headers have already been sent. Quote Link to comment https://forums.phpfreaks.com/topic/313876-pdo-connect-session-error-pictures-of-error-codes/#findComment-1590709 Share on other sites More sharing options...
LeonLatex Posted October 6, 2021 Author Share Posted October 6, 2021 But gizmola, i haven't changed anything that has to do with what you suggest as a solution. But i will look after to be sure. Quote Link to comment https://forums.phpfreaks.com/topic/313876-pdo-connect-session-error-pictures-of-error-codes/#findComment-1590710 Share on other sites More sharing options...
LeonLatex Posted October 6, 2021 Author Share Posted October 6, 2021 You were so right gizmola. On almost every page there is a "include $ROOT.'db_inc.php'; ". They must have bean there from before. I haven't put them there. They must have ben there from when barand made the script. It has bean working til now. I think i have to ask him what happen. The case is for now: As long i set them as a comment. It works fine... or there is a error on line 12 or something, but the page e.g. shows up and some others to. So for now it is working bether. But, as i said. Something happened here, but nothing like that is done by me. Thanks for now gizmola Quote Link to comment https://forums.phpfreaks.com/topic/313876-pdo-connect-session-error-pictures-of-error-codes/#findComment-1590714 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.