Fatal error in magento 2 compilationWebsite switching in magento 1.9 without changing the default url500...

Words and Words with "ver-" Prefix

Why do neural networks need so many training examples to perform?

Does Skippy chunky peanut butter contain trans fat?

Constexpr if with a non-bool condition

How much mayhem could I cause as a sentient fish?

Why avoid shared user accounts?

Why zero tolerance on nudity in space?

Increment each digit in a number to form a new number

Can we harness gravitational potential energy?

Early credit roll before the end of the film

Why would space fleets be aligned?

Alien invasion to probe us, why?

Do authors have to be politically correct in article-writing?

Eww, those bytes are gross

How should I handle players who ignore the session zero agreement?

A curious equality of integrals involving the prime counting function?

Crontab: Ubuntu running script (noob)

Making him into a bully (how to show mild violence)

New package vs new version?

Graph with overlapping labels

Why do cars have plastic shrouds over the engine?

"on its way" vs. "in its way"

Potential client has a problematic employee I can't work with

What is the wife of a henpecked husband called?



Fatal error in magento 2 compilation


Website switching in magento 1.9 without changing the default url500 errors after patching Magento 1.9.0 with SUPEE-6285Parse syntax error when accessing CMS->Pages inside adminsetup:di:compile error because of duplicated class of data-migration-toolGet error when running php bin/magento setup:di:compileError on place order in magento 2Catalog page product not showing in magento 2.1.3Fatal error after upgrade from 2.1.8 to 2.2.0How to see all the observers currently registered?magento 2 trace payment page issue array to string conversionMagento 2.3 instalation error













2















After running compilation code



php bin/magento setup:di:compile



I'am getting the following error




Fatal error: Cannot use 'Void' as class name as it is reserved in /va
r/www/html/m2/vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/Voi
d.php on line 9



My php version is 7.0.20-2




also while placing an order I'm getting following error




An error occurred on the server. Please try to place the order again




Can any one help me to resolve this ?



Thanks..!!










share|improve this question
















