vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   operator not supported for strings on line (https://vborg.vbsupport.ru/showthread.php?t=326158)

Barzor 02-27-2018 03:26 PM

operator not supported for strings on line
 
I recently migrated to another server. No problems untill..
I suddenly get this error when I try to see a thread. Can somebody explain what this means?

[] operator not supported for strings on line 37 in /home/w12sdmo3osve/public_html/vb/ckeditor.php(74) : eval()'d code
#0 /home/w12sdmo3osve/public_html/vb/ckeditor.php(74): eval()
#1 /home/w12sdmo3osve/public_html/vb/ckeditor.php(44): vB_Ckeditor->__construct('qr', 'vBForum_Post', 0, 29, '1', '2')
#2 /home/w12sdmo3osve/public_html/includes/functions_editor.php(500): vB_Ckeditor::getInstance('vB_Editor_QR', 'qr', 'vBForum_Post', 0, 29, '1', '2')
#3 /home/w12sdmo3osve/public_html/showthread.php(2058): construct_edit_toolbar('', 0, 4, 1, 1, false, 'qr', '', Array, 'forum', 'vBForum_Post', 0, 29)
#4 {main}

Dave 02-27-2018 04:09 PM

It's caused by one of your plugins which uses the hook "editor_construct".
We can't see which plugin it is so you have to go to your AdminCP > plugin manager > find hook "editor_construct" and see which plugin it belongs to. If it belongs to multiple plugins, disable them one by one until it works.

Once you found the plugin that causes this, post the few lines that are around line 37 and maybe we can help you fix it.

Barzor 02-27-2018 05:11 PM

Thanks Dave,

I found the plugin which causes the problem. Unfortunately its the one I really need for my business module.

I am using Hide Hack v4 which used to work just fine at my previous hosting that sucked. Now I am at godaddy I hope I can get to to work again

Dave 02-27-2018 05:17 PM

I had a look at the code, try the following:
Edit the hook of the plugin that's causing the problem, and find the following:
PHP Code:

$usergrouplist ''

Replace it with
PHP Code:

$usergrouplist = array(); 

If you don't want to do that, you can try changing PHP version to 5.4/5.5/5.6. Seems that you are using PHP 7+?

Barzor 02-27-2018 05:38 PM

Changing the code has no effect.

I can get into the thread page after I changed a setting but the threads are still empty, except for the title.
http://flevojobs.nu/showthread.php?2...Citadel-32-38u

I am using php 7.1 currently. Ill try downgrading now.. lets see

--------------- Added [DATE]1519760997[/DATE] at [TIME]1519760997[/TIME] ---------------

Thanks Dave,

You are very knowledged.

Changing the PHP version did the job

Dave 02-27-2018 06:40 PM

No problem, veel succes met je forum!


All times are GMT. The time now is 08:41 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.01030 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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