Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help Needed On Error Message Dynamin Sitemap V2.0


Recommended Posts

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! :'(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...