We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41086
    • 7 Posts
    Dear MODXers

    My first question in my first MODx project. After moving my installation from local to a testing server following the guide (http://rtfm.modx.com/display/revolution20/Moving+Your+Site+to+a+New+Server) the Manager plugin has some issues:
    When in the Gallery tab within the manager all links point to pages outside the manager (e.g link to system settings points to http://www.mysite.com/?a=69). In HTML the links look as usual (e.g. <a href="?a=69">). The gallery listing looks as shown in the attached image. The Gallery images on the site do not appear (through the connector, e.g. http://www.mysite.com/assets/components/gallery/connector.php?action=web/phpthumb&w=100&h=100&zc=1&far=C&q=90&src=%2Fassets%2Fgallery%2F2%2F12.jpg).

    Any suggestions?

    Thank you
      • 36624
      • 535 Posts
      1) You need to review and change all the gallery settings in the site settings. (cf my screenshot. Note: in my case modx is in a subfolder /geronimo/).
      2) verify that your gallery folder is writable. [ed. note: emmanuel last edited this post 11 years, 4 months ago.]
        CTRL+SHIFT+U - Clear Cache
        CTRL+SHIFT+H - Hiding Heft Panel
        CTRL+SHIFT+N - Fast Create Resource
        CTRL+ALT+P - Preview Recource (in edit resorce window)
        CTRL+ALT+S - Save
        • 41086
        • 7 Posts
        Hi emmanuel

        Thank you for your reply.
        In the meantime I installed a fresh and empty MODX on another website on the same server/provider and simply installed the Gallery addon via addon manager. The result is quite the same. It seems to be a server specific problem. The attached error message appears if entering the Gallery tab in the in the fresh installation's manager.
        The paths in the system settings were as following:
        gallery.files_path: [[+assets_path]]gallery/
        gallery.files_url: [[+assets_url]]gallery/
        Changing to server specific values do not have an influence. Directory permissions are correct. Actually MODX itself created the directories in the new installation.

        You can see the output of phpinfo() at http://modx.onlinefactory.ch/php.php . Do you see something conflicting with MODX?

        Thank you [ed. note: mathis last edited this post 11 years, 4 months ago.]
          • 36561
          • 38 Posts
          Did you check the paths in your config files?
          /config.inc.php
          /connectors/config.inc.php
          /manager/config.inc.php
          /core/config/config.inc.php

          Your paths need to be the same in all files. When you have any symlinks, use the absolute path, not the symlink.


            • 41086
            • 7 Posts
            Dear Sascha

            Thank you for the answer.

            In all config files (but /core/config.inc.php) are dynamic path definitions like
            "define('MODX_CORE_PATH', dirname(dirname(__FILE__)) . '/core/');". They point to the right paths and I didn't change these definitions.

            Well nevertheless I tried by entering absolute paths statically - with no effect. I assume the problem in the server environment since I cannot install MODX + Gallery in a cleander way than how I did it. Actually the "internal server error" point in that direction. The search goes on...
              • 38290
              • 712 Posts
              Quote from: saschame at Nov 26, 2012, 09:36 AM
              Did you check the paths in your config files?
              /config.inc.php
              /connectors/config.inc.php
              /manager/config.inc.php
              /core/config/config.inc.php

              Your paths need to be the same in all files. When you have any symlinks, use the absolute path, not the symlink.



              Definitely check the config files. Also, sometimes when I'm moving a site and debugging something like this I download a local copy of the website files & database and search through them for "old absolute" paths. There may still be incorrect references in the database. I've noticed that Ace often needs to be reinstalled after a site has been moved, this makes me think it's probably leaving an absolute path around here or there.
                jpdevries
                • 41086
                • 7 Posts
                Thank you.

                But as I stated before, for not letting legacy date to have an influence I test-installed a totally fresh MODX (2.2.5-pl) in a totally new website with a totally new MySQL database and the only thing I did after installation was adding the Gallery add-on. When clicking on the Gallery tab in the manager the error message http://forums.modx.com/attachment/download?file=8569 appears. I think it has something to do with the server environment. Is in the environment somethings that strikes in your eye?
                The environment of the test installation: http://modx.onlinefactory.ch/php.php
                  • 36561
                  • 38 Posts
                  Do you have an error_log output from when that error happens?
                    • 41086
                    • 7 Posts
                    No, error log is empty. But I'm sure it is a server specific problem. Analyzing the Apache log I found out that calling http://modx.onlinefactory.ch/assets/components/gallery/connector.php writes down a 404 in the log, returning the "500 Internal Server Error" in the browser. Actually every PHP script called within the /assets directory and its subdirectories behaves like that - for whatever reason.
                    It seems as I have to have a serious word with my provider...

                    Thanks a lot for your patience, Emmanuel, Sascha and Johnpaul.
                      • 36624
                      • 535 Posts
                      Quote from: mathis at Nov 26, 2012, 06:18 PM
                      . Actually every PHP script called within the /assets directory and its subdirectories behaves like that - for whatever reason.

                      I think there is a simple problem here : where are the files ?? http://modx.onlinefactory.ch/assets/gallery/2/12.jpg is empty ? You have to find why..
                      if there is one then you have to verify:

                      1) your .htaccess is correct.
                      2) your chmod on assets/gallery/ is correct
                      3) your settings in gallery.assets_path (your-full-url/modx/assets/components/gallery/) and gallery.assets_url (/modx/assets/components/gallery/) are correct.
                        CTRL+SHIFT+U - Clear Cache
                        CTRL+SHIFT+H - Hiding Heft Panel
                        CTRL+SHIFT+N - Fast Create Resource
                        CTRL+ALT+P - Preview Recource (in edit resorce window)
                        CTRL+ALT+S - Save