PDA

View Full Version : operator not supported for strings on line


Barzor
02-27-2018, 03:26 PM
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:
$usergrouplist = '';
Replace it with
$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?22-Passionate-Storemanager-Almere-Citadel-32-38u

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

--------------- Added 1519760997 at 1519760997 ---------------

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!