My host gave me this code to try:
<?php$ch = curl_init('https://www.howsmyssl.com/a/check');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($ch);
curl_close($ch);
$json = json_decode($data);
echo $json->tls_version;
Shows as TLS 1.2
Because SSLlabs.com shows that TLS 1.0 protocol is configured as "yes' so opencart or my server is just using 1.0 instead of using 1.1 ?
TLS 1.2 Yes
TLS 1.1 Yes
TLS 1.0 Yes
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
OpenSSL 1.0.1e-fips 11 Feb 2013
---I may be getting somewhere, I was able to update the server (just Plesk update, not sure of all the files it updated), still shows my Curl as 7.19
Did the test that ADD Creative gave me and got:
bool(true) string(0) ""
but now UPS is throwing me a code that my Access Key is invalid. So at least it's talking now.. I hope
Quite of an old OpenSSL version but the minimum requirements to connect via most of the APIs via Endpoints is OpenSSL v1.0 . This should not be an issue at this period of time.OpenSSL 1.0.1e-fips 11 Feb 2013
As indicated on my previous post, PHP and cURL are not the issue.---I may be getting somewhere, I was able to update the server (just Plesk update, not sure of all the files it updated), still shows my Curl as 7.19
The connection has been established with UPS but UPS is returning a response that the Access Key entered into the OC admin is invalid as it must be validated. Once the Access Key corrected, you should be able to obtain successful results from UPS.but now UPS is throwing me a code that my Access Key is invalid. So at least it's talking now.. I hope
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
So my version of should be okay for now?Quite of an old OpenSSL version but the minimum requirements to connect via most of the APIs via Endpoints is OpenSSL v1.0 . This should not be an issue at this period of time.
The connection has been established with UPS but UPS is returning a response that the Access Key entered into the OC admin is invalid as it must be validated. Once the Access Key corrected, you should be able to obtain successful results from UPS.
Well I double checked the access key and it is correct. Contacted UPS and they confirmed access key is valid
They are asking for a complete XML/Soap Envelope request and response ... etc
So not sure what to do now
Attached is a screen shot .. all of it working!!
So now I have to either move my current site or set it up from scratch?
Any ideas on what I should do?.. gees
Attachments
Untitled-1.jpg (70.36 KiB) Viewed 4560 times
shipping_ups_key
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I think you meant: (model and not controller on my version 2.3.0.2.)straightlight wrote: ↑Tue Feb 06, 2018 7:36 amSee from your admin/controller/extension/shipping/ups.php file and your catalog/controller/extension/shipping/ups.php file if both of the access key variables matches with this name:
shipping_ups_key
catalog/model/extension/shipping/ups.php
Any instance of UPS Key is labeled 'ups_key' and not 'shipping_ups_key'
Thanks for your post and just wanted to share what worked for me in case others have same issue.
RG
In the end it was:
Update my server with the latest patches (auto-update was off)
Use PHP 7.0 and setting the Mem Limit in PHP to 265M (2 shipping queries - ups and usps need more memory)
While still using: https://www.ups.com/ups.app/xml/Rate
And well of course have another server to test everything out and not on a production site
If in the future it craps out again, then I will know to try the new url: https://onlinetools.ups.com/ups.app/xml/Rate
I am in the process of moving my site over (from the old issues) to a new one, so starting off fresh is nice. I know it's a pain but if you don't have a lot of extensions, its a good idea. I really like version 2 and version 3 looks nice. Waiting on some extensions in the marketplace to get updated.
And thanks to:
straightlight
ADD Creative
humble1
It wouldn't be fixed without you all and I learned a lot...
Correct.I think you meant: (model and not controller on my version 2.3.0.2.)
catalog/model/extension/shipping/ups.php
Then, this would be wrong. Each extensions has their own prefix excluding the extension/extension folder. For instance, payment would have the payment_ prefix in each config / post keys of the module and the same for shipping with the prefix: shipping_ .Any instance of UPS Key is labeled 'ups_key' and not 'shipping_ups_key'
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Then, this would be wrong. Each extensions has their own prefix excluding the extension/extension folder. For instance, payment would have the payment_ prefix in each config / post keys of the module and the same for shipping with the prefix: shipping_ .Any instance of UPS Key is labeled 'ups_key' and not 'shipping_ups_key'
[/quote]
I didn't change any of the variables in the ups.php file, 'ups_key' is exactly how it comes default. It the stock UPS system.
While you may be right, there was a short period where Opencart contained invalid configuration keys which I did posted several corrections on many topics from the bug reports section of the forum about it.I didn't change any of the variables in the ups.php file, 'ups_key' is exactly how it comes default. It the stock UPS system.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I'm not getting the UPS Extension to work either. I'm looking in the ups.php file but looks like opencart made updates to the code because your fix of replacing $this->config->get('ups_ with $this->config->get('shipping_ups_ seems to have been corrected. Any ideas why my shipping rates are not appearing? Maybe you will notice something in my php file?toddsworld wrote: ↑Thu Jan 25, 2018 12:04 amGEEZZZ, I thought I tried this the other day and it didn't work, before I tore my whole site down. But Guess what? You are DA MAN! ADD Creative for making me try this again. It worked! Thank you ADD Creative and Straightlight for your assistance. Now I guess it's back to work for me
Attachments
unmodified ups.php
On the official bug reports topic about UPS I created, steps are already included during discussion on how to troubleshoot the array when posting the forms to compare those keys. Similar to this solution but use it for UPS instead: viewtopic.php?f=201&t=192113#p703773BCIadmin wrote: ↑Fri Jun 08, 2018 10:54 pmI'm not getting the UPS Extension to work either. I'm looking in the ups.php file but looks like opencart made updates to the code because your fix of replacing $this->config->get('ups_ with $this->config->get('shipping_ups_ seems to have been corrected. Any ideas why my shipping rates are not appearing? Maybe you will notice something in my php file?toddsworld wrote: ↑Thu Jan 25, 2018 12:04 amGEEZZZ, I thought I tried this the other day and it didn't work, before I tore my whole site down. But Guess what? You are DA MAN! ADD Creative for making me try this again. It worked! Thank you ADD Creative and Straightlight for your assistance. Now I guess it's back to work for me
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
When I initially setup OpenCart, I made the changes posted here, https://github.com/opencart/opencart/issues/5783, to get the UPS plugin working with no other issues. Going back to this thread, I found that changing URL fixed the new problem. Here were the changes made,
-- From --
https://www.ups.com/ups.app/xml/Rate
-- To --
https://onlinetools.ups.com/ups.app/xml/Rate
Hope this helps someone.
This is exceptionally helpful to me. Thank you!!!Ninjas-Everywhere! wrote: ↑Wed Jun 13, 2018 3:20 amSometime within the last few days, the ups.php plugin broke. I discovered it when a student tried to pay for an item in the store. They were getting the Fatal Error ...catalog/model/extension/shipping/ups.php on line 243 when trying to select a Shipping Quote.
When I initially setup OpenCart, I made the changes posted here, https://github.com/opencart/opencart/issues/5783, to get the UPS plugin working with no other issues. Going back to this thread, I found that changing URL fixed the new problem. Here were the changes made,
-- From --
https://www.ups.com/ups.app/xml/Rate
-- To --
https://onlinetools.ups.com/ups.app/xml/Rate
Hope this helps someone.
If anyone wants to insert it into a VQMOD here is what I used:
Code: Select all
<!-- This mod fixes the change UPS made -->
<file path="catalog/model/extension/shipping/ups.php">
<operation>
<search>
<![CDATA[
$url = 'https://www.ups.com/ups.app/xml/Rate';
]]></search>
<add position="replace">
<![CDATA[
$url = 'https://onlinetools.ups.com/ups.app/xml/Rate';
]]>
</add>
</operation>
</file>
<!-- This mod fixes the change UPS made -->
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 12 guests