ebizmarts / magento2-mandrill

Mandrill integration for Magento 2.
https://mandrill.com/
36 stars 36 forks source link

Fatal error on Setting production mode in Magento2.3.0 #89

Closed syedsaleem086 closed 5 years ago

syedsaleem086 commented 5 years ago

Describe the bug Compilation failed on Magento2.3.0

To Reproduce Steps to reproduce the behavior:

  1. Install Magento2.3.0
  2. Install Mandrill Extension using composer
  3. PHP7.2-FPM
  4. See error
Compilation was started.
%message% 0/7 [>---------------------------]   0% < 1 sec 68.5 MiB%message% 0/7 [>---------------------------]   0% < 1 sec 68.5 MiBProxies code generation... 0/7 [>---------------------------]   0% < 1 sec 68.5 MiB
Proxies code generation... 1/7 [====>-----------------------]  14% < 1 sec 72.5 MiB
Repositories code generation... 1/7 [====>-----------------------]  14% < 1 sec 72.5 MiBPHP Fatal error:  Cannot use Magento\Framework\Object as Object because 'Object' is a special class name in /var/www/html/saxon/releases/20190222011208/vendor/ebizmarts/magento2-mandrill/Controller/Adminhtml/Email/Test.php on line 13 [] []

Expected behavior Should complete the compilation without error

gonzaloebiz commented 5 years ago

Hi @syedsaleem086

thanks for your feedback, What version of ebizmarts/magento2-mandrill do you have? (you can run composer show | grep mandrill to know)

Best

syedsaleem086 commented 5 years ago

Hi @gonzaloebiz Please check the output of composer show | grep mandrill

ebizmarts/magento2-mandrill                                       3.3.15    Connect Mandrill with Magento
mandrill/mandrill                                                 1.0.55    API client library for the Mandrill email as a service platform

image

undert03 commented 5 years ago

getting the same and here is my out put

ubuntu@:~/magento2$ composer show | grep mandrill
ebizmarts/magento2-mandrill 3.3.15 Connect Mandrill with Magento mandrill/mandrill 1.0.55 API client library for the Mandrill email as a service platform

undert03 commented 5 years ago

as a side note i have the mailchimp module installed by you too. not sure if it's related

undert03 commented 5 years ago

Edited Test.php with your changes it it worked just fine. Thanks!