We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36562
    • 94 Posts
    Sorry for writing yet another post on this issue. I have spent two days trying to solve this and finally i have to give up. I have read all forum posts (i believe) on this subject, and tried mostly everything and still can not seem to get it to work.

    Problem:
    When clicking the image symbol in TinyMCe, folders are shown in the tree on the left, no matter if i go from "filesystem" into the folder where i have my images or select the media source i have preset - i see a "thumb"list of "broken" image symbols with the correct filename below.

    Same problem if i go through a template variable of type image and wanna select an image that way. But then no thumbnail is shown when selected below the tv image select box.

    Media source settings: Both paths set relative and to assets/theme/images/

    I have tried setting the DOCUMENT_ROOT in system settings - no luck.
    Also set : phpThumb Allow src Above Document to YES - no luck

    I saw someone altering modxphpthumb.class.php - but lost that and never got around to it.

    Have emptied the cache folder to let modx crate new thumbs - no luck.

    So .. Any ideas?
      --------------------------------------
      www.williamastrom.se
      • 36562
      • 94 Posts
      And : It works on my local xampp installation - but not live. No ~in my paths or anything. Just thought it could be worth mentioning.
        --------------------------------------
        www.williamastrom.se
        • 36562
        • 94 Posts
        Im on a shared host.
          --------------------------------------
          www.williamastrom.se
        • What's the src on the broken img tags? Open the page up in the web inspector and check.

          They should look something like this:
          <img src="/connectors/system/phpthumb.php?src=assets%2Fimages%2Ftimeline.jpg&w=100&h=80&f=png&q=90&far=1 &HTTP_MODAUTH=modx51656df57320b7.12085994_1516ff7252bd2e2.83450271&wctx=mgr&source=1" title="timeline.jpg">

          The relevant parts are in bold: source is the number of the media source you're using, so its path plus that of src should add up to a correct path and filename.
          I'm not sure where things are going wrong, but looking at that might give you some clue...
            Extras :: pThumbResizerimageSlimsetPlaceholders
            • 36562
            • 94 Posts
            /connectors/system/phpthumb.php?src=.%2Fbackground2.png&w=100&h=80&f=png&q=10&far=1&HTTP_MODAUTH=modx516e77de4a2e50.41909954_15177940e2f83f6.10346557&wctx=mgr&source=4" title="background2.png"

            unfortuntely it seems correct to me
              --------------------------------------
              www.williamastrom.se
              • 36562
              • 94 Posts
              Quote from: DesignByWilliam at Apr 24, 2013, 05:24 PM
              /connectors/system/phpthumb.php?src=.%2Fbackground2.png&w=100&h=80&f=png&q=10&far=1&HTTP_MODAUTH=modx516e77de4a2e50.41909954_15177940e2f83f6.10346557&wctx=mgr&source=4" title="background2.png"

              unfortuntely it seems correct to me

              hmm.. seems like src assets/theme/images are missing - you got yours there.
                --------------------------------------
                www.williamastrom.se
                • 36562
                • 94 Posts
                Well i guess it was correct ( except the dot ). Basically have the media source set correctly, and thats why there is no assets/images as in your example since your media source 1 is probably pointing to your root.
                  --------------------------------------
                  www.williamastrom.se
                  • 36562
                  • 94 Posts
                  Thought is was imagemagick that was a problem...But it seems like its installed.

                  imagick module enabled
                  imagick module version 3.1.0RC1
                  imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
                  ImageMagick version ImageMagick 6.6.9-7 2012-08-17 Q16 http://www.imagemagick.org
                  ImageMagick copyright Copyright (C) 1999-2011 ImageMagick Studio LLC
                  ImageMagick release date 2012-08-17
                  ImageMagick number of supported formats: 198
                  ImageMagick supported formats 3FR, A, AAI, AI, ART, ARW, AVI, AVS, B, BGR, BGRA, BMP, BMP2, BMP3, BRF, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FITS, FRACTAL, FTS, G, G3, GIF, GIF87, GRADIENT, GRAY, GROUP4, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, INFO, INLINE, IPL, ISOBRL, J2C, JNG, JP2, JPC, JPEG, JPG, JPX, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAP, MAT, MATTE, MIFF, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MTV, MVG, NEF, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG24, PNG32, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, R, RADIAL-GRADIENT, RAF, RAS, RGB, RGBA, RGBO, RLA, RLE, SCR, SCT, SFW, SGI, SHTML, SR2, SRF, STEGANO, SUN, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YCbCr, YCbCrA, YUV

                  Directive Local Value Master Value
                  imagick.locale_fix 0 0
                  imagick.progress_monitor 0 0
                    --------------------------------------
                    www.williamastrom.se
                  • Quote from: DesignByWilliam at Apr 24, 2013, 06:26 PM
                    Well i guess it was correct ( except the dot ). Basically have the media source set correctly, and thats why there is no assets/images as in your example since your media source 1 is probably pointing to your root.

                    That's right. The dot should matter either; assets/images/image.jpg should be the same thing as assets/images/./image.jpg. And it wouldn't be an ImageMagick problem in this case. Hmm...
                    How about this: what's the difference in the src between a thumbnail in the file browser window (broken image) and the preview for an image TV (displays correctly)? The same image file will not display in the file browser, but if you select it for a TV, will then display correctly as a TV preview, right?
                      Extras :: pThumbResizerimageSlimsetPlaceholders
                      • 36562
                      • 94 Posts
                      No that one is broken too. I suppose you mean me setting a tv to image, add it to a template, and then go it to a resource using that template, go to tv panel and click the img selectbox, then select the "broken image" and then the thumbnail that should be displayed under the select box.. Is broken too:/
                        --------------------------------------
                        www.williamastrom.se