View Full Version : How do you mean this error?
Ahharu
01-17-2013, 11:37 AM
Hi, If I remove this line of "config.php":
ini_set("display_errors", "0");
I get this error in the Forum:
Warning: Illegal string offset 'name' in [path]/includes/functions.php on line 6988
What does the error, and what I have change to remove this error? :S.
Thanks :).
kkinsey
01-17-2013, 01:26 PM
Well, first ... why do you want to change the ini setting? Obviously the vB codesbase has it there for a reason.
The error is what it says; in line 6988 of functions.php (probably the function "is_server") a variable which is being interpreted as a string is being indexed by the string "name". Probably this shouldn't be happening, but it's possible that your machine's hostname is something they hadn't accounted for. If you have PHP skills and a test installation, you might consider looking at improving the function is_server(), but it's probably not worth your time. Just leave the ini settings alone and live with it? Is there something that's not working in your installation (besides a PHP warning?)
My $.02,
KK
Ahharu
01-17-2013, 02:44 PM
I leave it as is?, Everything works fine, except this:
https://vborg.vbsupport.ru/showthread.php?t=294019
Thanks! ;).
It won't hurt anything if you leave it as is. But if you really want the message to go away, edit the file and change line 6988 like this (part in red added):
if (is_array($server) AND strpos($server['name'], $server_name))
There's probably a better way to fix it, but this seems like the best way to do it without completely understanding what the function is doing.
Ahharu
01-17-2013, 04:00 PM
This solution don't found...I try this code and when I acces to the Web: "Conexion Error" and I can't access to web.
Hmm...I'm not sure what to tell you. I tried the code I posted and things seem to work OK. If you still have the problem after removing that code, you can always upload a new copy of functions.php from the distribution.
BTW, I did a search and it seems like that function is only called from one place, and it only checks for an apache server.
Ahharu
01-17-2013, 04:59 PM
Well kh99, now found! :D. I had copied wrong, sorry :(.
The error is gone :).
But there is a problem...when I edit a post and click to save, do not save it ... it is thinking and don't save it :(.
On my side it was caused by a problem with the PHP versi?n from my host:
http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/3975905-warning-illegal-string-offset-name-in-[path]-includes-functions-php-on-line-6845
mmoclub
09-17-2013, 08:10 PM
Yes thats what I did I Updated my php version and now my forums is broken. :\
John Diver
05-14-2016, 01:40 PM
Hey,
I was getting the same error and replaced this but now Im getting another error:
Fatal error: Class 'vBCMS_Permissions' not found in /home/me/public_html/site/includes/class_postbit.php on line 411
I dont know whats going wrong - The forumhome is working but I cant get into any posts
Thanks
--------------- Added 1463319052 at 1463319052 ---------------
Hey,
Does anyone know what to do about this please?
No posts are working on my forum
Thanks for any help :)
Mattwhf
05-15-2016, 10:15 PM
Well kh99, now found! :D. I had copied wrong, sorry :(.
The error is gone :).
But there is a problem...when I edit a post and click to save, do not save it ... it is thinking and don't save it :(.
It could be affected by your changes on vB codes. You should roll back the process and check carefully which you did on your forum.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.