• Folders with alias names being created#

  • cjvraay Reply #1, 2 years, 1 month ago

    Reply
    I have friendly URLs working on a site I created and it is configured like this:

    It has never happened when I (an administrator) make changes, but when one of my "editors" make a change the CMS generates a folder in the root directory with the alias name of the other menu item. Having this folder there then breaks the friendly URLs and instead of my navigation linking to the page it links to an index of that folder.

    Deleting that folder fixes the problem, but it keeps happening.

    Does anyone have any ideas on why this is happening?

    Thanks for any help provided,
    Chris.


  • netProphET - MODX Complete Team Reply #2, 2 years, 1 month ago

    Reply
    Just so I'm clear on the problem.. this is happening when an editor Saves a resource (document)?
    A folder is being created on the filesystem, named after the menu title of the resource that was saved?
    If that's right, can you please list any non-standard plugins you may have running?


  • cjvraay Reply #3, 2 years, 1 month ago

    Reply
    I think what caused it was the creation of a new resource in the second level. (this level don't appear in the nav but have a ditto snippet that puts them into a page).
    From what I can gather it creates a folder for the other top nav item (there are only two at the top level).
    The site is www.ayjaymusic.com
    The new resources are under music management and it creates a 'coaching' folder (which is the other main nav item).

    Plugins are:
    * Forgot Manager Login (1) - Resets your manager login when you forget your password.
    * Image TV Preview (6) - 1.2.0.4 - Show preview of any images loaded into image Template Variables
    * Inherit Parent Template (2) - New docs automatically select template of parent folder
    * QM+ (3) - 1.1.1 Enables QuickManager front end content editing support.
    * Search Highlighting (5) - 1.4 - Show search terms highlighted on page linked from search results. (Requires AjaxSearch snippet)
    * TinyMCE (4) - 3.2.4.1: TinyMCE RichText Editor Plugin
    * TransAlias (7) - 1.0 - Transliterate document alias

    Snippets are:
    * AjaxSearch (1) - 1.8.3 Ajax enabled search form with results highlighting.
    * Breadcrumbs (2) - 1.0.1 Configurable breadcrumb page trail navigation.
    * Ditto (3) - 2.1+ Summarizes and lists pages to create blogs, catalogs, PR archives, bio listings and more. Includes patches post-2.1 release to fix sorting bug and default display behavior.
    * drumsGallery (1 - Images for drums and percussion page
    * eForm (4) - 1.4.4.6 Robust form parser/processor with validation, multiple sending options, chunk/page support for forms and reports, and file uploads.
    * FirstChildRedirect (5) - 1.0 Automatically redirects to the first child of a folder document.
    * Jot (6) - 1.1.4 User comments with moderation and email subscription.
    * ListIndexer (7) - 1.0.1 Shows the most recent documents, highly flexible.
    * MemberCheck ( - 1.0 Selectively show chunks based on logged in Web User' group memberships.
    * Personalize (9) - 2.0 Basic personalization for web users.
    * Reflect (10) - 2.1 Used with Ditto, creates archives of articles, blog entries, image galleries and more.
    * UltimateParent (11) - 2.0 beta - Travels up the document tree from a specified document and returns the "ultimate" parent.
    * voiceGallery (16) - Images for voice page (Locked)
    * Wayfinder (12) - 2.0 Completely template-driven menu builder that's simple and fast to configure.
    * WebChangePwd (13) - 1.0 Web User Change Password Snippet.
    * WebLogin (14) - 1.0 Web User Login Snippet.
    * WebSignup (15) - 1.1 Web User Signup Snippet.
    * YouTube (17) - Embeds a youTube video (Locked)


  • netProphET - MODX Complete Team Reply #4, 2 years, 1 month ago

    Reply
    Sorry cjvraay, I'm still not following you completely.

    the CMS generates a folder in the root directory with the alias name of the other menu item

    What's "the other menu item"? If there's a menu item, wouldn't it already be a MODx Resource?

    Please clarify - are you saying that if you were to delete this folder 'coaching', then if your Editor goes in and adds another Resource under the Music container, that a root-level container called 'coaching' gets created?


  • cjvraay Reply #5, 2 years, 1 month ago

    Reply
    There are two top level resources with the alias's 'management' and 'coaching'.
    When another resource is created that sits under management a 'coaching' folder gets created in the sites root folder. I have just logged in again now and there is now another folder called the alias of another resource again (EDrumsPersussion). When this happens, the page with that resource no longer works as the browser lists an index of that folder instead of going to the resource. I can delete the folder, but they come back when changes are made or new resources are added - I'm not certain which).


  • netProphET - MODX Complete Team Reply #6, 2 years, 1 month ago

    Reply
    Wow, that's just bizarre. I've never heard of anything like that myself, and can not imagine what could be happening inside the CMS to make that happen. None of the Plugins you've listed could do that.
    Very sorry, cjvraay, I don't know if I can help. All I can suggest is to start disabling plugins, modules, fiddling with site settings.. I'm at a loss.


  • cjvraay Reply #7, 2 years, 1 month ago

    Reply
    I can only assume it is something to do with making friendly URL's, but I'm only new to modx and don't really know enough to understand what's happening under the hood.


  • netProphET - MODX Complete Team Reply #8, 2 years, 1 month ago

    Reply
    I see why you might think that, but the friendly URLs are all virtual - handled by something called "mod_rewrite". In other words, the URLs have nothing to do and are not connected with the filesystem, except that an actual folder or file on the filesystem will take precedence over a MODx resource of the same name. You've already noticed that, it's why you're getting a directory listing instead of your MODx page.

    Do you see any messages logged under Reports > System Events that could be related to this?


  • cjvraay Reply #9, 2 years, 1 month ago

    Reply
    Quote from: netProphET at Mar 25, 2010, 11:10 PM
    Do you see any messages logged under Reports > System Events that could be related to this?

    No, Nothing in there at all.

    I might just try changing that user to admin and see if it solves the problem?