We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28003
    • 2 Posts
    Hello guys,

    I’ve been trying to install the 0.9.5 beta 3 (rev 1491). When the installation is done, and when I try to login to ModX Manager, I get this error (all the installation proccess goes pretty well actually):

    error replacing into active users! SQL: REPLACE INTO `modx`.modx_active_users (internalKey, username, lasthit, action, id, ip) values(’1’, ’admin’, ’1158957757’, ’’, ’’,

    My test environment is a Windows XP SP2 box with Apache 2.0.58, and MySQL 5.0 both working well.

    Also, if I leave FX opened in the modx/manager/ URI, another error pop-ups:

    Fatal error: Maximum execution time of 30 seconds exceeded in C:\Documents and Settings\Administrator\My Documents\www\modx\manager\includes\document.parser.class.inc.php on line 1269

    Any clues on this one?

    (btw, it’s my first post here, I didn’t find a forum on betas, please feel free to move this thread to whatever it suits).
      • 4041
      • 788 Posts
      check here and try some of these solutions -

      http://www.google.com/search?hl=en&lr=&q=site%3Amodxcms.com+error+replacing+into+active+users&btnG=Search
        xforum
        http://frsbuilders.net (under construction) forum for evolution
        • 28003
        • 2 Posts
        Yeah! Works like a charm. What I did in manager/includes/accesscontrol.inc.php (as in: http://modxcms.com/forums/index.php/topic,2019.msg14613.html#msg14613).

        $itemid = isset($_REQUEST['id']) ? $_REQUEST['id'] : 'NULL';


        Add single quotes around NULL and it will work smiley

        Thanks!

        (btw, I’m seeing MODx withouth styles, but I think that’s an issue on my Apache configuration)
          • 6726
          • 7,075 Posts
          Unless I slept through it, beta 3 is not out wink (don’t see any announcement here...)

          I assume you got this build from public SVN, didn’t you ?
          Remember SVN builds are not as stable as releases...
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l'outil id
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Latest from SVN trunk this morning, beta 3 rev 1494 - no problems here. Really nice manager template, too!
              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
              • 17544
              • 86 Posts
              Is this really the official ’beta 3’?
                • 22303 MODX Staff
                • 10,725 Posts
                Quote from: lovingmodx at Sep 23, 2006, 09:41 AM

                Is this really the official ’beta 3’?
                There is no official beta 3, no. But the latest is always available from SVN for discussion, and it is currently labeled Beta 3.
                  • 17544
                  • 86 Posts
                  haha. get it now. laugh
                    • 7904
                    • 15 Posts
                    I just took the svn modx for a spin and found out a couple mysql quirks that may be causing some problems MySQL Server 5.0.22 on XP Pro with IIS, Fedora Core 5 with Apache have different behaviour in a couple places.

                    I’m using side-by-side development computers using eclipse 3.1 and phpeclipse for an ide. I tested the mysql statements using the mysql command line program only, so modx and the webserver environment shouldn’t be a factor.

                    Inserting into a NOT NULL column with no default value:
                    -------------------------------------------------------

                    CREATE TABLE test1 (id int(10) NOT NULL, stuff VARCHAR(32));
                     INSERT INTO test1 (stuff) VALUES ('some stuff');


                    W32 Mysql returns "ERROR 1364 (HY000): field ’id’ doesn’t have a default value" and doesn’t insert the row
                    linux mysql happily "makes up" a default value of 0, inserts the row, and doesn’t error out.

                    Running the latest SVN modx installer against the w32 mysql on W32 fails, the results screen gets down part way then quits with a message about some missing default (sorry, I didn’t write it down). Modx installs fine on the fedora box, and running the installer from the windows computer against the linux mysql server also installs fine.


                    Inserting a value with the wrong datatype in the sql string:
                    ------------------------------------------------------------

                    In putzing around, I also got this error message on w32 in the manager area

                    error replacing into active users! SQL: REPLACE INTO `dougsdb`.modx2_active_users (internalKey, username, lasthit, action, id, ip) values(’1’, ’admin’, ’1159287384’, ’’, ’’, ’UNKNOWN’)

                    This lead to another mysql difference:

                    CREATE TABLE test1 (id int(10) NOT NULL, stuff VARCHAR(32), id2 int(10) DEFAULT NULL);
                     INSERT INTO test1 (id, stuff, id2) VALUES (0, 'some stuff', '');


                    w32 mysql returns "ERROR 1264 (22003): Out of range value adjusted for column ’id2’ at row 1", and the insert failed.
                    linux mysql happily inserts the row and makes up 0 for the value of id2.

                    I didn’t actually test REPLACE INTO but I’ll bet it behaves the same as insert.
                      ======
                      Doug G
                      ======
                      • 22303 MODX Staff
                      • 10,725 Posts
                      Quote from: Doug at Sep 26, 2006, 12:11 PM

                      I just took the svn modx for a spin and found out a couple mysql quirks that may be causing some problems MySQL Server 5.0.22 on XP Pro with IIS, Fedora Core 5 with Apache have different behaviour in a couple places.
                      ...
                      I’m using side-by-side development computers using eclipse 3.1 and phpeclipse for an ide. I tested the mysql statements using the mysql command line program only, so modx and the webserver environment shouldn’t be a factor.
                      I’ll bet that the w32 MySQL server is running in the new STRICT_MODE introduced in MySQL 5.0 while the Linux deployment is not. If that’s the problem, you can disable strict mode on the W32 deployment to get around the issue for now. This has been identified and we are working on a long term solution to overcome some problematic data structures in this regard.