bumped to the homepage by Community 19 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    2















    After running compilation code



    php bin/magento setup:di:compile



    I'am getting the following error




    Fatal error: Cannot use 'Void' as class name as it is reserved in /va
    r/www/html/m2/vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/Voi
    d.php on line 9



    My php version is 7.0.20-2




    also while placing an order I'm getting following error




    An error occurred on the server. Please try to place the order again




    Can any one help me to resolve this ?



    Thanks..!!










    share|improve this question
















    bumped to the homepage by Community 19 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      2












      2








      2


      1






      After running compilation code



      php bin/magento setup:di:compile



      I'am getting the following error




      Fatal error: Cannot use 'Void' as class name as it is reserved in /va
      r/www/html/m2/vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/Voi
      d.php on line 9



      My php version is 7.0.20-2




      also while placing an order I'm getting following error




      An error occurred on the server. Please try to place the order again




      Can any one help me to resolve this ?



      Thanks..!!










      share|improve this question
















      After running compilation code



      php bin/magento setup:di:compile



      I'am getting the following error




      Fatal error: Cannot use 'Void' as class name as it is reserved in /va
      r/www/html/m2/vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/Voi
      d.php on line 9



      My php version is 7.0.20-2




      also while placing an order I'm getting following error




      An error occurred on the server. Please try to place the order again




      Can any one help me to resolve this ?



      Thanks..!!







      error magento-2.1.3 fatal-error compilation place-order






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 5 '17 at 6:22









      Dipesh Rangani

      1,8123931




      1,8123931










      asked Jul 5 '17 at 6:10









      AmithAmith

      344415




      344415





      bumped to the homepage by Community 19 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 19 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          2 Answers
          2






          active

          oldest

          votes


















          0














          Here is how to fix it:





          1. Edit vendor/magento/module-sales/etc/webapi.xml line 112:



            - <route url="/V1/invoices/:id/void" method="POST">
            + <route url="/V1/invoices/:id/voidInvoice" method="POST">



          2. Edit vendor/magento/module-sales/Block/Adminhtml/Order/Invoice/View.php line 242:



            - return $this->getUrl('sales/*/void', ['invoice_id' => $this->getInvoice()->getId()]);
            + return $this->getUrl('sales/*/voidInvoice', ['invoice_id' => $this->getInvoice()->getId()]);



          3. Edit vendor/magento/module-sales/Block/Adminhtml/Order/Creditmemo/View.php line 183:



            - return $this->getUrl('sales/*/void', ['creditmemo_id' => $this->getCreditmemo()->getId()]);
            + return $this->getUrl('sales/*/voidCreditmemo', ['creditmemo_id' => $this->getCreditmemo()->getId()]);



          4. Edit vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/Void.php line 9:



            - class Void extends MagentoSalesControllerAdminhtmlInvoiceAbstractInvoiceView
            + class VoidInvoice extends MagentoSalesControllerAdminhtmlInvoiceAbstractInvoiceView



          5. Edit vendor/magento/module-sales/Controller/Adminhtml/Order/Creditmemo/Void.php line 10:



            - class Void extends MagentoBackendAppAction
            + class VoidCreditmemo extends MagentoBackendAppAction



          6. Rename



            vendor/magento/module-sales/Controller/Adminhtml/Order/Creditmemo/Void.php



            to



            vendor/magento/module-sales/Controller/Adminhtml/Order/Creditmemo/VoidCreditmemo.php




          7. Rename



            vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/Void.php



            to



            vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/VoidInvoice.php




          taken from https://mage2.pro/t/topic/2433/2



          Note: It is always recommended to copy files from vendor folder to app/code area and then work on them to prevent issues while upgrading Magento.






          share|improve this answer
























          • how can i create or re-write these file inside app/code can you give an example i'm little bit confused about re-writing code in vendor files. i need to rewrite this file in code folder "vendor/magento/module-sales/etc/webapi.xml"

            – Amith
            Jul 5 '17 at 7:12













          • Copy webapi.xml file from vendor/magento/module-sales/etc folder and put it under app/code/Magento_Sales/etc folder.

            – Mohit Kumar Arora
            Jul 5 '17 at 7:52











          • @ Mohit Kumar Arora so we are using "Magento_Sales " insted of "module-sales" is it?

            – Amith
            Jul 5 '17 at 8:38











          • Yes, you are right.

            – Mohit Kumar Arora
            Jul 5 '17 at 10:43











          • @ Mohit Kumar Arora do i need to make a new module for this?

            – Amith
            Jul 7 '17 at 5:15



















          0














          I think its usefull for you



          I had same problem before, that time I used php version 7.1.X, I reduced Php version 7.1.X to php 7.0.8 its works fine for me



          Magento 2.1. System requirement http://devdocs.magento.com/guides/v2.1/install-gde/system-requirements-tech.html






          share|improve this answer
























          • but my php version is 7.0.2

            – Amith
            Jul 5 '17 at 7:40











          • @Amith You mentioned php -7.0.20.

            – Rajkumar .E
            Jul 5 '17 at 8:07











          • @ Rajkumar .E ya i have alredy mentioned it but you say about php version 7.1.X,

            – Amith
            Jul 5 '17 at 8:39











          • @Amith Yes, when I got error using php 7.1.X, not php7.0.X. But I got same error before.

            – Rajkumar .E
            Jul 5 '17 at 8:44











          • .Ev in my case i have checked php version using phpinfo function and i got this my version is not 7.1 then why i get this error

            – Amith
            Jul 5 '17 at 8:48











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "479"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f182056%2ffatal-error-in-magento-2-compilation%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Here is how to fix it:





          1. Edit vendor/magento/module-sales/etc/webapi.xml line 112:



            - <route url="/V1/invoices/:id/void" method="POST">
            + <route url="/V1/invoices/:id/voidInvoice" method="POST">



          2. Edit vendor/magento/module-sales/Block/Adminhtml/Order/Invoice/View.php line 242:



            - return $this->getUrl('sales/*/void', ['invoice_id' => $this->getInvoice()->getId()]);
            + return $this->getUrl('sales/*/voidInvoice', ['invoice_id' => $this->getInvoice()->getId()]);



          3. Edit vendor/magento/module-sales/Block/Adminhtml/Order/Creditmemo/View.php line 183:



            - return $this->getUrl('sales/*/void', ['creditmemo_id' => $this->getCreditmemo()->getId()]);
            + return $this->getUrl('sales/*/voidCreditmemo', ['creditmemo_id' => $this->getCreditmemo()->getId()]);



          4. Edit vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/Void.php line 9:



            - class Void extends MagentoSalesControllerAdminhtmlInvoiceAbstractInvoiceView
            + class VoidInvoice extends MagentoSalesControllerAdminhtmlInvoiceAbstractInvoiceView



          5. Edit vendor/magento/module-sales/Controller/Adminhtml/Order/Creditmemo/Void.php line 10:



            - class Void extends MagentoBackendAppAction
            + class VoidCreditmemo extends MagentoBackendAppAction



          6. Rename



            vendor/magento/module-sales/Controller/Adminhtml/Order/Creditmemo/Void.php



            to



            vendor/magento/module-sales/Controller/Adminhtml/Order/Creditmemo/VoidCreditmemo.php




          7. Rename



            vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/Void.php



            to



            vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/VoidInvoice.php




          taken from https://mage2.pro/t/topic/2433/2



          Note: It is always recommended to copy files from vendor folder to app/code area and then work on them to prevent issues while upgrading Magento.






          share|improve this answer
























          • how can i create or re-write these file inside app/code can you give an example i'm little bit confused about re-writing code in vendor files. i need to rewrite this file in code folder "vendor/magento/module-sales/etc/webapi.xml"

            – Amith
            Jul 5 '17 at 7:12













          • Copy webapi.xml file from vendor/magento/module-sales/etc folder and put it under app/code/Magento_Sales/etc folder.

            – Mohit Kumar Arora
            Jul 5 '17 at 7:52











          • @ Mohit Kumar Arora so we are using "Magento_Sales " insted of "module-sales" is it?

            – Amith
            Jul 5 '17 at 8:38











          • Yes, you are right.

            – Mohit Kumar Arora
            Jul 5 '17 at 10:43











          • @ Mohit Kumar Arora do i need to make a new module for this?

            – Amith
            Jul 7 '17 at 5:15
















          0














          Here is how to fix it:





          1. Edit vendor/magento/module-sales/etc/webapi.xml line 112:



            - <route url="/V1/invoices/:id/void" method="POST">
            + <route url="/V1/invoices/:id/voidInvoice" method="POST">



          2. Edit vendor/magento/module-sales/Block/Adminhtml/Order/Invoice/View.php line 242:



            - return $this->getUrl('sales/*/void', ['invoice_id' => $this->getInvoice()->getId()]);
            + return $this->getUrl('sales/*/voidInvoice', ['invoice_id' => $this->getInvoice()->getId()]);



          3. Edit vendor/magento/module-sales/Block/Adminhtml/Order/Creditmemo/View.php line 183:



            - return $this->getUrl('sales/*/void', ['creditmemo_id' => $this->getCreditmemo()->getId()]);
            + return $this->getUrl('sales/*/voidCreditmemo', ['creditmemo_id' => $this->getCreditmemo()->getId()]);



          4. Edit vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/Void.php line 9:



            - class Void extends MagentoSalesControllerAdminhtmlInvoiceAbstractInvoiceView
            + class VoidInvoice extends MagentoSalesControllerAdminhtmlInvoiceAbstractInvoiceView



          5. Edit vendor/magento/module-sales/Controller/Adminhtml/Order/Creditmemo/Void.php line 10:



            - class Void extends MagentoBackendAppAction
            + class VoidCreditmemo extends MagentoBackendAppAction



          6. Rename



            vendor/magento/module-sales/Controller/Adminhtml/Order/Creditmemo/Void.php



            to



            vendor/magento/module-sales/Controller/Adminhtml/Order/Creditmemo/VoidCreditmemo.php




          7. Rename



            vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/Void.php



            to



            vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/VoidInvoice.php




          taken from https://mage2.pro/t/topic/2433/2



          Note: It is always recommended to copy files from vendor folder to app/code area and then work on them to prevent issues while upgrading Magento.






          share|improve this answer
























          • how can i create or re-write these file inside app/code can you give an example i'm little bit confused about re-writing code in vendor files. i need to rewrite this file in code folder "vendor/magento/module-sales/etc/webapi.xml"

            – Amith
            Jul 5 '17 at 7:12













          • Copy webapi.xml file from vendor/magento/module-sales/etc folder and put it under app/code/Magento_Sales/etc folder.

            – Mohit Kumar Arora
            Jul 5 '17 at 7:52











          • @ Mohit Kumar Arora so we are using "Magento_Sales " insted of "module-sales" is it?

            – Amith
            Jul 5 '17 at 8:38











          • Yes, you are right.

            – Mohit Kumar Arora
            Jul 5 '17 at 10:43











          • @ Mohit Kumar Arora do i need to make a new module for this?

            – Amith
            Jul 7 '17 at 5:15














          0












          0








          0







          Here is how to fix it:





          1. Edit vendor/magento/module-sales/etc/webapi.xml line 112:



            - <route url="/V1/invoices/:id/void" method="POST">
            + <route url="/V1/invoices/:id/voidInvoice" method="POST">



          2. Edit vendor/magento/module-sales/Block/Adminhtml/Order/Invoice/View.php line 242:



            - return $this->getUrl('sales/*/void', ['invoice_id' => $this->getInvoice()->getId()]);
            + return $this->getUrl('sales/*/voidInvoice', ['invoice_id' => $this->getInvoice()->getId()]);



          3. Edit vendor/magento/module-sales/Block/Adminhtml/Order/Creditmemo/View.php line 183:



            - return $this->getUrl('sales/*/void', ['creditmemo_id' => $this->getCreditmemo()->getId()]);
            + return $this->getUrl('sales/*/voidCreditmemo', ['creditmemo_id' => $this->getCreditmemo()->getId()]);



          4. Edit vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/Void.php line 9:



            - class Void extends MagentoSalesControllerAdminhtmlInvoiceAbstractInvoiceView
            + class VoidInvoice extends MagentoSalesControllerAdminhtmlInvoiceAbstractInvoiceView



          5. Edit vendor/magento/module-sales/Controller/Adminhtml/Order/Creditmemo/Void.php line 10:



            - class Void extends MagentoBackendAppAction
            + class VoidCreditmemo extends MagentoBackendAppAction



          6. Rename



            vendor/magento/module-sales/Controller/Adminhtml/Order/Creditmemo/Void.php



            to



            vendor/magento/module-sales/Controller/Adminhtml/Order/Creditmemo/VoidCreditmemo.php




          7. Rename



            vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/Void.php



            to



            vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/VoidInvoice.php




          taken from https://mage2.pro/t/topic/2433/2



          Note: It is always recommended to copy files from vendor folder to app/code area and then work on them to prevent issues while upgrading Magento.






          share|improve this answer













          Here is how to fix it:





          1. Edit vendor/magento/module-sales/etc/webapi.xml line 112:



            - <route url="/V1/invoices/:id/void" method="POST">
            + <route url="/V1/invoices/:id/voidInvoice" method="POST">



          2. Edit vendor/magento/module-sales/Block/Adminhtml/Order/Invoice/View.php line 242:



            - return $this->getUrl('sales/*/void', ['invoice_id' => $this->getInvoice()->getId()]);
            + return $this->getUrl('sales/*/voidInvoice', ['invoice_id' => $this->getInvoice()->getId()]);



          3. Edit vendor/magento/module-sales/Block/Adminhtml/Order/Creditmemo/View.php line 183:



            - return $this->getUrl('sales/*/void', ['creditmemo_id' => $this->getCreditmemo()->getId()]);
            + return $this->getUrl('sales/*/voidCreditmemo', ['creditmemo_id' => $this->getCreditmemo()->getId()]);



          4. Edit vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/Void.php line 9:



            - class Void extends MagentoSalesControllerAdminhtmlInvoiceAbstractInvoiceView
            + class VoidInvoice extends MagentoSalesControllerAdminhtmlInvoiceAbstractInvoiceView



          5. Edit vendor/magento/module-sales/Controller/Adminhtml/Order/Creditmemo/Void.php line 10:



            - class Void extends MagentoBackendAppAction
            + class VoidCreditmemo extends MagentoBackendAppAction



          6. Rename



            vendor/magento/module-sales/Controller/Adminhtml/Order/Creditmemo/Void.php



            to



            vendor/magento/module-sales/Controller/Adminhtml/Order/Creditmemo/VoidCreditmemo.php




          7. Rename



            vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/Void.php



            to



            vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/VoidInvoice.php




          taken from https://mage2.pro/t/topic/2433/2



          Note: It is always recommended to copy files from vendor folder to app/code area and then work on them to prevent issues while upgrading Magento.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 5 '17 at 6:16









          Mohit Kumar AroraMohit Kumar Arora

          6,56841632




          6,56841632













          • how can i create or re-write these file inside app/code can you give an example i'm little bit confused about re-writing code in vendor files. i need to rewrite this file in code folder "vendor/magento/module-sales/etc/webapi.xml"

            – Amith
            Jul 5 '17 at 7:12













          • Copy webapi.xml file from vendor/magento/module-sales/etc folder and put it under app/code/Magento_Sales/etc folder.

            – Mohit Kumar Arora
            Jul 5 '17 at 7:52











          • @ Mohit Kumar Arora so we are using "Magento_Sales " insted of "module-sales" is it?

            – Amith
            Jul 5 '17 at 8:38











          • Yes, you are right.

            – Mohit Kumar Arora
            Jul 5 '17 at 10:43











          • @ Mohit Kumar Arora do i need to make a new module for this?

            – Amith
            Jul 7 '17 at 5:15



















          • how can i create or re-write these file inside app/code can you give an example i'm little bit confused about re-writing code in vendor files. i need to rewrite this file in code folder "vendor/magento/module-sales/etc/webapi.xml"

            – Amith
            Jul 5 '17 at 7:12













          • Copy webapi.xml file from vendor/magento/module-sales/etc folder and put it under app/code/Magento_Sales/etc folder.

            – Mohit Kumar Arora
            Jul 5 '17 at 7:52











          • @ Mohit Kumar Arora so we are using "Magento_Sales " insted of "module-sales" is it?

            – Amith
            Jul 5 '17 at 8:38











          • Yes, you are right.

            – Mohit Kumar Arora
            Jul 5 '17 at 10:43











          • @ Mohit Kumar Arora do i need to make a new module for this?

            – Amith
            Jul 7 '17 at 5:15

















          how can i create or re-write these file inside app/code can you give an example i'm little bit confused about re-writing code in vendor files. i need to rewrite this file in code folder "vendor/magento/module-sales/etc/webapi.xml"

          – Amith
          Jul 5 '17 at 7:12







          how can i create or re-write these file inside app/code can you give an example i'm little bit confused about re-writing code in vendor files. i need to rewrite this file in code folder "vendor/magento/module-sales/etc/webapi.xml"

          – Amith
          Jul 5 '17 at 7:12















          Copy webapi.xml file from vendor/magento/module-sales/etc folder and put it under app/code/Magento_Sales/etc folder.

          – Mohit Kumar Arora
          Jul 5 '17 at 7:52





          Copy webapi.xml file from vendor/magento/module-sales/etc folder and put it under app/code/Magento_Sales/etc folder.

          – Mohit Kumar Arora
          Jul 5 '17 at 7:52













          @ Mohit Kumar Arora so we are using "Magento_Sales " insted of "module-sales" is it?

          – Amith
          Jul 5 '17 at 8:38





          @ Mohit Kumar Arora so we are using "Magento_Sales " insted of "module-sales" is it?

          – Amith
          Jul 5 '17 at 8:38













          Yes, you are right.

          – Mohit Kumar Arora
          Jul 5 '17 at 10:43





          Yes, you are right.

          – Mohit Kumar Arora
          Jul 5 '17 at 10:43













          @ Mohit Kumar Arora do i need to make a new module for this?

          – Amith
          Jul 7 '17 at 5:15





          @ Mohit Kumar Arora do i need to make a new module for this?

          – Amith
          Jul 7 '17 at 5:15













          0














          I think its usefull for you



          I had same problem before, that time I used php version 7.1.X, I reduced Php version 7.1.X to php 7.0.8 its works fine for me



          Magento 2.1. System requirement http://devdocs.magento.com/guides/v2.1/install-gde/system-requirements-tech.html






          share|improve this answer
























          • but my php version is 7.0.2

            – Amith
            Jul 5 '17 at 7:40











          • @Amith You mentioned php -7.0.20.

            – Rajkumar .E
            Jul 5 '17 at 8:07











          • @ Rajkumar .E ya i have alredy mentioned it but you say about php version 7.1.X,

            – Amith
            Jul 5 '17 at 8:39











          • @Amith Yes, when I got error using php 7.1.X, not php7.0.X. But I got same error before.

            – Rajkumar .E
            Jul 5 '17 at 8:44











          • .Ev in my case i have checked php version using phpinfo function and i got this my version is not 7.1 then why i get this error

            – Amith
            Jul 5 '17 at 8:48
















          0














          I think its usefull for you



          I had same problem before, that time I used php version 7.1.X, I reduced Php version 7.1.X to php 7.0.8 its works fine for me



          Magento 2.1. System requirement http://devdocs.magento.com/guides/v2.1/install-gde/system-requirements-tech.html






          share|improve this answer
























          • but my php version is 7.0.2

            – Amith
            Jul 5 '17 at 7:40











          • @Amith You mentioned php -7.0.20.

            – Rajkumar .E
            Jul 5 '17 at 8:07











          • @ Rajkumar .E ya i have alredy mentioned it but you say about php version 7.1.X,

            – Amith
            Jul 5 '17 at 8:39











          • @Amith Yes, when I got error using php 7.1.X, not php7.0.X. But I got same error before.

            – Rajkumar .E
            Jul 5 '17 at 8:44











          • .Ev in my case i have checked php version using phpinfo function and i got this my version is not 7.1 then why i get this error

            – Amith
            Jul 5 '17 at 8:48














          0












          0








          0







          I think its usefull for you



          I had same problem before, that time I used php version 7.1.X, I reduced Php version 7.1.X to php 7.0.8 its works fine for me



          Magento 2.1. System requirement http://devdocs.magento.com/guides/v2.1/install-gde/system-requirements-tech.html






          share|improve this answer













          I think its usefull for you



          I had same problem before, that time I used php version 7.1.X, I reduced Php version 7.1.X to php 7.0.8 its works fine for me



          Magento 2.1. System requirement http://devdocs.magento.com/guides/v2.1/install-gde/system-requirements-tech.html







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 5 '17 at 7:37









          Rajkumar .ERajkumar .E

          1,69551645




          1,69551645













          • but my php version is 7.0.2

            – Amith
            Jul 5 '17 at 7:40











          • @Amith You mentioned php -7.0.20.

            – Rajkumar .E
            Jul 5 '17 at 8:07











          • @ Rajkumar .E ya i have alredy mentioned it but you say about php version 7.1.X,

            – Amith
            Jul 5 '17 at 8:39











          • @Amith Yes, when I got error using php 7.1.X, not php7.0.X. But I got same error before.

            – Rajkumar .E
            Jul 5 '17 at 8:44











          • .Ev in my case i have checked php version using phpinfo function and i got this my version is not 7.1 then why i get this error

            – Amith
            Jul 5 '17 at 8:48



















          • but my php version is 7.0.2

            – Amith
            Jul 5 '17 at 7:40











          • @Amith You mentioned php -7.0.20.

            – Rajkumar .E
            Jul 5 '17 at 8:07











          • @ Rajkumar .E ya i have alredy mentioned it but you say about php version 7.1.X,

            – Amith
            Jul 5 '17 at 8:39











          • @Amith Yes, when I got error using php 7.1.X, not php7.0.X. But I got same error before.

            – Rajkumar .E
            Jul 5 '17 at 8:44











          • .Ev in my case i have checked php version using phpinfo function and i got this my version is not 7.1 then why i get this error

            – Amith
            Jul 5 '17 at 8:48

















          but my php version is 7.0.2

          – Amith
          Jul 5 '17 at 7:40





          but my php version is 7.0.2

          – Amith
          Jul 5 '17 at 7:40













          @Amith You mentioned php -7.0.20.

          – Rajkumar .E
          Jul 5 '17 at 8:07





          @Amith You mentioned php -7.0.20.

          – Rajkumar .E
          Jul 5 '17 at 8:07













          @ Rajkumar .E ya i have alredy mentioned it but you say about php version 7.1.X,

          – Amith
          Jul 5 '17 at 8:39





          @ Rajkumar .E ya i have alredy mentioned it but you say about php version 7.1.X,

          – Amith
          Jul 5 '17 at 8:39













          @Amith Yes, when I got error using php 7.1.X, not php7.0.X. But I got same error before.

          – Rajkumar .E
          Jul 5 '17 at 8:44





          @Amith Yes, when I got error using php 7.1.X, not php7.0.X. But I got same error before.

          – Rajkumar .E
          Jul 5 '17 at 8:44













          .Ev in my case i have checked php version using phpinfo function and i got this my version is not 7.1 then why i get this error

          – Amith
          Jul 5 '17 at 8:48





          .Ev in my case i have checked php version using phpinfo function and i got this my version is not 7.1 then why i get this error

          – Amith
          Jul 5 '17 at 8:48


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f182056%2ffatal-error-in-magento-2-compilation%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          迭戈·戈丁...

          A phrase ”follow into" in a context The 2019 Stack Overflow Developer Survey Results Are...

          1960s short story making fun of James Bond-style spy fiction The 2019 Stack Overflow Developer...