We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23
    • 61 Posts
    Ah i forgot that the default xampp doesn’t have gdlib installed, had to add it manually, since the filemanager needs it to display and cache the thumbnails for image previews.

    But everthing else should work fine after a plain install of xampp.
      • 31601
      • 57 Posts
      012h-

      I verified my phpinfo, and seems like GD is installed as per the latest version of xampp.

      Ok, this is so frustrating!  A couple of things I’ve noticed:
      When using the manage files link to view files on the site, I cannot view previews of any images.  When I click on the little magnifying glass, nothing loads.
      When using an image TV, the Image TV preview plugin doesn’t function.
      When using an image TV, I can use the button in the TV to open the mcpuk editor to browse for a filename.  However, if I install advmedia, I get the same 404 error and advmedia can’t access the mcpuk editor.  The same mis-formed URL appears in both instances of opening a seperate window with mcpuk editor for file browsing.

      Now, what gets even weirder-

      I have another site installed locally on .9.6.1.  This site has an .htaccess file to allow friendly URL’s.
      With this site, I can preview images in the manage files interface, no problem.
      Haven’t tried adding the Image TV preview plugin with it- I’ll have to see about that.
      Haven’t tried installing advMedia- I don’t want to break this site as I’m using it for maintenance for a live site, I do testing on my local server.

      What’s really frustrating- I copy the .htaccess file for this site into the site folder where I’m working with advmedia, and enable friendly URL’s in the manager.  Site breaks with "too many forward attempts" errors.

      WTF?  I’ve verified paths in the configuration pages of the manager I don’t know how many times: everything seems fine.


      REALLLY starting pull my hair out today.

      UPDATE:  Ok, I figured out the friendly URL problem- it was due to the mechanism for rewrites in the old .htaccess that came with .9.6.1.  No big deal: I just used the newer, more friendly version that came with .9.6.3.  FURL’s work without issue on the newer testing install.

      However, I still have the same problem that I outlined above.  with avmedia installed, the mcpuk interface for file browsing breaks with the 404 error in both the avmedia TV interface and the image TV interface. If I uninstall the avmedia module and plugin, problem goes away.
        • 23
        • 61 Posts
        :D

        When you say the standard Image-TV preview in the manager doesn’t work, and the advmedia brings a 404 during you try to open the filemanager, so i think you have a problem with javascript, since both only works with javascript.

        If you use Firefox, have a look at the javascript/error console during the error occurs, can be found under extras, this information helps alot solving the problem.

        I bet that there’s something, maybe another addon, or just an additional plugin for tinymce, which is going to disturb everthing with its javascript code, since everthing is included on one page, javascript code and variable names should be unique or at least identical when included twice on a page.

        BTW: did you disabled the url-rewrite for the manager?

          • 31601
          • 57 Posts
          I’ve found the problem- it seems to be in your javascript code.

          When I view the frame source code in firefox (which, by the by, did NOT produce any errors in the error console, since this is specifically a path problem, not a javascript error), I see the problem.

          When you are making the calls to browse specific directories for different media types with OpenServerBrowser, the paths are not correct (missing the root directory) for Type=images and Type=files. Why you have files in there, I’m not sure, since you are dealing with media files only in your system.

          Here is what I’m talking about, I’ll highlight the path omissions in bold blue text.

          Here is the call for browsing the images folder, in the javascript you generate in the page:

          function BrowseServer(ctrl) {
          lastImageCtrl = ctrl;
          var w = screen.width * 0.7;
          var h = screen.height * 0.7;
          OpenServerBrowser(’/MISSING ROOT PATH/manager/media/browser/mcpuk/browser.html?Type=images&Connector=/MISSING ROOT PATH/manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=/’, w, h);
          }

          Here is the call for browsing the files folder, in the javascript you generate in the page:

          function BrowseFileServer(ctrl) {
          lastFileCtrl = ctrl;
          var w = screen.width * 0.7;
          var h = screen.height * 0.7;
          OpenServerBrowser(’/MISSING ROOT PATH/manager/media/browser/mcpuk/browser.html?Type=files&Connector=/MISSING ROOT PATH/manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=/’, w, h);
          }

          Here is a correct call for browsing the media folder, the same goes for the flash folder. These are properly formed URL’s, with the part that is missing in the above examples highlighted in blue.

          function BrowseMediaServer(ctrl) {
          lastFileCtrl = ctrl;
          var w = screen.width * 0.7;
          var h = screen.height * 0.7;
          OpenServerBrowser(’/modxdev/manager/media/browser/mcpuk/browser.html?Type=media&Connector=/modxdev/manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=/modxdev/’, w, h);
          }


            • 23
            • 61 Posts
            Yea, that’s it, some pathes are hardcoded, some are not, i really don’t know what i should do without people like you, thanks for your patience and a shame on me rolleyes

            This can be easily fixed, since it’s just a path problem.

            To fix it just open the file container_main.html in /assets/plugins/advmedia/templates/plugin and replace the first slash in all pathes with {base_url}, should look like {base_url}manager/... after that.

            Or simply overwrite the file container_main.html with the one into the zip i attached in folder /assets/plugins/advmedia/templates/plugin

            Trying to update the packages everywhere with the fixed files for this, so that people with modx in a subfolder don’t experience the same.


              • 31601
              • 57 Posts
              No shame! What you’ve created is brilliant, I just like to help out where I can!

              I’ll update the files on my local install as you suggested- excellent work!
                • 23
                • 61 Posts
                Well, thanks but it still was negligent from me which shouldn’t happen anymore, wrote it down on my board in front of me -> "Check your templates twice before release!!!" laugh

                BTW: If a moderator reads this, would be fine if someone could update the zip archive for advmedia, or even delete the whole addon, since i hate moderated repositories.

                Latest download is available at: http://wiki.012h.de/doku.php?id=advmedia:download

                Thanks
                  • 14774
                  • 4 Posts
                  Question about uploading a video file to AdvMedia. I am new to MODx and have successfully installed AdvMedia and can see the player in my preview window but when i go to upload a video the Fckeditor does not show any files to upload. I have various flash, swf files but i can’t upload any of them. please help.
                    • 23
                    • 61 Posts
                    Hi joshdadams

                    seems that you haven’t enabled the corresponding file-extensions for uploading, have a look at -> Tools -> Configuration -> Interface & Features

                    Scroll down to "Uploadable Media-Types" and "Uploadable Flash Types" and ensure that the extensions flv and swf are in the list
                      • 14774
                      • 4 Posts
                      Thanks for the info, i checked and they are listed. It shouldn’t matter that i’m using a local server testing everything out while I’m learning right? Thanks again for the help.