The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do you mean this error?
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 . |
#2
|
|||
|
|||
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 |
#3
|
|||
|
|||
I leave it as is?, Everything works fine, except this:
https://vborg.vbsupport.ru/showthread.php?t=294019 Thanks! . |
#4
|
|||
|
|||
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):
Code:
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. |
#5
|
|||
|
|||
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.
|
#6
|
|||
|
|||
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. |
#7
|
|||
|
|||
Well kh99, now found! . 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 . |
#8
|
|||
|
|||
On my side it was caused by a problem with the PHP versi?n from my host:
http://www.vbulletin.com/forum/forum...ffset-name-in-[path]-includes-functions-php-on-line-6845 |
#9
|
|||
|
|||
Yes thats what I did I Updated my php version and now my forums is broken. :\
|
#10
|
|||
|
|||
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 [DATE]1463319052[/DATE] at [TIME]1463319052[/TIME] --------------- Hey, Does anyone know what to do about this please? No posts are working on my forum Thanks for any help |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|