The error log is showing
2017-09-28 14:57:28 - PHP Warning: in_array() expects parameter 2 to be array, null given in /.../.../.../catalog/model/extension/shipping/fedex.php on line 180
I'm guessing this is because my shipping service selections aren't being saved. Anyone have a suggestion on how to fix this?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I went back to check the code in the line error and this is where it's happening. Looks like I'm having an issue with my zones I guess. I'm pretty sure I have everything selected as I should, but I'm going to run back through to see if I can find anything I missed.
Code: Select all
if (in_array($country_info['iso_code_2'], array('US', 'CA'))) {
$xml .= ' <ns1:StateOrProvinceCode>' . ($zone_info ? $zone_info['code'] : '') . '</ns1:StateOrProvinceCode>';
} else {
$xml .= ' <ns1:StateOrProvinceCode></ns1:StateOrProvinceCode>';
}
1 - Take a screenshot of your admin fedex shipping settings.
2 - If using a production store, put your site under maintenance. Then, uninstall the fedex shipping module.
3 - In your admin/view/template/extension/shipping/fedex.twig file, find:
Code: Select all
<input type="checkbox" name="fedex_service[]" value="{{ service.value }}" checked="checked" />
{{ service.text }}
{% else %}
<input type="checkbox" name="fedex_service[]" value="{{ service.value }}" />
Code: Select all
<input type="checkbox" name="shipping_fedex_service[]" value="{{ service.value }}" checked="checked" />
{{ service.text }}
{% else %}
<input type="checkbox" name="shipping_fedex_service[]" value="{{ service.value }}" />
5 - Log out from the admin.
6 - Clear the Opencart cache and browsing cache. Close the browser, re-open and see if the settings are saved into the admin shipping settings page this time and see if the error still persists on the checkout-end.
7 - Disable maintenance mode.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Oh, I also had to update the FedEx urls too.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
test url: https://wsbeta.fedex.com:443/web-services
production url: https://ws.fedex.com:443/web-services
find:
Code: Select all
if (!$this->config->get('shipping_fedex_test')) {
$url = 'https://gateway.fedex.com/web-services/';
} else {
$url = 'https://gatewaybeta.fedex.com/web-services/';
}
Code: Select all
if (!$this->config->get('shipping_fedex_test')) {
$url = 'https://ws.fedex.com:443/web-services/';
} else {
$url = 'https://wsbeta.fedex.com:443/web-services/';
}
@jdahlstrom68 thanks for reporting the issue.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I dont know why, it doesnt allow my to select the services and it shows RED ERROR in front end
and i get these error:
Warning: in_array() expects parameter 2 to be array, null given in /home1/ab41425/public_html/farsticket.com/open/catalog/model/extension/shipping/fedex.php on line 180Warning: in_array() expects parameter 2 to be array, null given in /home1/ab41425/public_html/farsticket.com/open/catalog/model/extension/shipping/fedex.php on line 180Warning: in_array() expects parameter 2 to be array, null given in /home1/ab41425/public_html/farsticket.com/open/catalog/model/extension/shipping/fedex.php on line 180Warning: in_array() expects parameter 2 to be array, null given in /home1/ab41425/public_html/farsticket.com/open/catalog/model/extension/shipping/fedex.php on line 180Warning: in_array() expects parameter 2 to be array, null given in /home1/ab41425/public_html/farsticket.com/open/catalog/model/extension/shipping/fedex.php on line 180Warning: in_array() expects parameter 2 to be array, null given in /home1/ab41425/public_html/farsticket.com/open/catalog/model/extension/shipping/fedex.php on line 180Warning: in_array() expects parameter 2 to be array, null given in /home1/ab41425/public_html/farsticket.com/open/catalog/model/extension/shipping/fedex.php on line 180
please help me
i use version 3.0.2.0
straightlight wrote: ↑Fri Sep 29, 2017 3:01 amFor users encountering issues with the URL in the future, in your catalog/model/extension/shipping/fedex.php file,
find:
replace with:Code: Select all
if (!$this->config->get('shipping_fedex_test')) { $url = 'https://gateway.fedex.com/web-services/'; } else { $url = 'https://gatewaybeta.fedex.com/web-services/'; }
This should resolved the problem.Code: Select all
if (!$this->config->get('shipping_fedex_test')) { $url = 'https://ws.fedex.com:443/web-services/'; } else { $url = 'https://wsbeta.fedex.com:443/web-services/'; }
@jdahlstrom68 thanks for reporting the issue.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
links are changed to ws.fedex and wsbeta.fedex but yet not working could the issue be with fedex self?misterzorik wrote: ↑Fri Jan 26, 2018 4:59 pmI did the both steps but yet the services are not getting saved
and i get these error:
Warning: in_array() expects parameter 2 to be array, null given in /home1/ab41425/public_html/farsticket.com/open/catalog/model/extension/shipping/fedex.php on line 180Warning: in_array() expects parameter 2 to be array, null given in /home1/ab41425/public_html/farsticket.com/open/catalog/model/extension/shipping/fedex.php on line 180Warning: in_array() expects parameter 2 to be array, null given in /home1/ab41425/public_html/farsticket.com/open/catalog/model/extension/shipping/fedex.php on line 180Warning: in_array() expects parameter 2 to be array, null given in /home1/ab41425/public_html/farsticket.com/open/catalog/model/extension/shipping/fedex.php on line 180Warning: in_array() expects parameter 2 to be array, null given in /home1/ab41425/public_html/farsticket.com/open/catalog/model/extension/shipping/fedex.php on line 180Warning: in_array() expects parameter 2 to be array, null given in /home1/ab41425/public_html/farsticket.com/open/catalog/model/extension/shipping/fedex.php on line 180Warning: in_array() expects parameter 2 to be array, null given in /home1/ab41425/public_html/farsticket.com/open/catalog/model/extension/shipping/fedex.php on line 180
please help me
i use version 3.0.2.0
straightlight wrote: ↑Fri Sep 29, 2017 3:01 amFor users encountering issues with the URL in the future, in your catalog/model/extension/shipping/fedex.php file,
find:
replace with:Code: Select all
if (!$this->config->get('shipping_fedex_test')) { $url = 'https://gateway.fedex.com/web-services/'; } else { $url = 'https://gatewaybeta.fedex.com/web-services/'; }
This should resolved the problem.Code: Select all
if (!$this->config->get('shipping_fedex_test')) { $url = 'https://ws.fedex.com:443/web-services/'; } else { $url = 'https://wsbeta.fedex.com:443/web-services/'; }
@jdahlstrom68 thanks for reporting the issue.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I did install a complete new installation of opencart v3.0.0.0 with new database and all
I did go through all the steps mentioned in this topic. I was able to save the shipping service values.
I did change the server links of fedex to the new ones said in this topic too.
But after all i still do get the error (Just simple ERROR word in RED letters).
Can you guys please help me?
my link is: http://glow-ball.com/v300/
try to order the iphone only as i have only set size and weight you can find it with this link:
http://glow-ball.com/v300/index.php?rou ... duct_id=40
This is how I get the error:
Please select the preferred shipping method to use on this order.
Flat Rate
Flat Shipping Rate - $5.00
Fedex
ERROR
Can you guys help me fix this error?
Is anyone willing to help me? I can give access to FTP and admin panel if needed.
I logged into your link, i find your issues on fedex shipping are resolved. Can you please help me. I am using opencart 3.0.2.0misterzorik wrote: ↑Tue Jan 30, 2018 6:37 amDear Opencart Members,
I did install a complete new installation of opencart v3.0.0.0 with new database and all
I did go through all the steps mentioned in this topic. I was able to save the shipping service values.
I did change the server links of fedex to the new ones said in this topic too.
But after all i still do get the error (Just simple ERROR word in RED letters).
Can you guys please help me?
my link is: http://glow-ball.com/v300/
try to order the iphone only as i have only set size and weight you can find it with this link:
http://glow-ball.com/v300/index.php?rou ... duct_id=40
This is how I get the error:
Please select the preferred shipping method to use on this order.
Flat Rate
Flat Shipping Rate - $5.00
Fedex
ERROR
Can you guys help me fix this error?
Is anyone willing to help me? I can give access to FTP and admin panel if needed.
Please find the attachments.
Attachments
fedex-resolved.png (35.58 KiB) Viewed 12767 times
fedex-error.png (44.55 KiB) Viewed 12767 times
Yes I can help you. Now I know everything from FEDEX issue as i spent a week time for this.bala wrote: ↑Wed Feb 07, 2018 2:58 pmI logged into your link, i find your issues on fedex shipping are resolved. Can you please help me. I am using opencart 3.0.2.0misterzorik wrote: ↑Tue Jan 30, 2018 6:37 amDear Opencart Members,
I did install a complete new installation of opencart v3.0.0.0 with new database and all
I did go through all the steps mentioned in this topic. I was able to save the shipping service values.
I did change the server links of fedex to the new ones said in this topic too.
But after all i still do get the error (Just simple ERROR word in RED letters).
Can you guys please help me?
my link is: http://glow-ball.com/v300/
try to order the iphone only as i have only set size and weight you can find it with this link:
http://glow-ball.com/v300/index.php?rou ... duct_id=40
This is how I get the error:
Please select the preferred shipping method to use on this order.
Flat Rate
Flat Shipping Rate - $5.00
Fedex
ERROR
Can you guys help me fix this error?
Is anyone willing to help me? I can give access to FTP and admin panel if needed.
Please find the attachments.
tell me what is your problem and i will help you
1. to get Production key in Fedex Account, I was not able to proceed and complete my last step of Fedex Registration.
2. Fedex option shows me "ERROR" red color in shipping module.
3. Please find the attachments for your understanding.
Attachments
fedex-error.png (44.55 KiB) Viewed 12676 times
Which country are you from?
which version do you use?
you must complete registeration with FEDEX otherwise it wont work!!!!
I am looking for Fedex Account with California details.
At my last step of registration, it shows me that the account details does not the records.
Unable to get the production key because of that issue.
Please help me.
That is an issue for fedex not OC.bala wrote: ↑Thu Feb 15, 2018 8:15 pmI am a developer from India but my client is from California.
I am looking for Fedex Account with California details.
At my last step of registration, it shows me that the account details does not the records.
Unable to get the production key because of that issue.
Please help me.
please contact them. they have a very good email support system. they answer within 24 hours.
Users browsing this forum: No registered users and 177 guests