Closed nickpiro closed 2 years ago
Hello @nickpiro please try the following command: composer require laminas/laminas-http:2.10.0
Thanks!
Hi @ibraheemnabeelfauzi this worked for us. Now we're just experiencing a new error when attempting to sync with SHQ. I've seen laminas mentioned when I looked up the error. I wonder if it has to do with downgrading? If it may cause issues in other areas.
@nickpiro what's the error? Please drop in a ticket at support@shipperhq.com with all relevant details.
@ibraheemnabeelfauzi
500 responses when trying to synchronize with ShipperHQ, and the following entries appear to be associated:
[02-May-2022 20:11:54 UTC] PHP Fatal error: Cannot declare class Zend_Http_Client_Adapter_Socket, because the name is already in use in /chroot/home/domain/domain.com/html/vendor/magento/zendframework1/library/Zend/Http/Client/Adapter/Socket.php on line 47 02/May/2022:16:11:53 -0400 GET domain.com /home/domain/domain.com/html/index.php pid:23983 took:0.494s mem:18mb cpu:58.69% status:500 {172.58.203.100} 172.58.203.100 172.58.203.100 - [02/May/2022:16:11:53 -0400] "GET /admin/shipperhq/synchronize/synchronize/ HTTP/1.1" 500 - "https://domain.com/admin/shipperhq/synchronize/" "Mozilla/5.0 (Macintosh;Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
@nickpiro
What version of PHP/Magento, ShipperHQ extension are you running?
Thank you @nickpiro
What changes were made prior to you seeing that error? Did you upgrade the extension or were there any other changes?
Also, can you try to switch to PHP7.4 and perform the sync and see if you run into the same issue?
We're unable to switch to 7.4 on Magento 2.3.7 I believe because all of our modules to not fully work with that version. I can test it on our dev environment first.
No other changes other than the installation guideline you mentioned earlier in this ticket.
We're running Redis, Varnish, we upgraded to 2.3.7 and upgraded SHQ along with it.
Thanks @nickpiro I strongly suggest doing so on dev as from looking at that exception it's likely caused by PHP incompatibility. Also, what other modules don't work on PHP 7.4?
So this version isn't compatible with 7.3?
For the most part yes, as we've made changes to ensure comptability with M2.4 and higher which works with 7.4 and up. What version of the extension were you on?
We were on a pretty old version. Apparently the sync resolved itself, because it's no longer happening. Our server company was updating HAproxy for us, we were on an old version. When they did that, something may have happened that fixed it? I'm not sure. But I'd say the sync is no longer an issue on our end.
Module was causing an issue so I uninstalled (Composer Remove) then reinstalled and receive this error: Problem 1