Quote: Warning: Invalid argument supplied for foreach() in /var/www/web10/html/getsimple/plugins/i18n_base/frontend.class.php(127) : eval()'d code on line 4GS: 3.2.
I18N version: 3.0.5
URL of errorpage: http://www.get-simple.de/editor/
DEBUG brings no error related to this
this happens when using this component:
{% auszuege-subseiten %}
which contains:
PHP Code:
<?php
$subpages = return_i18n_menu_data(return_page_slug(), 2, 2, I18N_SHOW_NORMAL);
foreach ($subpages as $slugexcerpt) {
echo '<h2>'.$slugexcerpt['title'].'</h2>';
echo page_excerpt(''.$slugexcerpt['url'].'',200);
}
?>
I have a similar component, which brings no error-message:
PHP Code:
<?php
$subpages = return_i18n_menu_data(return_page_slug(), 1,1, I18N_SHOW_NORMAL);
foreach ($subpages as $slugexcerpt) {
echo '<h2>'.$slugexcerpt['title'].'</h2>';
echo page_excerpt(''.$slugexcerpt['url'].'',200);
}
?>
|--
Das deutschsprachige GetSimple-(Unter-)Forum: http://get-simple.info/forums/forumdisplay.php?fid=18
Das deutschsprachige GetSimple-(Unter-)Forum: http://get-simple.info/forums/forumdisplay.php?fid=18