We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 50046
    • 7 Posts
    So I was trying to change where the image files were saving on the server by following this guide:
    http://rtfm.modx.com/revolution/2.x/administering-your-site/media-sources/securing-a-media-source/creating-a-media-source-for-clients-tutorial

    But when I tried changing "Media Source" editing the basePath and baseUrl to say assets/images/, then hit "Save" it seems to save, but when I reload the page, those fields are empty again.

    Not sure if this affects other fields in the admin (I can save regular page content fine).

    No clue what version of Modx I'm running since it no longer says it in the upper left/right like it used to. [ed. note: hippypink last edited this post 11 years, 6 months ago.]
      • 32507
      • 142 Posts
      Do you have access policy permission to save Media Sources?

      You can find version From System settings > System & Server > Setting Version
        • 50046
        • 7 Posts
        Not sure what is meant by: "Do you have access policy permission to save Media Sources?"

        I am logged in as admin, and have default role of Super User, if that helps.


        2.3.1-pl
          • 32507
          • 142 Posts
          Then it's hard to say (for me, at least smiley.

          Do you double click the field value OR right click > Update Property?

          For some reason right click method is not always working as intented.

          You can also try to install newest Revo version.
            • 50046
            • 7 Posts
            I have tried both

            Interestingly, I logged back in today, and one of them is saved.

            However, when I look in the DB, I see this:

            a:3:{s:8:"basePath";a:6:{s:4:"name";s:8:"basePath";s:4:"desc";s:23:"prop_file.basePath_desc";s:4:"type";s:9:"textfield";s:7:"options";a:0:{}s:5:"value";s:16:""assets/images/"";s:7:"lexicon";s:11:"core:source";}s:7:"baseUrl";a:6:{s:4:"name";s:7:"baseUrl";s:4:"desc";s:22:"prop_file.baseUrl_desc";s:4:"type";s:9:"textfield";s:7:"options";a:0:{}s:5:"value";s:14:"assets/images/";s:7:"lexicon";s:11:"core:source";}s:15:"imageExtensions";a:6:{s:4:"name";s:15:"imageExtensions";s:4:"desc";s:30:"prop_file.imageExtensions_desc";s:4:"type";s:9:"textfield";s:7:"options";a:0:{}s:5:"value";s:20:"jpg,jpeg,png,gif,psd";s:7:"lexicon";s:11:"core:source";}}

            It looks like the path IS actually being saved in the db even though it doesnt show in the admin. Unfortunately, it doesnt show in the admin, and more importantly, when I go to the Media Browser, there were no images in there, even though I can see many images in there on the server.

            When I try uploading an image, I got:
            The specified directory is not a directory.: /home3/username/public_html/"assets/images"

            I tried single, double, and no quote marks in that db field. Removing quote marks fixed it, but I had to delete cache, so this could be all caused by caching issues.

            But, then i have a new issue. The thumbnails are all broken, so I try visiting one of the image thumbnail paths (not sure if this should work):

            http://www.example.com/connectors/system/phpthumb.php?src=neck_brace.jpg&w=100&h=80&f=png&q=90&far=1&HTTP_MODAUTH=modx5424ecd87e8020.21199023_15500f11c8f1514.96111491&wctx=mgr&source=2

            and it shows

            Notice: unserialize(): Error at offset 152 of 637 bytes in /home3/john/public_html/core/xpdo/om/xpdoobject.class.php on line 1061
            
            Notice: unserialize(): Error at offset 152 of 637 bytes in /home3/john/public_html/core/xpdo/om/xpdoobject.class.php on line 1061
            
            Notice: unserialize(): Error at offset 152 of 637 bytes in /home3/john/public_html/core/xpdo/om/xpdoobject.class.php on line 1061
            
            Notice: unserialize(): Error at offset 152 of 637 bytes in /home3/john/public_html/core/xpdo/om/xpdoobject.class.php on line 1061
            ‰PNG  IHDRd9ÀòŽ}gAMA±üasRGB®Îé cHRMz&€„ú€èu0ê`:˜pœºQ<�bKGDÿÿÿ ½§“	pHYsÊ&ó?5ÃIDATxÚU¼YŒeYvž÷íáŒwŠsäÃÕU’´ÃþÞ‡”Å/%Ö{ÔÅkW†è¥4HÁôãv¼ðh­ˆÓ¤ý<®µ&µâ6”Ä9‡÷þÔ ¬µ q–’¤1J ¸Ó4˜Æ€÷D‘B IÇdY‚Vš¦qÌæ5ee)– uã¢]´àÕÂúã‘´VJ:¼7x»Ä˜‚E±À#™.f,ªš¼;^@€R1B(¬©p%J4ª=t¦.................etc....
            



            I really cant afford to upgrade. It cost me way too much to upgrade to my current version. I often miss Wordpress at times like this. Besides, generally speaking, the newer and more complex a software platform is, the more likely something will break, and harder to fix.
              • 50046
              • 7 Posts
              Still cant figure this out.
                • 32507
                • 142 Posts
                This is going over my head also sad

                If the (empty field) problem is on the browser? I've also sometimes noticed that some fields seem to be empty, but the stuff is on database. Some IE (8?) version if i remember.

                Hope someone can help you better with thumbnail problem.

                I'm also starting to learn Wordpress. Sometimes feels that MODx requires too much coding/server/database knowledge :/
                  • 3749
                  • 24,544 Posts
                  I'm not an expert on Media Sources, but I think rather than editing the default Media Source, you want to create a new one.
                    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
                    • 44195
                    • 293 Posts
                    @hippypink
                    Is your admin user account part of any groups besides the administration one?

                    Also, I remember 2.3.1 had issues with saving context settings.. maybe it was the same with media sources but went unnoticed.
                      I'm lead developer at Digital Penguin Creative Studio in Hong Kong. https://www.digitalpenguin.hk
                      Check out the MODX tutorial series on my blog at https://www.hkwebdeveloper.com
                      • 17412
                      • 270 Posts
                      +1 on this > values not saving in Media Source. Have tried editing both the default media source and create a new one.
                      MODx Revo: 2.3.3-pl
                      Logged in as admin / sudo.

                      I found a workaround: add your baseUrl + basePath values etc > SAVE > Clear Cache