We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25803 ☆ A M B ☆
    • 721 Posts
    Hello,

    When a right-click the Categories icon in the Elements Tab and select New Category, I input a Category Name and save it. MODx indicates it is saving it but the category doesn’t appear to be created (it’s not in the Element tree and is not selectable in any category drop down menus).

    Probably related to that is on some package installs I get a series of category errors:

    Attempting to install package with signature: gallery-1.0.1-rc1
    Package found...now preparing to install.
    Grabbing package workspace...
    Workspace environment initiated, now installing package...
    Error preparing statement for query: SELECT `modAccessCategory`.`id` AS `modAccessCategory_id`, `modAccessCategory`.`target` AS `modAccessCategory_target`, `modAccessCategory`.`principal_class` AS `modAccessCategory_principal_class`, `modAccessCategory`.`principal` AS `modAccessCategory_principal`, `modAccessCategory`.`authority` AS `modAccessCategory_authority`, `modAccessCategory`.`policy` AS `modAccessCategory_policy`, `modAccessCategory`.`context_key` AS `modAccessCategory_context_key` FROM `modx_access_category` AS `modAccessCategory` WHERE `modAccessCategory`.`target` = ? Array ( [0] => 42S02 [1] => 1146 [2] => Table 'rx2_totem.modx_access_category' doesn't exist )
    Error preparing statement for query: SELECT `modCategoryClosure`.`ancestor` AS `modCategoryClosure_ancestor`, `modCategoryClosure`.`descendant` AS `modCategoryClosure_descendant`, `modCategoryClosure`.`depth` AS `modCategoryClosure_depth` FROM `modx_categories_closure` AS `modCategoryClosure` WHERE `modCategoryClosure`.`ancestor` = ? Array ( [0] => 42S02 [1] => 1146 [2] => Table 'rx2_totem.modx_categories_closure' doesn't exist )
    Error preparing statement for query: SELECT `modCategoryClosure`.`ancestor` AS `modCategoryClosure_ancestor`, `modCategoryClosure`.`descendant` AS `modCategoryClosure_descendant`, `modCategoryClosure`.`depth` AS `modCategoryClosure_depth` FROM `modx_categories_closure` AS `modCategoryClosure` WHERE `modCategoryClosure`.`descendant` = ? Array ( [0] => 42S02 [1] => 1146 [2] => Table 'rx2_totem.modx_categories_closure' doesn't exist )
    Removed modCategory instance with primary key 14
    Language string not found: "gallery"
    Language string not found: "gallery.menu_desc"
    Created table`modx_gallery_items` SQL: CREATE TABLE `modx_gallery_items` (`id` INTEGER unsigned NOT NULL AUTO_INCREMENT,`name` VARCHAR(100) NOT NULL DEFAULT '',`filename` VARCHAR(255) NOT NULL DEFAULT '',`description` TEXT NOT NULL,`mediatype` VARCHAR(40) NOT NULL DEFAULT 'image',`createdon` DATETIME NULL,`createdby` INT(10) unsigned NOT NULL DEFAULT '0',`active` TINYINT(1) unsigned NOT NULL DEFAULT '0',`duration` VARCHAR(40) NOT NULL DEFAULT '',`streamer` TEXT NOT NULL,`watermark_pos` VARCHAR(10) NOT NULL DEFAULT 'tl', PRIMARY KEY (`id`), INDEX `createdby` (`createdby`)) TYPE=MyISAM
    Created table`modx_gallery_albums` SQL: CREATE TABLE `modx_gallery_albums` (`id` INTEGER unsigned NOT NULL AUTO_INCREMENT,`parent` INT(10) unsigned NOT NULL DEFAULT '0',`name` VARCHAR(255) NOT NULL DEFAULT '',`description` TEXT NOT NULL,`createdon` DATETIME NULL,`createdby` INT(10) unsigned NOT NULL DEFAULT '0',`rank` INT(10) unsigned NOT NULL DEFAULT '0',`active` TINYINT(1) unsigned NOT NULL DEFAULT '0',`prominent` TINYINT(1) unsigned NOT NULL DEFAULT '0',`watermark` VARCHAR(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`), INDEX `parent` (`parent`), INDEX `name` (`name`), INDEX `createdby` (`createdby`)) TYPE=MyISAM
    Created table`modx_gallery_album_items` SQL: CREATE TABLE `modx_gallery_album_items` (`id` INTEGER unsigned NOT NULL AUTO_INCREMENT,`item` INT(10) unsigned NOT NULL DEFAULT '0',`album` INT(10) unsigned NOT NULL DEFAULT '0',`rank` INT(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), INDEX `item` (`item`), INDEX `album` (`album`)) TYPE=MyISAM
    Created table`modx_gallery_album_contexts` SQL: CREATE TABLE `modx_gallery_album_contexts` (`id` INTEGER unsigned NOT NULL AUTO_INCREMENT,`album` INT(10) unsigned NOT NULL DEFAULT '0',`context_key` VARCHAR(100) NOT NULL DEFAULT 'web', PRIMARY KEY (`id`), INDEX `album` (`album`), INDEX `context_key` (`context_key`)) TYPE=MyISAM
    Created table`modx_gallery_tags` SQL: CREATE TABLE `modx_gallery_tags` (`id` INTEGER unsigned NOT NULL AUTO_INCREMENT,`item` INT(10) unsigned NOT NULL DEFAULT '0',`tag` VARCHAR(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`), INDEX `item` (`item`), INDEX `tag` (`tag`)) TYPE=MyISAM
    Successfully installed package gallery-1.0.1-rc1
    


    Environment Details
    ===================

    MODx Revolution 2.0.0-pl rev7212
    MySQL 5.0.45 Community
    PHP 5.2.9
    pdo_mysql Installed
    Linux
    Apache 2.2.8
      • 25803 ☆ A M B ☆
      • 721 Posts
      Bump.

      I can’t figure out how to log this into JIRA. Are there any instructions?
        • 3749
        • 24,544 Posts
        Assuming that you haven’t messed with permissions, it sounds like a corrupted file in the install.
          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
          • 25803 ☆ A M B ☆
          • 721 Posts
          I reinstalled and no, haven’t played around with permissions. Install said everything was good but I realize some things get missed. I still can’t create a category. It’s almost as if for that particular task, in the database, there is no permission, but I can create snippets, chunks, resources. I frankly quite baffled.
            • 26903
            • 1,336 Posts
            Looks as though you’ve installed Gallery, try removing this(force remove option) and see if you can create categories now.
              Use MODx, or the cat gets it!
              • 32699 ☆ A M B ☆
              • 427 Posts
              W. Shawn Wilkerson Reply #6, 16 years, 1 month ago
              I would also run a check on the database via phpMyAdmin or some other tool (even Cpanel offers them) to make sure your table is in a good condition and not corrupted.
                Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

                Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com
                • 3749
                • 24,544 Posts
                Quote from: rx2 at Aug 26, 2010, 11:56 AM

                I reinstalled and no, haven’t played around with permissions. Install said everything was good but I realize some things get missed. I still can’t create a category. It’s almost as if for that particular task, in the database, there is no permission, but I can create snippets, chunks, resources. I frankly quite baffled.

                Try the Gallery suggestion, but if that doesn’t work, consider this -- did you re-download and re-upload the files before reinstalling? Reinstalling won’t do any good unless you replace the corrupted or missing file(s).
                  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
                  • 25803 ☆ A M B ☆
                  • 721 Posts
                  Quote from: BobRay at Aug 29, 2010, 12:09 AM

                  Quote from: rx2 at Aug 26, 2010, 11:56 AM

                  I reinstalled and no, haven’t played around with permissions. Install said everything was good but I realize some things get missed. I still can’t create a category. It’s almost as if for that particular task, in the database, there is no permission, but I can create snippets, chunks, resources. I frankly quite baffled.

                  Try the Gallery suggestion, but if that doesn’t work, consider this -- did you re-download and re-upload the files before reinstalling? Reinstalling won’t do any good unless you replace the corrupted or missing file(s).

                  Yes, redownloaded. Erased everything, emptied the DB. The error seems to be that modx_access_category table doesn’t exist. Can I create this manually? Sure enough it doesn’t show up in phpMyAdmin. Still getting this:

                  /*
                   * MODx Console Output
                   *
                   * @date 2010-09-09 12:48:36
                   */
                  Attempting to install package with signature: modxss-1.0-beta1
                  
                  Package found...now preparing to install.
                  
                  Grabbing package workspace...
                  
                  Workspace environment initiated, now installing package...
                  
                  Error preparing statement for query: SELECT `modAccessCategory`.`id` AS `modAccessCategory_id`, `modAccessCategory`.`target` AS `modAccessCategory_target`, `modAccessCategory`.`principal_class` AS `modAccessCategory_principal_class`, `modAccessCategory`.`principal` AS `modAccessCategory_principal`, `modAccessCategory`.`authority` AS `modAccessCategory_authority`, `modAccessCategory`.`policy` AS `modAccessCategory_policy`, `modAccessCategory`.`context_key` AS `modAccessCategory_context_key` FROM `modx_access_category` AS `modAccessCategory` WHERE `modAccessCategory`.`target` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_access_category' doesn't exist
                  )
                  
                  
                  Error preparing statement for query: SELECT `modCategoryClosure`.`ancestor` AS `modCategoryClosure_ancestor`, `modCategoryClosure`.`descendant` AS `modCategoryClosure_descendant`, `modCategoryClosure`.`depth` AS `modCategoryClosure_depth` FROM `modx_categories_closure` AS `modCategoryClosure` WHERE `modCategoryClosure`.`ancestor` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_categories_closure' doesn't exist
                  )
                  
                  
                  Error preparing statement for query: SELECT `modCategoryClosure`.`ancestor` AS `modCategoryClosure_ancestor`, `modCategoryClosure`.`descendant` AS `modCategoryClosure_descendant`, `modCategoryClosure`.`depth` AS `modCategoryClosure_depth` FROM `modx_categories_closure` AS `modCategoryClosure` WHERE `modCategoryClosure`.`descendant` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_categories_closure' doesn't exist
                  )
                  
                  
                  Removed modCategory instance with primary key 3
                  
                  Error preparing statement for query: SELECT `modAccessCategory`.`id` AS `modAccessCategory_id`, `modAccessCategory`.`target` AS `modAccessCategory_target`, `modAccessCategory`.`principal_class` AS `modAccessCategory_principal_class`, `modAccessCategory`.`principal` AS `modAccessCategory_principal`, `modAccessCategory`.`authority` AS `modAccessCategory_authority`, `modAccessCategory`.`policy` AS `modAccessCategory_policy`, `modAccessCategory`.`context_key` AS `modAccessCategory_context_key` FROM `modx_access_category` AS `modAccessCategory` WHERE `modAccessCategory`.`target` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_access_category' doesn't exist
                  )
                  
                  
                  Error preparing statement for query: SELECT `modCategoryClosure`.`ancestor` AS `modCategoryClosure_ancestor`, `modCategoryClosure`.`descendant` AS `modCategoryClosure_descendant`, `modCategoryClosure`.`depth` AS `modCategoryClosure_depth` FROM `modx_categories_closure` AS `modCategoryClosure` WHERE `modCategoryClosure`.`ancestor` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_categories_closure' doesn't exist
                  )
                  
                  
                  Error preparing statement for query: SELECT `modCategoryClosure`.`ancestor` AS `modCategoryClosure_ancestor`, `modCategoryClosure`.`descendant` AS `modCategoryClosure_descendant`, `modCategoryClosure`.`depth` AS `modCategoryClosure_depth` FROM `modx_categories_closure` AS `modCategoryClosure` WHERE `modCategoryClosure`.`descendant` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_categories_closure' doesn't exist
                  )
                  
                  
                  Removed modCategory instance with primary key 4
                  
                  Error preparing statement for query: SELECT `modAccessCategory`.`id` AS `modAccessCategory_id`, `modAccessCategory`.`target` AS `modAccessCategory_target`, `modAccessCategory`.`principal_class` AS `modAccessCategory_principal_class`, `modAccessCategory`.`principal` AS `modAccessCategory_principal`, `modAccessCategory`.`authority` AS `modAccessCategory_authority`, `modAccessCategory`.`policy` AS `modAccessCategory_policy`, `modAccessCategory`.`context_key` AS `modAccessCategory_context_key` FROM `modx_access_category` AS `modAccessCategory` WHERE `modAccessCategory`.`target` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_access_category' doesn't exist
                  )
                  
                  
                  Error preparing statement for query: SELECT `modCategoryClosure`.`ancestor` AS `modCategoryClosure_ancestor`, `modCategoryClosure`.`descendant` AS `modCategoryClosure_descendant`, `modCategoryClosure`.`depth` AS `modCategoryClosure_depth` FROM `modx_categories_closure` AS `modCategoryClosure` WHERE `modCategoryClosure`.`ancestor` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_categories_closure' doesn't exist
                  )
                  
                  
                  Error preparing statement for query: SELECT `modCategoryClosure`.`ancestor` AS `modCategoryClosure_ancestor`, `modCategoryClosure`.`descendant` AS `modCategoryClosure_descendant`, `modCategoryClosure`.`depth` AS `modCategoryClosure_depth` FROM `modx_categories_closure` AS `modCategoryClosure` WHERE `modCategoryClosure`.`descendant` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_categories_closure' doesn't exist
                  )
                  
                  
                  Removed modCategory instance with primary key 5
                  
                  Language string not found: "quip"
                  
                  Language string not found: "quip_desc"
                  
                  An error occurred while trying to cache lexicon/en/quip/default (lexicon/language/namespace/topic)
                  
                  Language string not found: "quip"
                  
                  Language string not found: "quip_desc"
                  
                  Error preparing statement for query: SELECT `modAccessCategory`.`id` AS `modAccessCategory_id`, `modAccessCategory`.`target` AS `modAccessCategory_target`, `modAccessCategory`.`principal_class` AS `modAccessCategory_principal_class`, `modAccessCategory`.`principal` AS `modAccessCategory_principal`, `modAccessCategory`.`authority` AS `modAccessCategory_authority`, `modAccessCategory`.`policy` AS `modAccessCategory_policy`, `modAccessCategory`.`context_key` AS `modAccessCategory_context_key` FROM `modx_access_category` AS `modAccessCategory` WHERE `modAccessCategory`.`target` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_access_category' doesn't exist
                  )
                  
                  
                  Error preparing statement for query: SELECT `modCategoryClosure`.`ancestor` AS `modCategoryClosure_ancestor`, `modCategoryClosure`.`descendant` AS `modCategoryClosure_descendant`, `modCategoryClosure`.`depth` AS `modCategoryClosure_depth` FROM `modx_categories_closure` AS `modCategoryClosure` WHERE `modCategoryClosure`.`ancestor` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_categories_closure' doesn't exist
                  )
                  
                  
                  Error preparing statement for query: SELECT `modCategoryClosure`.`ancestor` AS `modCategoryClosure_ancestor`, `modCategoryClosure`.`descendant` AS `modCategoryClosure_descendant`, `modCategoryClosure`.`depth` AS `modCategoryClosure_depth` FROM `modx_categories_closure` AS `modCategoryClosure` WHERE `modCategoryClosure`.`descendant` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_categories_closure' doesn't exist
                  )
                  
                  
                  Removed modCategory instance with primary key 6
                  
                  Error preparing statement for query: SELECT `modAccessCategory`.`id` AS `modAccessCategory_id`, `modAccessCategory`.`target` AS `modAccessCategory_target`, `modAccessCategory`.`principal_class` AS `modAccessCategory_principal_class`, `modAccessCategory`.`principal` AS `modAccessCategory_principal`, `modAccessCategory`.`authority` AS `modAccessCategory_authority`, `modAccessCategory`.`policy` AS `modAccessCategory_policy`, `modAccessCategory`.`context_key` AS `modAccessCategory_context_key` FROM `modx_access_category` AS `modAccessCategory` WHERE `modAccessCategory`.`target` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_access_category' doesn't exist
                  )
                  
                  
                  Error preparing statement for query: SELECT `modCategoryClosure`.`ancestor` AS `modCategoryClosure_ancestor`, `modCategoryClosure`.`descendant` AS `modCategoryClosure_descendant`, `modCategoryClosure`.`depth` AS `modCategoryClosure_depth` FROM `modx_categories_closure` AS `modCategoryClosure` WHERE `modCategoryClosure`.`ancestor` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_categories_closure' doesn't exist
                  )
                  
                  
                  Error preparing statement for query: SELECT `modCategoryClosure`.`ancestor` AS `modCategoryClosure_ancestor`, `modCategoryClosure`.`descendant` AS `modCategoryClosure_descendant`, `modCategoryClosure`.`depth` AS `modCategoryClosure_depth` FROM `modx_categories_closure` AS `modCategoryClosure` WHERE `modCategoryClosure`.`descendant` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_categories_closure' doesn't exist
                  )
                  
                  
                  Removed modCategory instance with primary key 7
                  
                  Error preparing statement for query: SELECT `modAccessCategory`.`id` AS `modAccessCategory_id`, `modAccessCategory`.`target` AS `modAccessCategory_target`, `modAccessCategory`.`principal_class` AS `modAccessCategory_principal_class`, `modAccessCategory`.`principal` AS `modAccessCategory_principal`, `modAccessCategory`.`authority` AS `modAccessCategory_authority`, `modAccessCategory`.`policy` AS `modAccessCategory_policy`, `modAccessCategory`.`context_key` AS `modAccessCategory_context_key` FROM `modx_access_category` AS `modAccessCategory` WHERE `modAccessCategory`.`target` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_access_category' doesn't exist
                  )
                  
                  
                  Error preparing statement for query: SELECT `modCategoryClosure`.`ancestor` AS `modCategoryClosure_ancestor`, `modCategoryClosure`.`descendant` AS `modCategoryClosure_descendant`, `modCategoryClosure`.`depth` AS `modCategoryClosure_depth` FROM `modx_categories_closure` AS `modCategoryClosure` WHERE `modCategoryClosure`.`ancestor` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_categories_closure' doesn't exist
                  )
                  
                  
                  Error preparing statement for query: SELECT `modCategoryClosure`.`ancestor` AS `modCategoryClosure_ancestor`, `modCategoryClosure`.`descendant` AS `modCategoryClosure_descendant`, `modCategoryClosure`.`depth` AS `modCategoryClosure_depth` FROM `modx_categories_closure` AS `modCategoryClosure` WHERE `modCategoryClosure`.`descendant` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_categories_closure' doesn't exist
                  )
                  
                  
                  Removed modCategory instance with primary key 8
                  
                  Error preparing statement for query: SELECT `modAccessCategory`.`id` AS `modAccessCategory_id`, `modAccessCategory`.`target` AS `modAccessCategory_target`, `modAccessCategory`.`principal_class` AS `modAccessCategory_principal_class`, `modAccessCategory`.`principal` AS `modAccessCategory_principal`, `modAccessCategory`.`authority` AS `modAccessCategory_authority`, `modAccessCategory`.`policy` AS `modAccessCategory_policy`, `modAccessCategory`.`context_key` AS `modAccessCategory_context_key` FROM `modx_access_category` AS `modAccessCategory` WHERE `modAccessCategory`.`target` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_access_category' doesn't exist
                  )
                  
                  
                  Error preparing statement for query: SELECT `modCategoryClosure`.`ancestor` AS `modCategoryClosure_ancestor`, `modCategoryClosure`.`descendant` AS `modCategoryClosure_descendant`, `modCategoryClosure`.`depth` AS `modCategoryClosure_depth` FROM `modx_categories_closure` AS `modCategoryClosure` WHERE `modCategoryClosure`.`ancestor` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_categories_closure' doesn't exist
                  )
                  
                  
                  Error preparing statement for query: SELECT `modCategoryClosure`.`ancestor` AS `modCategoryClosure_ancestor`, `modCategoryClosure`.`descendant` AS `modCategoryClosure_descendant`, `modCategoryClosure`.`depth` AS `modCategoryClosure_depth` FROM `modx_categories_closure` AS `modCategoryClosure` WHERE `modCategoryClosure`.`descendant` = ? Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'rx2_totem.modx_categories_closure' doesn't exist
                  )
                  
                  
                  Removed modCategory instance with primary key 1
                  
                  Successfully installed package modxss-1.0-beta1
                  
                  
                  /* EOF */
                  
                  
                    • 26903
                    • 1,336 Posts
                    This seems to be something the modxss package needs, looking at my revo db there is no modAccessCategory table, so its not needed out of the box, can you create categories before you install this package?
                      Use MODx, or the cat gets it!
                      • 25803 ☆ A M B ☆
                      • 721 Posts
                      Quote from: shamblett at Sep 09, 2010, 12:53 PM

                      This seems to be something the modxss package needs, looking at my revo db there is no modAccessCategory table, so its not needed out of the box, can you create categories before you install this package?

                      No. I can’t. First thing I tried on the fresh install. I think I’ll blow away the DB completely and the testing sub domain and start from scratch. Moved to Evo in the mean time for the actual project.