This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!
Tagged: foreach()
- AuthorPosts
- February 10, 2014 at 5:39 pm #2225
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 38Warning: 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.
- February 10, 2014 at 7:28 pm #2228
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:
Need to fix this asap
- February 12, 2014 at 6:27 am #2233
Hey there, You must be logged in to view this reply!
- AuthorPosts
- You must be logged in to reply to this topic.
This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!