Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
  #1  
Old 09-22-2012, 09:33 PM
dadoc's Avatar
dadoc dadoc is offline
 
Join Date: Apr 2008
Location: Australia
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Illegal string offset

Hello,

over the last few months I have been running into a problem

it seems to be a error that has effected quite a few areas of my forum

1st it was vbseo

this is part of the error

Code:
Unable to add cookies, header already sent.
File: /home/crimecas/public_html/forum/vbseo/includes/functions_vbseo_pre.php
Line: 279
I contacted vbseo and they did give me a fix which has fixed it

2nd is my vbadvanced link directory

Which is still giving a error

Code:
Unable to add cookies, header already sent.
File: /home/crimecas/public_html/forum/links/links_config.php
Line: 1
I have asked a few times and posted in vbadvanced, no reply !

3rd

I have a "similar thread modification" that is the best thing since sliced bread but now I get a similar error

Code:
Warning: Illegal string offset 'name' in [path]/includes/functions.php on line 6988

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at [path]/includes/class_core.php:5615) in [path]/includes/facebook/facebook.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:5615) in [path]/includes/functions.php on line 4513
All 3 errors include a "[path]" problem
and also "headers already sent"

I would love to be able to fix this, if you have any help for me I would appreciate it

there is no where else to go other than here for support about these issues, as I have tried everything else.

pm me or reply here and I will return a favor one day

Thanks
Ryan

got to love vb.org
Reply With Quote
  #2  
Old 09-23-2012, 09:15 AM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be better to ask at that mod 's support thread about it. As per the rules all mods/themes related issues should be asked at their respective support threads/forums.
Reply With Quote
  #3  
Old 09-24-2012, 07:50 AM
dadoc's Avatar
dadoc dadoc is offline
 
Join Date: Apr 2008
Location: Australia
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have asked and found some info about each individual problem, but it is that the error seems to be the same for all these problems that I have.

I keep on getting

1, Unable to add cookies, header already sent.

2, Unable to add cookies, header already sent

3, Cannot modify header information - headers already sent

There is a common problem, is it related to an update of something on my host, maybe php problem

and what it this

Strict Standards: Non-static method :ath() php 5.4.x
Reply With Quote
  #4  
Old 09-24-2012, 08:21 AM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a long long LONG shot but if anyone has modified any of those files and used an echo for diagnostics it would cause those "header already sent" errors if there are any redirects. Even if you echo a blank string. Try going to the files throwing the errors and use the cPanel search feature to look for "echo".
Reply With Quote
  #5  
Old 09-24-2012, 10:20 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As borbole said, you really should be asking in the mod threads about the specific problems with modifications.

As nerbert mentioned, the "Unable to add cookies, header already sent" message means that something has created output before the script was intending to, so although the error messages look similar, they might be different problems in each case.

The only one of your 3 errors I can think of a cause for offhand is the second one. If links/links_config.php is a file you've edited, sometimes some junk gets left at the top before the <?php, or if you used something like windows "word" to edit it that can also cause problems. You might want to open that file in a text editor or notepad and see if you can see anything at the top.
Reply With Quote
Благодарность от:
borbole
  #6  
Old 09-25-2012, 07:14 AM
dadoc's Avatar
dadoc dadoc is offline
 
Join Date: Apr 2008
Location: Australia
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the advice Kevin,

I will look into that config file

Also what is the best way to disable all modifications ?
Reply With Quote
  #7  
Old 09-25-2012, 10:23 AM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dadoc View Post


Also what is the best way to disable all modifications ?
You can disable them in one fell swoop by adding this line at the top in your config.php file, right after the start php tag:

PHP Code:
define('DISABLE_HOOKS'true); 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:19 PM.


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.04188 seconds
  • Memory Usage 2,222KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (1)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete