taxjar / taxjar-magento2-extension

Magento 2 Sales Tax Extension by TaxJar
http://www.taxjar.com/guides/integrations/magento2/
Open Software License 3.0
22 stars 29 forks source link

Impossible to process constructor argument Parameter #0 #368

Open maxq opened 1 year ago

maxq commented 1 year ago

Composer - updated TaxJar

Run upgrade Error produced

Impossible to process constructor argument Parameter #0 [ Magento\Framework\HTTP\LaminasClientFactory $clientFactory ] of Taxjar\SalesTax\Model\Client class

Magento 2.4.5 Community Edition PHP 8.1

bruce-gemberling commented 12 months ago

I too experienced this same error last night. I tried installing via composer and directly through the GitHub zip file. I'm assuming that a Laminas package was removed at some point which is probably causing this. I'm just not sure what the effect would be if I were to try to put it back in.

Magento ver. 2.4.5-p1 Community Edition PHP 7.4

maxq commented 10 months ago

Why is there no support for this extension I 've had nothing but problems from it from day one.

maxq commented 10 months ago

Later versions of Magento do not use Laminas so no idea why TaxJar requires it.

vDeggial commented 10 months ago

Any fix on this would be much appreciated as our client would like to use this extension and currently cant b/c of this

vDeggial commented 10 months ago

Actually, Laminas is replacement for Zend ... Zend was removed in 2.4.6 Now, Laminas is in every 2.4 version it seems just that in 2.4.5 and 2.4.6 there is a wrapper class LaminasClient in Magento Framework HTTP folder This is the file that it complains about ...

https://github.com/magento/magento2/blob/2.4-develop/lib/internal/Magento/Framework/HTTP/LaminasClient.php which goes to /vendor/magento/framework/HTTP folder

I copied that file from 2.4.6 into 2.4.4 and it compiled just fine

I decided rather than doing that I just installed earlier 2.1.0 version of plugin which is same thing but with Zend and not Laminas as I dont really want to mess with Magento core files lol