We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    So you think that this isn’t a bug in modx? Or should it be added to the bug tracker? Looking at the deevio’s tweaking code, he has commented this:

    // this addresses the 2nd error that comes up at the footer
    // duno if plain old exit; is the best solution but it seems to work!
    /*
    MODx encountered the following error while attempting to parse the requested resource:
    « Execution of a query to the database failed - Duplicate entry ’2147483647’ for key 1 »
    SQL: INSERT INTO `enDB`.modx_log_user_agents(id, data) VALUES(’3767326138’, ’Firefox/1.5.0.1’)
    */

    That would also seem that there is infact something fishy goin on with the visitor loggin feature. And as said, if it’s turned off, the errors disappear. I think this should be looked into.. I try to look at it my self, but I’m not no pro, just started to use MODx smiley


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      No, that’s not what I meant, there is definitely an error in there somewhere, but the "headers" error isn’t the problem, it’s only a symptom of the problem.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 7923
        • 4,213 Posts
        Sorry, little slow here.. laugh I got it now what you mean, that because of an error in the code, php tries to print out errors when the headers are allready sent.. Should this be added to the bug tracker?


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 25663 MODX Staff
          • 12,272 Posts
          Yes, please add it to the bugtracker. Thanks. smiley
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 7923
            • 4,213 Posts
            Done, #296!


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 17665
              • 54 Posts
              This may or may not be related...

              When we use FirstChildRedirect, sometimes we get this error trying to load the page:

              « MODx Parse Error »
              MODx encountered the following error while attempting to parse the requested resource:
              « Execution of a query to the database failed - Duplicate entry ’2147483647’ for key 1 »
              SQL: INSERT INTO `enDB`.modx_log_hosts(id, data) VALUES(’2976711879’, ’66.214.25.178’)
              [Copy SQL to ClipBoard]

              Parser timing
              MySQL: 0.0000 s s (0 Requests)
              PHP: 0.0597 s s
              Total: 0.0597 s s

              I’m not sure why this is... the error doesn’t even make sense since the "2147483647" value is not what is being inserted ("2976711879" is). Has anyone else had this problem using FirstChildRedirect?

              It might have something to do with the subsiteshack as well (which we LOVE. Thank you Wendy!)
                • 32241
                • 1,495 Posts
                It might have something to do with the hack. I didn’t check whether the API of sendRedirect will be compatible or not with the hack. I also need to double check the firstChildRedirect. If you can figure out the problem, please do post in the subsites hack thread.

                Thanks
                  Wendy Novianto
                  [font=Verdana]PT DJAMOER Technology Media
                  [font=Verdana]Xituz Media
                  • 17665
                  • 54 Posts
                  Thanks for your response, I’ll take a look at it tomorrow. It’s a very random thing... if I edit the page and save it, usually it goes away (but it has come back again as well). If I figure out what’s going on, I’ll definitely post there.
                    • 25663 MODX Staff
                    • 12,272 Posts
                    I wonder if this is resolved by the redirect fixes? Any more research into this issue?
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 32241
                      • 1,495 Posts
                      Quote from: rthrash at Mar 22, 2006, 08:35 AM

                      I wonder if this is resolved by the redirect fixes? Any more research into this issue?

                      I haven’t check this problem yet.
                      Let me post something in here to remind me when I have time.
                        Wendy Novianto
                        [font=Verdana]PT DJAMOER Technology Media
                        [font=Verdana]Xituz Media