We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14667
    • 5 Posts
    Hello everyone here, I’m from somewhere else. I like right angles, horizontals and perpendiculars.

    So, I finally moved my website in-house and have started to get php, mysql and modx running.

    I’m running php 5.3 mysql 5.5 and modx revo on windows server 2008r2 with iis7.5

    I was able to load everything without too much difficulty and got modx to show no errors, though I am nervous that in getting it right I may have set certain permissions too low and am vulnerable to attack but thats not why I am here. I am getting an error when I try to create a new document. I fill out a few fields and click save and then get the error "An error occurred while trying to save the resource." I created a new user so I think the database is working. I am going for a simple blank page with a username and password field that would selectively load up different index pages to different people and store all my file names in the database and serve them up based on user permissions.

    I can’t get past this first part and am anxious to run through a few tutorials.
      • 3749
      • 24,544 Posts
      See if there is anything in the MODx error log (under Reports in the Top Menu).
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 14667
        • 5 Posts


        [2011-01-14 21:28:36] (ERROR @ /modx-2.0.6-pl2/connectors/resource/index.php) Could not create table `modx_site_content`
        SQL: CREATE TABLE `modx_site_content` (`id` INT(10) unsigned NOT NULL AUTO_INCREMENT,`type` VARCHAR(20) NOT NULL DEFAULT ’document’,`contentType` VARCHAR(50) NOT NULL DEFAULT ’text/html’,`pagetitle` VARCHAR(255) NOT NULL DEFAULT ’’,`longtitle` VARCHAR(255) NOT NULL DEFAULT ’’,`description` VARCHAR(255) NOT NULL DEFAULT ’’,`alias` VARCHAR(255) NULL DEFAULT ’’,`link_attributes` VARCHAR(255) NOT NULL DEFAULT ’’,`published` TINYINT(1) unsigned NOT NULL DEFAULT ’0’,`pub_date` INT(20) NOT NULL DEFAULT ’0’,`unpub_date` INT(20) NOT NULL DEFAULT ’0’,`parent` INT(10) NOT NULL DEFAULT ’0’,`isfolder` TINYINT(1) unsigned NOT NULL DEFAULT ’0’,`introtext` TEXT NULL,`content` MEDIUMTEXT NULL,`richtext` TINYINT(1) unsigned NOT NULL DEFAULT ’1’,`template` INT(10) NOT NULL DEFAULT ’0’,`menuindex` INT(10) NOT NULL DEFAULT ’0’,`searchable` TINYINT(1) unsigned NOT NULL DEFAULT ’1’,`cacheable` TINYINT(1) unsigned NOT NULL DEFAULT ’1’,`createdby` INT(10) NOT NULL DEFAULT ’0’,`createdon` INT(20) NOT NULL DEFAULT ’0’,`editedby` INT(10) NOT NULL DEFAULT ’0’,`editedon` INT(20) NOT NULL DEFAULT ’0’,`deleted` TINYINT(1) unsigned NOT NULL DEFAULT ’0’,`deletedon` INT(20) NOT NULL DEFAULT ’0’,`deletedby` INT(10) NOT NULL DEFAULT ’0’,`publishedon` INT(20) NOT NULL DEFAULT ’0’,`publishedby` INT(10) NOT NULL DEFAULT ’0’,`menutitle` VARCHAR(255) NOT NULL DEFAULT ’’,`donthit` TINYINT(1) unsigned NOT NULL DEFAULT ’0’,`haskeywords` TINYINT(1) unsigned NOT NULL DEFAULT ’0’,`hasmetatags` TINYINT(1) unsigned NOT NULL DEFAULT ’0’,`privateweb` TINYINT(1) unsigned NOT NULL DEFAULT ’0’,`privatemgr` TINYINT(1) unsigned NOT NULL DEFAULT ’0’,`content_dispo` TINYINT(1) NOT NULL DEFAULT ’0’,`hidemenu` TINYINT(1) NOT NULL DEFAULT ’0’,`class_key` VARCHAR(100) NOT NULL DEFAULT ’modDocument’,`context_key` VARCHAR(100) NOT NULL DEFAULT ’web’,`content_type` INT(11) unsigned NOT NULL DEFAULT ’1’, PRIMARY KEY (`id`), INDEX `alias` (`alias`), INDEX `published` (`published`), INDEX `pub_date` (`pub_date`), INDEX `unpub_date` (`unpub_date`), INDEX `parent` (`parent`), INDEX `isfolder` (`isfolder`), INDEX `template` (`template`), INDEX `menuindex` (`menuindex`), INDEX `searchable` (`searchable`), INDEX `cacheable` (`cacheable`), INDEX `hidemenu` (`hidemenu`), INDEX `class_key` (`class_key`), INDEX `context_key` (`context_key`), FULLTEXT `content_ft_idx` (`pagetitle`,`longtitle`,`description`,`introtext`,`content`))
        ERROR: Array
        (
        [0] => HY000
        [1] => 1214
        [2] => The used table type doesn’t support FULLTEXT indexes
        )

        [2011-01-14 21:28:36] (ERROR @ /modx-2.0.6-pl2/connectors/resource/index.php) Error HY000 attempting to create object container for class modDocument:
        Array
        (
        [0] => HY000
        [1] => 1214
        [2] => The used table type doesn’t support FULLTEXT indexes
        )
          • 3749
          • 24,544 Posts
          The install failed to create the table that holds all resources. It’s likely because your DB is using innodb instead of myisam.

          I think that may be fixed in MODx 2.0.7, but I’m not sure: http://modxcms.com/download/
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 14667
            • 5 Posts
            I wiped out the 2.0.6 and installed 2.0.7 but got this failure message about the DB

            Notice: Undefined variable: install in C:\inetpub\wwwroot\jonnypajamas.com\modx-2.0.7-pl\setup\includes\tables_create.php on line 84

            Notice: Trying to get property of non-object in C:\inetpub\wwwroot\jonnypajamas.com\modx-2.0.7-pl\setup\includes\tables_create.php on line 84

            Fatal error: Call to a member function get() on a non-object in C:\inetpub\wwwroot\jonnypajamas.com\modx-2.0.7-pl\setup\includes\tables_create.php on line 84

            I’m going to try to repair my mysql install and see if that does anything
              • 14667
              • 5 Posts
              woohoo!

              I got 2.0.7 running and after a repair on mysql and a reboot it seems everything cleared and I am now talking to the database properly. Thanks for your help it is most appreciated.

              Now I am ready to get down to business.

              I’m looking to make a plain black home page with a login/password box that serves up different home pages based on username. will I need to install any add-ons?

              Also can you tell me exactly what perms I should have on my root folder and the modx folders?
                • 3749
                • 24,544 Posts
                You’ll definitely want the Login package. Note that it comes with a bunch of useful snippets.

                The permissions will depend on how your server is set up.
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting
                  • 14667
                  • 5 Posts
                  I was able to install the login package, this is awesomely smooth (huge THANKS to the creator). what user does modx use for the system? it is IUSR?