Mage sales order ::loadByIncrementId does not load orderDownloading order details through Mage::getModel('sales/order')Sales > Order 'Processing' statusGet Sales Order attributes collectionnew order does not get createdCustomer not getting logged in after updating catalog price rulelayout xml does not loadMagento Ordered Products linked to Catalog ID?Button print order does not showSOLVED Magento 1.9 cannot place order “Some transactions have not been committed or rolled back”Css and Js file does not load

Was the old ablative pronoun "med" or "mēd"?

How do I exit BASH while loop using modulus operator?

What exactly is ineptocracy?

How badly should I try to prevent a user from XSSing themselves?

What is the opposite of "eschatology"?

Avoiding the "not like other girls" trope?

Finitely generated matrix groups whose eigenvalues are all algebraic

Processor speed limited at 0.4 Ghz

GFCI outlets - can they be repaired? Are they really needed at the end of a circuit?

Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?

Description list Formatting using enumitem

Is it "common practice in Fourier transform spectroscopy to multiply the measured interferogram by an apodizing function"? If so, why?

How could indestructible materials be used in power generation?

Why was the shrink from 8″ made only to 5.25″ and not smaller (4″ or less)

OP Amp not amplifying audio signal

Notepad++ delete until colon for every line with replace all

How exploitable/balanced is this homebrew spell: Spell Permanency?

Is there a hemisphere-neutral way of specifying a season?

How can saying a song's name be a copyright violation?

What is the most common color to indicate the input-field is disabled?

Does the Cone of Cold spell freeze water?

How do conventional missiles fly?

Knowledge-based authentication using Domain-driven Design in C#

Using "tail" to follow a file without displaying the most recent lines



Mage sales order ::loadByIncrementId does not load order


Downloading order details through Mage::getModel('sales/order')Sales > Order 'Processing' statusGet Sales Order attributes collectionnew order does not get createdCustomer not getting logged in after updating catalog price rulelayout xml does not loadMagento Ordered Products linked to Catalog ID?Button print order does not showSOLVED Magento 1.9 cannot place order “Some transactions have not been committed or rolled back”Css and Js file does not load













1















What could go wrong if i load an order like:



// $val gets its value from controller (content type json utf8)
// json decoded file_get_contents('php://input')
// then a anonymous function gets $val and loads an order:
$val = trim((string)$val);
$order = Mage::getModel('sales/order')->loadByIncrementId($val);


$val is an inrement id like 5000001.



Weird think is: some ids work, some not. But those who dont work exists.



What could go wrong by loading an order by model sales/order ?



EDIT



It was a ZERO WITH SPACE in the order increment id - see http://www.fileformat.info/info/unicode/char/200b/index.htm










share|improve this question
















