Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Multiple Orders, Same order number


rustin

Recommended Posts

This wasn't happening till I installed Easy Populate

 

 

Now when an order is created everything looks fine until the Order Confirmation screen and I get this error

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in/home/bestmovi/public_html/presto/includes/functions/general.phpon line 42

 

in both the delivery address and the billing address.

 

and on Confirm two orders are created with the same order number. One adds UPS standard to the total, and another adds UPS overnight IN ADDITION to the flat rate shipping that was selected.

 

anyone have any idea what I can do to fix this?

 

Have I given enough info?

Link to comment
Share on other sites

go back over the instructions of easy populate to make sure you did it correctly. also, what version of the contribution did you install? i believe 2.73 is the latest.

Link to comment
Share on other sites

I re-read the install instructions and I'm sure I covered every step. My error doesn't show up in the troubleshooting section of th document

 

and I do have the most recent version of EP

 

I'm totally stumped

Link to comment
Share on other sites

double check settings in admin, turn off cache, look at the server access and error logs, turn on session sql logging, you may be able to see where it is crashing at.

Link to comment
Share on other sites

This is where the error message is talking about. This is lines 34-59 in catelog/includes/functions/general.php

 

////

// Parse the data used in the html tags to ensure the tags will not break

  function tep_parse_input_field_data($data, $parse) {

    return strtr(trim($data), $parse);

  }

 

  function tep_output_string($string, $translate = false, $protected = false) {

    if ($protected == true) {

      return htmlspecialchars($string);

    } else {

      if ($translate == false) {

        return tep_parse_input_field_data($string, array('"' => '"'));

      } else {

        return tep_parse_input_field_data($string, $translate);

      }

    }

  }

 

  function tep_output_string_protected($string) {

    return tep_output_string($string, false, true);

  }

 

  function tep_sanitize_string($string) {

    $string = ereg_replace(' +', ' ', trim($string));

 

    return preg_replace("/[<>]/", '_', $string);

  }

 

In comparing it looks just like the clean install version of the file.

I just don't know enough about php or SQL to know where to turn. I'm going to keep reading.

 

Thank you again for all your help. you have been awesome.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...