Responsive WordPress Theme – Caliber

A theme with simple controls and limitless potential. Work fast and build an amazing website!   Find out more »

UpThemes – Beautiful WordPress Themes

Create a site your church, gallery, newspaper, blog, recipes, band and more!   See the themes »

Need a little help?  Find answers quickly by searching the forum.
Group Admins
  • jeffw
  • andy

Support for: Mingle – Multi-purpose WordPress Theme

Mingle (WordPress)

Public Group  |  active 6 months, 3 weeks ago ago
Viewing post 1 to 5 (5 total posts)

Pricing tables error with PHP v7.2

  • tgp0916

    said

    Hello,

    We upgraded to PHP 7.2 and our pricing page wouldn’t load. I was told to send this information:

    [10:06 PM] Christian
    I added the is_string check
    ​[10:06 PM] Christian
    You can send that to them and they can make a proper fix

    // Single Column
    //...............................................
    function shortcode_pricing_column( $atts, $content = null ) {
      global $shortcode_pricing_table;
      if(is_string($shortcode_pricing_table)){
        $shortcode_pricing_table = array();
      }
      extract(shortcode_atts(array(
        'title' => '',
        'highlight' => 'false'
        ), $atts));
      $highlight = strtolower($highlight);
      
      // get elements
      $column['title'] = $title;
      $column['highlight'] = ( $highlight == 'true' || $highlight == 'yes' || $highlight == '1' ) ? true : false;
      $column['content'] = do_shortcode($content);
      
      $shortcode_pricing_table[] = $column;
      //return $shortcode_pricing_table;
      
    }
  • jeffw

    said

    Thanks for letting us know. We’ll look into it.

  • tgp0916

    said

    Thanks jeffw. I was going to ask if we could safely upgrade to PHP 7.3 but that probably needs to be tested. Please let me know!

  • jeffw

    said

    I’ve been using Mingle with PHP v7.3.1 and I’ve not come across any issues so far.

Viewing post 1 to 5 (5 total posts)