Jump to content

PDO Connect & Session error (pictures of error codes)


LeonLatex

Recommended Posts

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(),

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.