We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19554
    • 59 Posts
    This evening I updated one of my sites with latest revision of ModX publicly available on SVN (rev. 2258).
    "Chunks" tab dissapeared.
    I suppose the reason for this is trivial, so it would be nice if someone could fix this
    and commit this, as well as enable us with new version of file(s) for fixing sites running rev. 2258.

    Thanx!
      • 10487 MODX Staff
      • 1,535 Posts
      What version did you upgrade from? And, have you run the installer as part of the upgrade? My guess is that this is part of separating out the chunk permissions from snippet permissions and would recommend you check any custom roles you have setup that these permissions have been allowed as required.

      I suppose the reason for this is trivial, so it would be nice if someone could fix this
      and commit this, as well as enable us with new version of file(s) for fixing sites running rev. 2258.
      Please remember that the trunk may not always be stable (although we do try our best to maintain stability) - some feature changes may span several commits. In this case, I think the fix is a simple case of checking that the installer has been run and checking a few settings.

      However, fixes and updates will always be committed to the trunk as and when the team feel they are ready, not just to fix sites for people who have updated to the latest bleeding edge release and find something not working as they would like. wink
        Garry Nutting
        Senior Developer
        MODX, LLC

        Email: [email protected]
        Twitter: @garryn
        Web: modx.com
        • 19554
        • 59 Posts
        I upgraded from 0.9.5 RC3 by running installer.
        I do not have any customer roles defined, just default "Administrator" one.
          • 10487 MODX Staff
          • 1,535 Posts
          Okay, can you check the Admin role in the database (using phpMyAdmin or similar) that the chunk permissions have been set for the Admin role.
            Garry Nutting
            Senior Developer
            MODX, LLC

            Email: [email protected]
            Twitter: @garryn
            Web: modx.com
            • 19554
            • 59 Posts
            new_chunk, edit_chunk, save_chunk and delete_chunk fields in modx_user_roles table are all set to 1 for Administrator.
            Any more places where I can look?
              • 22303 MODX Staff
              • 10,725 Posts
              Quote from: milicicd at Feb 12, 2007, 02:49 AM

              new_chunk, edit_chunk, save_chunk and delete_chunk fields in modx_user_roles table are all set to 1 for Administrator.
              Any more places where I can look?
              Have you ever logged out of the manager since upgrading? It’s possible you are using roles cached in a long-standing session. I’ve definitely seen it happen anyway...
                • 19554
                • 59 Posts
                Yes, that was the problem. I just opened manager from another machine and "Chunks" are there, alive and well.
                Thanx a lot!
                  • 23491 ☆ A M B ☆
                  • 1,056 Posts
                  Phew! Glad (and sorry) to see this thread already exists...I thought I was losing my mind.

                  Been experiencing the same issue here, running on a local testing server Apache/2.0.59 (Win32), PHP 5.2.0, MySQL 5.0.27-community-nt...

                  However, when I clear my cookies/etc, I still don’t get the tab.

                  * Let me try in IE 7 and after a browser restart *

                  Interesting... Neither worked... confirming valid permissions now...

                  Hmm... I don’t see: new_chunk, edit_chunk, save_chunk and delete_chunk fields in modx_user_roles table

                  Here’s the modx_user_roles DDL
                  
                  Table            Create Table                                                                                                       
                  ---------------  -------------------------------------------------------------------------------------------------------------------
                  modx_user_roles  CREATE TABLE `modx_user_roles` (                                                                                   
                                     `id` int(10) NOT NULL auto_increment,                                                                            
                                     `name` varchar(50) NOT NULL default '',                                                                          
                                     `description` varchar(255) NOT NULL default '',                                                                  
                                     `frames` int(1) NOT NULL default '0',                                                                            
                                     `home` int(1) NOT NULL default '0',                                                                              
                                     `view_document` int(1) NOT NULL default '0',                                                                     
                                     `new_document` int(1) NOT NULL default '0',                                                                      
                                     `save_document` int(1) NOT NULL default '0',                                                                     
                                     `publish_document` int(1) NOT NULL default '0',                                                                  
                                     `delete_document` int(1) NOT NULL default '0',                                                                   
                                     `action_ok` int(1) NOT NULL default '0',                                                                         
                                     `logout` int(1) NOT NULL default '0',                                                                            
                                     `help` int(1) NOT NULL default '0',                                                                              
                                     `messages` int(1) NOT NULL default '0',                                                                          
                                     `new_user` int(1) NOT NULL default '0',                                                                          
                                     `edit_user` int(1) NOT NULL default '0',                                                                         
                                     `logs` int(1) NOT NULL default '0',                                                                              
                                     `edit_parser` int(1) NOT NULL default '0',                                                                       
                                     `save_parser` int(1) NOT NULL default '0',                                                                       
                                     `edit_template` int(1) NOT NULL default '0',                                                                     
                                     `settings` int(1) NOT NULL default '0',                                                                          
                                     `credits` int(1) NOT NULL default '0',                                                                           
                                     `new_template` int(1) NOT NULL default '0',                                                                      
                                     `save_template` int(1) NOT NULL default '0',                                                                     
                                     `delete_template` int(1) NOT NULL default '0',                                                                   
                                     `edit_snippet` int(1) NOT NULL default '0',                                                                      
                                     `new_snippet` int(1) NOT NULL default '0',                                                                       
                                     `save_snippet` int(1) NOT NULL default '0',                                                                      
                                     `delete_snippet` int(1) NOT NULL default '0',                                                                    
                                     `empty_cache` int(1) NOT NULL default '0',                                                                       
                                     `edit_document` int(1) NOT NULL default '0',                                                                     
                                     `change_password` int(1) NOT NULL default '0',                                                                   
                                     `error_dialog` int(1) NOT NULL default '0',                                                                      
                                     `about` int(1) NOT NULL default '0',                                                                             
                                     `file_manager` int(1) NOT NULL default '0',                                                                      
                                     `save_user` int(1) NOT NULL default '0',                                                                         
                                     `delete_user` int(1) NOT NULL default '0',                                                                       
                                     `save_password` int(11) NOT NULL default '0',                                                                    
                                     `edit_role` int(1) NOT NULL default '0',                                                                         
                                     `save_role` int(1) NOT NULL default '0',                                                                         
                                     `delete_role` int(1) NOT NULL default '0',                                                                       
                                     `new_role` int(1) NOT NULL default '0',                                                                          
                                     `access_permissions` int(1) NOT NULL default '0',                                                                
                                     `bk_manager` int(1) NOT NULL default '0',                                                                        
                                     `new_plugin` int(1) NOT NULL default '0',                                                                        
                                     `edit_plugin` int(1) NOT NULL default '0',                                                                       
                                     `save_plugin` int(1) NOT NULL default '0',                                                                       
                                     `delete_plugin` int(1) NOT NULL default '0',                                                                     
                                     `new_module` int(1) NOT NULL default '0',                                                                        
                                     `edit_module` int(1) NOT NULL default '0',                                                                       
                                     `save_module` int(1) NOT NULL default '0',                                                                       
                                     `delete_module` int(1) NOT NULL default '0',                                                                     
                                     `exec_module` int(1) NOT NULL default '0',                                                                       
                                     `view_eventlog` int(1) NOT NULL default '0',                                                                     
                                     `delete_eventlog` int(1) NOT NULL default '0',                                                                   
                                     `manage_metatags` int(1) NOT NULL default '0' COMMENT 'manage site meta tags and keywords',                      
                                     `edit_doc_metatags` int(1) NOT NULL default '0' COMMENT 'edit document meta tags and keywords',                  
                                     `new_web_user` int(1) NOT NULL default '0',                                                                      
                                     `edit_web_user` int(1) NOT NULL default '0',                                                                     
                                     `save_web_user` int(1) NOT NULL default '0',                                                                     
                                     `delete_web_user` int(1) NOT NULL default '0',                                                                   
                                     `web_access_permissions` int(1) NOT NULL default '0',                                                            
                                     `view_unpublished` int(1) NOT NULL default '0',                                                                  
                                     PRIMARY KEY  (`id`)                                                                                              
                                   ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COMMENT='Contains information describing the user roles.'  
                  
                  


                  I checked the setup.sql

                  and the "chunk" column declarations DO exist:

                  CREATE TABLE IF NOT EXISTS `{PREFIX}user_roles` (
                    `id` int(10) NOT NULL auto_increment,
                    `name` varchar(50) NOT NULL default '',
                    `description` varchar(255) NOT NULL default '',
                    `frames` int(1) NOT NULL default '0',
                    `home` int(1) NOT NULL default '0',
                    `view_document` int(1) NOT NULL default '0',
                    `new_document` int(1) NOT NULL default '0',
                    `save_document` int(1) NOT NULL default '0',
                    `publish_document` int(1) NOT NULL default '0',
                    `delete_document` int(1) NOT NULL default '0',
                    `action_ok` int(1) NOT NULL default '0',
                    `logout` int(1) NOT NULL default '0',
                    `help` int(1) NOT NULL default '0',
                    `messages` int(1) NOT NULL default '0',
                    `new_user` int(1) NOT NULL default '0',
                    `edit_user` int(1) NOT NULL default '0',
                    `logs` int(1) NOT NULL default '0',
                    `edit_parser` int(1) NOT NULL default '0',
                    `save_parser` int(1) NOT NULL default '0',
                    `edit_template` int(1) NOT NULL default '0',
                    `settings` int(1) NOT NULL default '0',
                    `credits` int(1) NOT NULL default '0',
                    `new_template` int(1) NOT NULL default '0',
                    `save_template` int(1) NOT NULL default '0',
                    `delete_template` int(1) NOT NULL default '0',
                    `edit_snippet` int(1) NOT NULL default '0',
                    `new_snippet` int(1) NOT NULL default '0',
                    `save_snippet` int(1) NOT NULL default '0',
                    `delete_snippet` int(1) NOT NULL default '0',
                    `edit_chunk` int(1) NOT NULL default '0',
                    `new_chunk` int(1) NOT NULL default '0',
                    `save_chunk` int(1) NOT NULL default '0',
                    `delete_chunk` int(1) NOT NULL default '0',
                    `empty_cache` int(1) NOT NULL default '0',
                    `edit_document` int(1) NOT NULL default '0',
                    `change_password` int(1) NOT NULL default '0',
                    `error_dialog` int(1) NOT NULL default '0',
                    `about` int(1) NOT NULL default '0',
                    `file_manager` int(1) NOT NULL default '0',
                    `save_user` int(1) NOT NULL default '0',
                    `delete_user` int(1) NOT NULL default '0',
                    `save_password` int(11) NOT NULL default '0',
                    `edit_role` int(1) NOT NULL default '0',
                    `save_role` int(1) NOT NULL default '0',
                    `delete_role` int(1) NOT NULL default '0',
                    `new_role` int(1) NOT NULL default '0',
                    `access_permissions` int(1) NOT NULL default '0',
                    `bk_manager` int(1) NOT NULL DEFAULT 0,
                    `new_plugin` int(1) NOT NULL DEFAULT 0,
                    `edit_plugin` int(1) NOT NULL DEFAULT 0,
                    `save_plugin` int(1) NOT NULL DEFAULT 0,
                    `delete_plugin` int(1) NOT NULL DEFAULT 0,
                    `new_module` int(1) NOT NULL DEFAULT 0,
                    `edit_module` int(1) NOT NULL DEFAULT 0,
                    `save_module` int(1) NOT NULL DEFAULT 0,
                    `delete_module` int(1) NOT NULL DEFAULT 0,
                    `exec_module` int(1) NOT NULL DEFAULT 0,
                    `view_eventlog` int(1) NOT NULL DEFAULT 0,
                    `delete_eventlog` int(1) NOT NULL DEFAULT 0,
                    `manage_metatags` int(1) NOT NULL DEFAULT 0 COMMENT 'manage site meta tags and keywords',	
                    `edit_doc_metatags` int(1) NOT NULL DEFAULT 0 COMMENT 'edit document meta tags and keywords' ,
                    `new_web_user` int(1) NOT NULL default '0',
                    `edit_web_user` int(1) NOT NULL default '0',
                    `save_web_user` int(1) NOT NULL default '0',
                    `delete_web_user` int(1) NOT NULL default '0',
                    `web_access_permissions` int(1) NOT NULL default '0',
                    `view_unpublished` int(1) NOT NULL default '0',
                    `import_static` int(1) NOT NULL default '0',
                    `export_static` int(1) NOT NULL default '0',
                    PRIMARY KEY  (`id`)
                  ) TYPE=MyISAM COMMENT='Contains information describing the user roles.';
                  
                  


                  however, I wonder if the update ADD COLUMN statements are getting ran?

                  ALTER TABLE `{PREFIX}user_roles`
                   ADD COLUMN `new_chunk` int(1) NOT NULL DEFAULT '0' AFTER `delete_snippet`,
                   ADD COLUMN `edit_chunk` int(1) NOT NULL DEFAULT '0' AFTER `new_chunk`,
                   ADD COLUMN `save_chunk` int(1) NOT NULL DEFAULT '0' AFTER `edit_chunk`,
                   ADD COLUMN `delete_chunk` int(1) NOT NULL DEFAULT '0' AFTER `save_chunk`;
                  



                  Regardless, I had to run the above SQL (and set everything to ’1’, of course) to fix for me... Odd how that’d somehow drop off, but I can possibly supply another clue:

                  I CREATED this local testing version via the SQL Backup Utility. Could it be that the Backup process somehow lost reference to the *_chunk columns? (or worse, even more?)

                  Well, according to my backup.sql, sure looks like it:

                  
                  #
                  # Table structure for table `modx_user_roles`
                  #
                  
                  DROP TABLE IF EXISTS `modx_user_roles`;
                  CREATE TABLE `modx_user_roles` (
                    `id` int(10) NOT NULL auto_increment,
                    `name` varchar(50) NOT NULL default '',
                    `description` varchar(255) NOT NULL default '',
                    `frames` int(1) NOT NULL default '0',
                    `home` int(1) NOT NULL default '0',
                    `view_document` int(1) NOT NULL default '0',
                    `new_document` int(1) NOT NULL default '0',
                    `save_document` int(1) NOT NULL default '0',
                    `publish_document` int(1) NOT NULL default '0',
                    `delete_document` int(1) NOT NULL default '0',
                    `action_ok` int(1) NOT NULL default '0',
                    `logout` int(1) NOT NULL default '0',
                    `help` int(1) NOT NULL default '0',
                    `messages` int(1) NOT NULL default '0',
                    `new_user` int(1) NOT NULL default '0',
                    `edit_user` int(1) NOT NULL default '0',
                    `logs` int(1) NOT NULL default '0',
                    `edit_parser` int(1) NOT NULL default '0',
                    `save_parser` int(1) NOT NULL default '0',
                    `edit_template` int(1) NOT NULL default '0',
                    `settings` int(1) NOT NULL default '0',
                    `credits` int(1) NOT NULL default '0',
                    `new_template` int(1) NOT NULL default '0',
                    `save_template` int(1) NOT NULL default '0',
                    `delete_template` int(1) NOT NULL default '0',
                    `edit_snippet` int(1) NOT NULL default '0',
                    `new_snippet` int(1) NOT NULL default '0',
                    `save_snippet` int(1) NOT NULL default '0',
                    `delete_snippet` int(1) NOT NULL default '0',
                    `empty_cache` int(1) NOT NULL default '0',
                    `edit_document` int(1) NOT NULL default '0',
                    `change_password` int(1) NOT NULL default '0',
                    `error_dialog` int(1) NOT NULL default '0',
                    `about` int(1) NOT NULL default '0',
                    `file_manager` int(1) NOT NULL default '0',
                    `save_user` int(1) NOT NULL default '0',
                    `delete_user` int(1) NOT NULL default '0',
                    `save_password` int(11) NOT NULL default '0',
                    `edit_role` int(1) NOT NULL default '0',
                    `save_role` int(1) NOT NULL default '0',
                    `delete_role` int(1) NOT NULL default '0',
                    `new_role` int(1) NOT NULL default '0',
                    `access_permissions` int(1) NOT NULL default '0',
                    `bk_manager` int(1) NOT NULL default '0',
                    `new_plugin` int(1) NOT NULL default '0',
                    `edit_plugin` int(1) NOT NULL default '0',
                    `save_plugin` int(1) NOT NULL default '0',
                    `delete_plugin` int(1) NOT NULL default '0',
                    `new_module` int(1) NOT NULL default '0',
                    `edit_module` int(1) NOT NULL default '0',
                    `save_module` int(1) NOT NULL default '0',
                    `delete_module` int(1) NOT NULL default '0',
                    `exec_module` int(1) NOT NULL default '0',
                    `view_eventlog` int(1) NOT NULL default '0',
                    `delete_eventlog` int(1) NOT NULL default '0',
                    `manage_metatags` int(1) NOT NULL default '0' COMMENT 'manage site meta tags and keywords',
                    `edit_doc_metatags` int(1) NOT NULL default '0' COMMENT 'edit document meta tags and keywords',
                    `new_web_user` int(1) NOT NULL default '0',
                    `edit_web_user` int(1) NOT NULL default '0',
                    `save_web_user` int(1) NOT NULL default '0',
                    `delete_web_user` int(1) NOT NULL default '0',
                    `web_access_permissions` int(1) NOT NULL default '0',
                    `view_unpublished` int(1) NOT NULL default '0',
                    PRIMARY KEY  (`id`)
                  ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COMMENT='Contains information describing the user roles.';
                  


                  Uh oh!

                  I just tried Backing Up again (selecting ALL tables + DROP TABLE statements) and sure enough the columns are missing in even the most recent Backup .SQL file creation. However, I can see the CHUNKS tab on the Remote server, only the *_chunk columns don’t exist on the Remote SQL DB either huh Very odd...

                  I have ran MODx Installer Updates on the remote box, and all I can say is that it appears these columns dropped off somehow. Therefore, this traveled back down through the backup utility and into my local testing box. At this point, I’m not suggesting the Backup manager is broke, or anything else in particular... May need to keep our eyes open for this one...
                    Mike Reid - www.pixelchutes.com
                    MODx Ambassador / Contributor
                    [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
                    ________________________________
                    Where every pixel matters.
                    • 22303 MODX Staff
                    • 10,725 Posts
                    Running the upgrade script should have added those fields to the table... huh

                    In any case, try the now public release candidate of 0.9.6 available at http://modxcms.com/beta.html, run the upgrade script, and see if you still have the problem. And make sure you log out of manager before upgrading... wink
                      • 23491 ☆ A M B ☆
                      • 1,056 Posts
                      I wonder: (c|sh)ould checking for and subsequently "logging out" any "logged in" users be an initial step during the install/upgrade process? In other words, is it scriptomagically preventable?
                        Mike Reid - www.pixelchutes.com
                        MODx Ambassador / Contributor
                        [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
                        ________________________________
                        Where every pixel matters.