Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-17-2013, 11:37 AM
Ahharu Ahharu is offline
 
Join Date: Sep 2010
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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 .
Reply With Quote
  #2  
Old 01-17-2013, 01:26 PM
kkinsey kkinsey is offline
 
Join Date: Oct 2011
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 01-17-2013, 02:44 PM
Ahharu Ahharu is offline
 
Join Date: Sep 2010
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I leave it as is?, Everything works fine, except this:

https://vborg.vbsupport.ru/showthread.php?t=294019


Thanks! .
Reply With Quote
  #4  
Old 01-17-2013, 03:00 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 01-17-2013, 04:00 PM
Ahharu Ahharu is offline
 
Join Date: Sep 2010
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 01-17-2013, 04:15 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 01-17-2013, 04:59 PM
Ahharu Ahharu is offline
 
Join Date: Sep 2010
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .
Reply With Quote
  #8  
Old 06-24-2013, 01:21 AM
unfv unfv is offline
 
Join Date: Apr 2008
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 09-17-2013, 08:10 PM
mmoclub mmoclub is offline
 
Join Date: Aug 2011
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes thats what I did I Updated my php version and now my forums is broken. :\
Reply With Quote
  #10  
Old 05-14-2016, 01:40 PM
John Diver John Diver is offline
 
Join Date: Nov 2003
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


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 09:08 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04592 seconds
  • Memory Usage 2,252KB
  • 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
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete