PDA

View Full Version : Illegal string offset


dadoc
09-22-2012, 09:33 PM
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

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

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

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

define('DISABLE_HOOKS', true);