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
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
-
☆ 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.
Sorry, little slow here..

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."
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
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!)
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
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.
-
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