Invalid argument supplied for foreach() in two theme files

This topic is: Not resolved

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  Max 2 years, 9 months ago.

  • Author
    Posts
  • #2225

    bluefoot
    Member
    Post count: 1

    Hi,

    We purchased the creatiz theme, and the configuration of the pages it was all ok. After importing custom fonts, these two erros appeared but only in the home, not in the other pages that were created:
     
    Warning: Invalid argument supplied for foreach() in /home/bluefoot/www/2014/wp-content/themes/creatiz/functions/theme-content-generator.php on line 38

    Warning: Invalid argument supplied for foreach() in /home/bluefoot/www/2014/wp-content/themes/creatiz/functions/theme-interface.php on line 489

    I tried to delete the theme and install again but it didn’t worked, even reset the theme configuration with the default fonts before reinstall the theme. And I looked into older forum posts, and i found some with the same problem that is happening to me, but the code in the lines is different in mine.

    The code of the theme is:

    /theme-content-generator.php

    if($page_meta_data){
    $page_section_id = 0;
    $html = ”;
    > LINE 38 foreach($page_meta_data as $kmeta => $v) {
    //General key
    $columnType = isset($v[‘data_column_type’]) ? $v[‘data_column_type’] : ”;
    $columnInfo = isset($v[‘data_column_info’]) ? $v[‘data_column_info’] : ”;
    $columnName = isset($v[‘data_column_name’]) ? $v[‘data_column_name’] : ”;
    $columnAnimation = isset($v[‘data_column_animation’]) ? $v[‘data_column_animation’] : ‘off’;

    /theme-interface.php

    if($page_meta_data){
    if(!is_array($page_meta_data) && mdf_is_json($page_meta_data)){
    $page_meta_data = stripslashes_deep( json_decode( $page_meta_data, true ) );
    }
    $page_section_id = 0;
    //print_r($page_meta_data);
    > LINE 489 foreach($page_meta_data as $kmeta => $v) {
    $columnType = isset($v[‘data_column_type’]) ? $v[‘data_column_type’] : ”;
    $columnName = isset($v[‘data_column_name’]) ? $v[‘data_column_name’] : ”;
    if($columnType === ‘Page Section’){
    $scrollspy_menu[‘page-section-‘ . $page_section_id] =  $columnName;
    $page_section_id++;
    }
    }
    }

    return $scrollspy_menu;

    }
    }

    ————————————————————————————————————————————-

    The image attached is the home screen with the following problems above.

    The url that the wordpress is installed is http://bluefoot.com.br/2014/

    I would like to know how to solve this issue.

    Waiting a reply,

    Thanks.

  • #2228

    bluefoot
    Member
    Post count: 1

    I’ve tried to reinstall the wordpress and the theme again in a new directory, it was ok, but while I was setting up the home page it crashed again:

    http://bluefoot.com.br/new/

    Need to fix this asap

  • #2233

    Max
    Staff
    Post count: 3150

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!