chrometweaks.org

How do I take off the preset navigation on "Clean Slate" Template from iPage?

Click Here To View All Answers...


First question I have is How do I take off the preset navigation on "Clean Slate" Template from iPage? Hoping for any answer. 2nd question I got is.. I get this error when I go to check out.

Fatal error: Cannot pass parameter 2 by reference in e:\home\Default\collins-entertainment.com\htdocs\checkout_shipping.php on line 132.

This is the code on that line and above it, the line in red is the 132 line.

// process the selected shipping method.

If (isset($_POST['action']) && ($_POST['action'] == 'process')) {.

If (tep_not_null($_POST['comments'])) {.

$osC_Session->set('comments', tep_db_prepare_input($_POST['comments']));.

}.

If ( (tep_count_shipping_modules() > 0) || ($free_shipping == true) ) {.

If (isset($_POST['shipping']) && strpos($_POST['shipping'], '_')) {.

$osC_Session->set('shipping', $_POST['shipping']);.

List($module, $method) = explode('_', $osC_Session->value('shipping'));.

If (is_object($$module) || ($osC_Session->value('shipping') == 'free_free')) {.

If ($osC_Session->value('shipping') == 'free_free') {.

$quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;.

$quote[0]['methods'][0]['cost'] = '0';.

} else {.

$quote = $shipping_modules->quote($method, $module);.

}.

If (isset($quote['error'])) {.

$osC_Session->remove('shipping');.

} else {.

If (isset($quote[0]['methods'][0]['title']) && isset($quote[0]['methods'][0]['cost'])) {.

$shipping = array('id' => $osC_Session->value('shipping'),.

'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module']' ('$quote[0]['methods'][0]['title']')'),.

'cost' => $quote[0]['methods'][0]['cost']);.

$osC_Session->set('shipping', $shipping);.

Tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));.

}.

}.

} else {.

$osC_Session->remove('shipping');.

}.

}.

} else {.

$osC_Session->set('shipping', false);.

Tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));.

}.

}..

Comments (48)

I would like to know the answer too. Anyone here know what is the answer to that question. I'll do some research and get back to you if I discover an anything. You should email the people at iPage as they probably could assist you..

Comment #1

I just put in my user and pass and called usps and had them switch me ot the product server..

Comment #2

I think that's my problem, I didn't realize that it has to be on the production server. Thanks!..

Comment #3

Nope.. got my email from USPS saying they switched me to production server... Now I've got it set on Production server and the userID and password are correct (copied them from the usps email) but USPS still doesn't work.... I've also tried the USPS Methods contribution, with the same results.

Of course UPS works just fine as does flat rate just not USPS....

Any ideas?..

Comment #4

I get this error when I go to check out.

Fatal error: Cannot pass parameter 2 by reference in e:\home\Default\collins-entertainment.com\htdocs\checkout_shipping.php on line 132.

This is the code on that line and above it, the line in red is the 132 line.

// process the selected shipping method.

If (isset($_POST['action']) && ($_POST['action'] == 'process')) {.

If (tep_not_null($_POST['comments'])) {.

$osC_Session->set('comments', tep_db_prepare_input($_POST['comments']));.

}.

If ( (tep_count_shipping_modules() > 0) || ($free_shipping == true) ) {.

If (isset($_POST['shipping']) && strpos($_POST['shipping'], '_')) {.

$osC_Session->set('shipping', $_POST['shipping']);.

List($module, $method) = explode('_', $osC_Session->value('shipping'));.

If (is_object($$module) || ($osC_Session->value('shipping') == 'free_free')) {.

If ($osC_Session->value('shipping') == 'free_free') {.

$quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;.

$quote[0]['methods'][0]['cost'] = '0';.

} else {.

$quote = $shipping_modules->quote($method, $module);.

}.

If (isset($quote['error'])) {.

$osC_Session->remove('shipping');.

} else {.

If (isset($quote[0]['methods'][0]['title']) && isset($quote[0]['methods'][0]['cost'])) {.

$shipping = array('id' => $osC_Session->value('shipping'),.

'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module']' ('$quote[0]['methods'][0]['title']')'),.

'cost' => $quote[0]['methods'][0]['cost']);.

$osC_Session->set('shipping', $shipping);.

Tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));.

}.

}.

} else {.

$osC_Session->remove('shipping');.

}.

}.

} else {.

$osC_Session->set('shipping', false);.

Tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));.

}.

}..

Comment #5

Never mind fixed.

But has anyone had problems with the usps modual.

An error occured with the USPS shipping calculations..

Comment #6


This question was taken from a support group/message board and re-posted here so others can learn from it.