Support » Plugin: Seriously Simple Podcasting » PHP 7.0.14 to 7.1.1: operator not supported for strings

  • Resolved YardOBeef

    (@yardobeef)


    Upon updating PHP from 7.0.14 to 7.1.1 I get the following fatal error when attempting to activate this plugin. It previously worked with 7.0.14.

    Fatal error: Uncaught Error: [] operator not supported for strings in /plugins/seriously-simple-podcasting/includes/ssp-functions.php:311
    Stack trace: #0 /plugins/seriously-simple-podcasting/includes/class-ssp-admin.php(196): ssp_post_types(true)
    #1 /plugins/seriously-simple-podcasting/includes/class-ssp-admin.php(186): SSP_Admin->register_taxonomies()
    #2 /plugins/seriously-simple-podcasting/includes/class-ssp-admin.php(900): SSP_Admin->register_post_type()
    #3 /wp-includes/class-wp-hook.php(298): SSP_Admin->activate('')
    #4 /wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array)
    #5 /wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #6 /wp-admin/plugins.php(166): do_action('activate_ser in /plugins/seriously-simple-podcasting/includes/ssp-functions.php on line 311
Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Craig Hewitt

    (@podcastmotor)

    Thank you for bringing this to our attention. We’ll look into potential conflicts with PHP 7.1.1 and let you know when we’ve updated the plugin.

    I fixed this with a kludge and I don’t know if I used the right method but the website seems to work again so temporary victory until a new version comes out.

    This is near line 310 on ssp-functions.php

    		if ( $include_podcast ) {
                            //Added this next line...
    			$podcast_post_types = array();
    			$podcast_post_types[] = 'podcast';
    		}
    
    • This reply was modified 2 years, 2 months ago by  patrace.
    • This reply was modified 2 years, 2 months ago by  patrace.
    • This reply was modified 2 years, 2 months ago by  patrace.

    Hello I have this error since I made a migration and I do not know how to fix it. can you help me?

    Fatal error: Uncaught Error: [] operator not supported for strings in /customers/0/c/3/chicayeye.com/httpd.www/wp-content/plugins/revslider/includes/framework/base-admin.class.php:69 Stack trace: #0 /customers/0/c/3/chicayeye.com/httpd.www/wp-content/plugins/revslider/admin/revslider-admin.class.php(407): RevSliderBaseAdmin::addMetaBox(‘Revolution Slid…’, ”, Array, NULL) #1 /customers/0/c/3/chicayeye.com/httpd.www/wp-content/plugins/revslider/admin/revslider-admin.class.php(66): RevSliderAdmin->addSliderMetaBox() #2 /customers/0/c/3/chicayeye.com/httpd.www/wp-content/plugins/revslider/admin/revslider-admin.class.php(43): RevSliderAdmin->init() #3 /customers/0/c/3/chicayeye.com/httpd.www/wp-content/plugins/revslider/revslider.php(150): RevSliderAdmin->__construct(‘/customers/0/c/…’) #4 /customers/0/c/3/chicayeye.com/httpd.www/wp-admin/includes/plugin.php(1882): include(‘/customers/0/c/…’) #5 /customers/0/c/3/chicayeye.com/httpd.www/wp-admin/plugins.php(164): plugin_sandbox_scrape(‘revslider/revsl…’) #6 {main} th in /customers/0/c/3/chicayeye.com/httpd.www/wp-content/plugins/revslider/includes/framework/base-admin.class.php on line 69

    This thread is specific to the Seriously Simple Podcasting plugin. You should ask the authors of the revslider plugin for help. Since it appears to be a non-free plugin they claim to have “dedicated support” as part of the perks for the price of $25.

    • This reply was modified 2 years, 2 months ago by  YardOBeef.
    • This reply was modified 2 years, 2 months ago by  YardOBeef.

    thanks for your help

    Hi guys,

    here is the global solution:

    > https://xtemos.com/forums/topic/revolution-slider-error-crashes-admin-cp/

    revslider file = base-admin.class.php
    final after edit private static $arrMetaBoxes = array(); //option boxes that will be added to post

    • This reply was modified 2 years, 1 month ago by  JUICYDESIGN.
    Olivier Butler

    (@olivierbutler)

    Thanks @juicydesign, that’s done the trick.
    Just to make it extra clear for the non-techie. To fix the issue, you need to use an FTP client (or equivalent) to view your WordPress files on your web hosting. Open the plugins directory, usually under wp-content.

    Go to ‘revslider/includes/framework/‘ and open base-admin.class.php
    On line 21 change $arrMetaBoxes = ”; to $arrMetaBoxes = array();

    lazormish

    (@lazormish)

    Hi! Not sure if this is a “plugin/author” issue, or a WP issue or both, but I’m getting this error when I click on my Forums tab:

    Fatal error: Uncaught Error: [] operator not supported for strings in /home/sahbar5/public_html/wp-content/plugins/bbpress/includes/forums/functions.php:1800 Stack trace: #0 /home/sahbar5/public_html/wp-includes/class-wp-hook.php(298): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query)) #1 /home/sahbar5/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array) #2 /home/sahbar5/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #3 /home/sahbar5/public_html/wp-includes/class-wp-query.php(1681): do_action_ref_array(‘pre_get_posts’, Array) #4 /home/sahbar5/public_html/wp-includes/class-wp-query.php(3238): WP_Query->get_posts() #5 /home/sahbar5/public_html/wp-includes/class-wp.php(617): WP_Query->query(Array) #6 /home/sahbar5/public_html/wp-includes/class-wp.php(735): WP->query_posts() #7 /home/sahbar5/public_html/wp-includes/functions.php(955): WP->main(Array) #8 /home/sahbar5/public_html/wp-admin/includes/post.php(1072): wp(Array) #9 /home/sahbar5/public_html/wp-admin/includ in /home/sahbar5/public_html/wp-content/plugins/bbpress/includes/forums/functions.php on line 1800

    Any help would be enormously appreciated.

    Thank you!

    YardOBeef

    (@yardobeef)

    Hi! Not sure if this is a “plugin/author” issue, or a WP issue or both

    This thread is specific to the Seriously Simple Podcasting plugin (although there are several off-topic posts here). You should refer to the bbPress support forum for help regarding your issue; there are likely existing threads related to the same exact issue.

    Lukas Prelovsky

    (@lukas-prelovsky)

    Hi, when is it scheduled to release a new version supporting php 7.1?

    This issue appears to have been fixed with one of the 1.16 releases.

    Hi I moved a site with hoxa template to another pc and I have the following code errors how can i fix it?

    fatal error: Uncaught Error: [] operator not supported for strings in C:\xampp\htdocs\kosmos_sistemato\wp-content\plugins\LayerSlider\includes\slider_markup_init.php:83 Stack trace: #0 C:\xampp\htdocs\kosmos_sistemato\wp-content\plugins\LayerSlider\wp\shortcodes.php(218): include() #1 C:\xampp\htdocs\kosmos_sistemato\wp-content\plugins\LayerSlider\wp\shortcodes.php(159): LS_Shortcode::generateSliderMarkup(Array) #2 C:\xampp\htdocs\kosmos_sistemato\wp-content\plugins\LayerSlider\wp\shortcodes.php(49): LS_Shortcode::processShortcode(Array) #3 C:\xampp\htdocs\kosmos_sistemato\wp-includes\shortcodes.php(345): LS_Shortcode::handleShortcode(Array, ”, ‘layerslider’) #4 [internal function]: do_shortcode_tag(Array) #5 C:\xampp\htdocs\kosmos_sistemato\wp-includes\shortcodes.php(223): preg_replace_callback(‘/\\[(\\[?)(layers…’, ‘do_shortcode_ta…’, ‘[layerslider id…’) #6 C:\xampp\htdocs\kosmos_sistemato\wp-content\plugins\js_composer\include\templates\shortcodes\layerslider_vc.php(25): do_shortcode(‘[layerslider id…’) #7 C:\ in C:\xampp\htdocs\kosmos_sistemato\wp-content\plugins\LayerSlider\includes\slider_markup_init.php on line 83

    This thread is specific to the Seriously Simple Podcasting plugin. You should ask the authors of the LayerSlider plugin for help because they won’t see it here.

    It’s not an issue with [] we can still use that, but you have to initialize it now.

    $var1[] = $x results in error when not initialized.
    $var1 = []; $var1[] = $x does not

    So i changed the lines containing like:
    $var1[] = $x
    into
    $var1 = []; $var1[] = $x

    This apperantly does not do the trick PHP 7.1

    • This reply was modified 1 year, 5 months ago by  nguyencongkrb.

    Change line 21 in revslider/includes/framework/base-admin.class.php

    from

    private static $arrMetaBoxes = ”; //option boxes that will be added to post

    to

    private static $arrMetaBoxes = array(); //option boxes that will be added to post

    I hope it helps other people!

    Anchal

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘PHP 7.0.14 to 7.1.1: operator not supported for strings’ is closed to new replies.