vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How do I fix this error message? (https://vborg.vbsupport.ru/showthread.php?t=277797)

theforumist 01-30-2012 09:07 PM

How do I fix this error message?
 
Everytime I log in (and I'm assuming everyone else who visits my site) I get the following error message (mind you, vbulletin doesn't even boot):

Unable to add cookies, header already sent.
File: /homepages/45/d250243461/htdocs/LaBarncia/index.php(1) : eval()'d code
Line: 7


I'm curious to know what causes this and how would I go about fixing it?

EDIT: This doesn't happen when you visit the site from a phone...atleast it hasn't on my phone.

Max Taxable 01-30-2012 09:10 PM

Usually when I have seen this it's due to added characters in the php file due to using a editor such as plain notepad for editing the file.

Did this only recently start happening?

Can you provide a link for checking out the page source code?

kh99 01-30-2012 09:11 PM

What does your index.php look like? The error seems to be saying that the problem is with code eval()'d on line 1, which is odd.

Max Taxable 01-30-2012 09:11 PM

Quote:

Originally Posted by kh99 (Post 2294331)
What does your index.php look like? The error seems to be saying that the problem is with code eval()'d on line 1, which is odd.

That's what's got me thinking, a extra character.

kh99 01-30-2012 09:12 PM

Yeah, that's a good thought - I posted before reading your repsonse.

theforumist 01-30-2012 09:15 PM

The site has been up for nearly a year now and it has just now started happening. I'm away from my FTP accessible computer at the moment, but when I get home, I'll post that first section of the index.

Max Taxable 01-30-2012 09:18 PM

Quote:

Originally Posted by theforumist (Post 2294338)
The site has been up for nearly a year now and it has just now started happening. I'm away from my FTP accessible computer at the moment, but when I get home, I'll post that first section of the index.

This tells me it is an issue with a change you recently made.

Editing php files with plain notepad messes them up, puts in extra characters you cannot see.

theforumist 01-30-2012 09:34 PM

Quote:

Originally Posted by Max Taxable (Post 2294340)
This tells me it is an issue with a change you recently made.

Editing php files with plain notepad messes them up, puts in extra characters you cannot see.

I haven't added anything to the site in over a month. I think the last thing I did on there was add and remove forums and change the Human Verification settings.

kh99 01-30-2012 09:38 PM

Quote:

Originally Posted by theforumist (Post 2294358)
I haven't added anything to the site in over a month. I think the last thing I did on there was add and remove forums and change the Human Verification settings.

Yeah, that seems like an odd error to get from the "extra character" thing because normally the first line is not an eval(). But looking at the file should tell us something.

theforumist 01-30-2012 09:41 PM

What would you guys like to see, lines what through what? Mind you if it does contain any site specific data, I'll remove it.

EDIT: To answer the question about notepad and wordpad, I use an HTML editor for PHP, XML, and HTML files.


All times are GMT. The time now is 07:29 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01092 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete