nicestuff Posted July 3, 2007 Posted July 3, 2007 Hi, Ive installed dynamic sitemap v2.0 into a new install and have a couple of problems. All seems to work & display as expected except for two error messages. When sitemap is displayed in my store the error message "Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(..) is not within the allowed path(s): (/home/rdlsafet/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/rdlsafet/public_html/includes/modules/dynamic_sitemap.php on line 114" shows. Also in the Admin area for sitemap the right hand side (exclude / include catalog boxes shows this error: Catchable fatal error: Object of class box could not be converted to string in /home/rdlsafet/public_html/admin/includes/functions/html_output.php on line 281 When I comment out line 281 (below) if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]); all displays as should be. // Output a form hidden field //// // Output a form pull down menu function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) { $field = '<select name="' . tep_output_string($name) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]); for ($i=0, $n=sizeof($values); $i<$n; $i++) { $field .= '<option value="' . tep_output_string($values[$i]['id']) . '"'; if ($default == $values[$i]['id']) { $field .= ' SELECTED'; } $field .= '>' . tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>'; } $field .= '</select>'; if ($required == true) $field .= TEXT_FIELD_REQUIRED; return $field; } ?> Has anyone any suggestions on ither one?, sorry about long post but PHP virgin here & want to get it right! :'( Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.