bumped to the homepage by Community 2 days ago


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



















    1















    What could go wrong if i load an order like:



    // $val gets its value from controller (content type json utf8)
    // json decoded file_get_contents('php://input')
    // then a anonymous function gets $val and loads an order:
    $val = trim((string)$val);
    $order = Mage::getModel('sales/order')->loadByIncrementId($val);


    $val is an inrement id like 5000001.



    Weird think is: some ids work, some not. But those who dont work exists.



    What could go wrong by loading an order by model sales/order ?



    EDIT



    It was a ZERO WITH SPACE in the order increment id - see http://www.fileformat.info/info/unicode/char/200b/index.htm










    share|improve this question
















    bumped to the homepage by Community 2 days ago


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

















      1












      1








      1








      What could go wrong if i load an order like:



      // $val gets its value from controller (content type json utf8)
      // json decoded file_get_contents('php://input')
      // then a anonymous function gets $val and loads an order:
      $val = trim((string)$val);
      $order = Mage::getModel('sales/order')->loadByIncrementId($val);


      $val is an inrement id like 5000001.



      Weird think is: some ids work, some not. But those who dont work exists.



      What could go wrong by loading an order by model sales/order ?



      EDIT



      It was a ZERO WITH SPACE in the order increment id - see http://www.fileformat.info/info/unicode/char/200b/index.htm










      share|improve this question
















      What could go wrong if i load an order like:



      // $val gets its value from controller (content type json utf8)
      // json decoded file_get_contents('php://input')
      // then a anonymous function gets $val and loads an order:
      $val = trim((string)$val);
      $order = Mage::getModel('sales/order')->loadByIncrementId($val);


      $val is an inrement id like 5000001.



      Weird think is: some ids work, some not. But those who dont work exists.



      What could go wrong by loading an order by model sales/order ?



      EDIT



      It was a ZERO WITH SPACE in the order increment id - see http://www.fileformat.info/info/unicode/char/200b/index.htm







      magento-1.9 orders






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 13 '16 at 10:21







      cottton

















      asked Apr 11 '16 at 21:35









      cotttoncottton

      1737




      1737





      bumped to the homepage by Community 2 days 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 2 days ago


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






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I can advice to enable Magento logs and check if some logs will appear at var/log/ folder.



          If not - you can also try to debug loading process at Mage_Core_Model_Resource_Db_Abstract:



          Find function



          public function load(Mage_Core_Model_Abstract $object, $value, $field = null)


          and try to put



          echo $select->__toString(); 


          after



          $select = $this->_getLoadSelect($field, $value, $object);


          then you should see mysql query which executed to load your order. Try to apply this query directly to database to see what's wrong with it






          share|improve this answer























            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%2f110441%2fmage-sales-order-loadbyincrementid-does-not-load-order%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I can advice to enable Magento logs and check if some logs will appear at var/log/ folder.



            If not - you can also try to debug loading process at Mage_Core_Model_Resource_Db_Abstract:



            Find function



            public function load(Mage_Core_Model_Abstract $object, $value, $field = null)


            and try to put



            echo $select->__toString(); 


            after



            $select = $this->_getLoadSelect($field, $value, $object);


            then you should see mysql query which executed to load your order. Try to apply this query directly to database to see what's wrong with it






            share|improve this answer



























              0














              I can advice to enable Magento logs and check if some logs will appear at var/log/ folder.



              If not - you can also try to debug loading process at Mage_Core_Model_Resource_Db_Abstract:



              Find function



              public function load(Mage_Core_Model_Abstract $object, $value, $field = null)


              and try to put



              echo $select->__toString(); 


              after



              $select = $this->_getLoadSelect($field, $value, $object);


              then you should see mysql query which executed to load your order. Try to apply this query directly to database to see what's wrong with it






              share|improve this answer

























                0












                0








                0







                I can advice to enable Magento logs and check if some logs will appear at var/log/ folder.



                If not - you can also try to debug loading process at Mage_Core_Model_Resource_Db_Abstract:



                Find function



                public function load(Mage_Core_Model_Abstract $object, $value, $field = null)


                and try to put



                echo $select->__toString(); 


                after



                $select = $this->_getLoadSelect($field, $value, $object);


                then you should see mysql query which executed to load your order. Try to apply this query directly to database to see what's wrong with it






                share|improve this answer













                I can advice to enable Magento logs and check if some logs will appear at var/log/ folder.



                If not - you can also try to debug loading process at Mage_Core_Model_Resource_Db_Abstract:



                Find function



                public function load(Mage_Core_Model_Abstract $object, $value, $field = null)


                and try to put



                echo $select->__toString(); 


                after



                $select = $this->_getLoadSelect($field, $value, $object);


                then you should see mysql query which executed to load your order. Try to apply this query directly to database to see what's wrong with it







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 11 '16 at 21:43









                Neklo.comNeklo.com

                2,2891518




                2,2891518



























                    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%2f110441%2fmage-sales-order-loadbyincrementid-does-not-load-order%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

                    Sum ergo cogito? 1 nng

                    419 nièngy_Soadمي 19bal1.5o_g

                    Queiggey Chernihivv 9NnOo i Zw X QqKk LpB