vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Illegal string offset (https://vborg.vbsupport.ru/showthread.php?t=288182)

dadoc 09-22-2012 09:33 PM

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 :D

borbole 09-23-2012 09:15 AM

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.

dadoc 09-24-2012 07:50 AM

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 ::path() php 5.4.x

nerbert 09-24-2012 08:21 AM

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".

kh99 09-24-2012 10:20 AM

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.

dadoc 09-25-2012 07:14 AM

Thanks for the advice Kevin,

I will look into that config file

Also what is the best way to disable all modifications ?

borbole 09-25-2012 10:23 AM

Quote:

Originally Posted by dadoc (Post 2368343)


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); 



All times are GMT. The time now is 02:55 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.00986 seconds
  • Memory Usage 1,732KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete