So I am setting up the FedEx shipping and doing a test transaction and I get the following error:
Notice: Trying to get property of non-object in /home/aaquacks/public_html/store/catalog/model/shipping/fedex.php on line 178
Not sure what the issue is. Looking at that line, it looks like a blank line so guessing it's the line above it.
Also, Priority Overnight provides a estimated delivery date and time, but the FedEx Ground comes up with (Estimated Time: 31/12/1969 07:00:00 PM) .
Not sure why it's showing such an odd date. Before I changed my timezone from the default time zone, I believe the time was 01/01/1970 12:00:00AM.
Any ideas on the error and the messed up date and time?
Notice: Trying to get property of non-object in /home/aaquacks/public_html/store/catalog/model/shipping/fedex.php on line 178
Not sure what the issue is. Looking at that line, it looks like a blank line so guessing it's the line above it.
Also, Priority Overnight provides a estimated delivery date and time, but the FedEx Ground comes up with (Estimated Time: 31/12/1969 07:00:00 PM) .
Not sure why it's showing such an odd date. Before I changed my timezone from the default time zone, I believe the time was 01/01/1970 12:00:00AM.
Any ideas on the error and the messed up date and time?
In Extensions
Share this post:
Responses (10)
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Checked fedex.php and line 178 now shows something:
$title .= ' (' . $this->language->get('text_eta') . ' ' . date($this->language->get('date_format_short') . ' ' . $this->language->get('time_format'), strtotime($rate_reply_detail->getElementsByTagName('DeliveryTimestamp')->item(0)->nodeValue)) . ')';
-
Accepted Answer
Go into your settings and turn of the error reporting. This is just notices, they don't break anything.
But yes, the shipping handling needs some love, and I have already added a issue for it: https://github.com/arastta/arastta/issues/528
The Fedex module, and some others isn't made for this one page checkout, thus not perfect. -
Accepted Answer
Next, once I create an account and return to the checkout, no errors and no Fedex pricing.
* This is because the store is still set to United Kingdom so this was expected.
Changing to Canada as the country and returning to the checkout, the same error as before appears.
Notice: Trying to get property of non-object in /home/valleybee/public_html/store2/catalog/model/shipping/fedex.php on line 178
Please select the preferred shipping method.
Fedex
Priority Overnight (Estimated Time: 31/08/2016 12:00:00 PM) - $54.04
Fedex Ground (Estimated Time: 01/01/1970 12:00:00 AM) - $12.69
The error and incorrect date on Fedex ground. -
Accepted Answer
Ok so I reinstalled the website, and installed the Fedex module.
Inserted all my details into fedex module.
I wanted to run a test transaction before I got to far, so I selected one of the demo products and added it to the cart and went to checkout.
At this point I have no account so I have to create one, but immediately the Fedex shipping kicks out errors under shipping method.
Notice: Undefined index: firstname in /home/valleybee/public_html/store2/catalog/model/shipping/fedex.php on line 101Notice: Undefined index: lastname in /home/valleybee/public_html/store2/catalog/model/shipping/fedex.php on line 101Notice: Undefined index: company in /home/valleybee/public_html/store2/catalog/model/shipping/fedex.php on line 102Notice: Undefined index: address_1 in /home/valleybee/public_html/store2/catalog/model/shipping/fedex.php on line 106Notice: Undefined index: company in /home/valleybee/public_html/store2/catalog/model/shipping/fedex.php on line 117
Please select the preferred shipping method.
Fedex
ERROR
I think the shipping method should actually be ignored until an account is actually created. -
Accepted Answer
-
Accepted Answer
Rune Rasmussen wrote:
This is line 178 in /catalog/model/shipping/fedex.php:
$title .= ' (' . $this->language->get('text_eta') . ' ' . date($this->language->get('date_format_short') . ' ' . $this->language->get('time_format'), strtotime($rate_reply_detail->getElementsByTagName('DeliveryTimestamp')->item(0)->nodeValue)) . ')';
If it's blank in your install, it must be a faulty install I guess.
I also believe the error message told more ... -
Accepted Answer
This is line 178 in /catalog/model/shipping/fedex.php:
$title .= ' (' . $this->language->get('text_eta') . ' ' . date($this->language->get('date_format_short') . ' ' . $this->language->get('time_format'), strtotime($rate_reply_detail->getElementsByTagName('DeliveryTimestamp')->item(0)->nodeValue)) . ')';
If it's blank in your install, it must be a faulty install I guess.
I also believe the error message told more ...
Also check that you have cURL active on your server, among other things:https://arastta.org/docs/user-manual/tools/system-information
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »