Viewing 5 replies - 1 through 5 (of 5 total)
  • Warning: Illegal string offset ‘mode’ in /home/(user)/public_html/wp-content/plugins/wp-special-textboxes/stb-block-class.php on line 386

    CentOS 6.5 x86
    suPHP
    PHP 5.4.24
    MySQL 5.5.34
    cPanel 11.40
    WP 3.8.1

    Change line 386 of stb-block-class.php to the following:

    if(is_array($block) && $block['mode'] == 'js') {

    Regards,

    Lindroidsoup

    I have problems with line numberng. Could you please tell me what is the original string?

    Carlos

    Carlos,

    The original line is as follows:

    if($block['mode'] == 'js') {

    This doesn’t seem to properly pass that it’s an array and not a string as it’s being taken- which is presumably why we’re seeing the errors.

    Replace it with:

    if(is_array($block) && $block['mode'] == 'js') {

    That might not be the cleanest way to do it, but it at least suppresses the error and allows the plugin to still function- from what I can see anyway.

    Once you’ve made the edit, restart Apache, clear any server & browser caches, and you should be all set.

    Regards,

    Lindroidsoup

    Thread Starter yakos

    (@yakos)

    The solution provided above by @lindroidsoup has worked for me. But once upgraded to version 4.5.81 I needed to select CSS in the Drawing Mode Settings before it worked for me. Mixed mode did not work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Warnings’ is closed to new replies.