We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27210
    • 158 Posts
    found the problem - see my post further down...
    Crud - i know this is a path issue but i’m having trouble finding it.

    I moved my site from /home3/signcarv/public_html/modx/ezdacc up one level to /home3/signcarv/public_html/ezdacc.

    Now my phpthumbs don’t show (However, when i click the thumb text "Click to zoom", it does show larger picture)

    I uncommented and changed the following line in phpThumb.comfig.php (didn’t help)
    $PHPTHUMB_CONFIG['document_root'] = '/home3/signcarv/public_html/ezdacc';


    This is my call to MaxiGallery to list the thumbs
    <li> <a href="javascript:void(0);"
    onClick="javascript:showPic('[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]','[+maxigallery.picture.title:htmlent+]','[+maxigallery.picture.descr:htmlent+]',[+maxigallery.picture_width_normal+],[+maxigallery.picture_height_normal+]);return false;"> <img src="[+phx:phpthumb:input=`[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]`:phpthumb=`&h=80&w=120&zc=1&q=95`+]" class="thumbnail" title="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" /> </a> </li>


    Thank you!
    Steve
      • 7923
      • 4,213 Posts
      access phpthumb check and demo page to see what errors it prints out, the files are where you installed phothumb:

      demo/phpThumb.demo.check.php
      demo/phpThumb.demo.demo.php


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 27210
        • 158 Posts
          • 27210
          • 158 Posts
          ok i found the problem - i had to remove the [(base_url)] from the phx:phpthumb file i created (see below).

          <?php
          $output = '[(base_url)]/assets/snippets/phpthumb/phpThumb.php?src=' . $output . $options;
          return str_replace('&', '&', $output);
          ?>
          
            • 7923
            • 4,213 Posts
            Hmm.. ok... have you checked what your base_url config prints out`? is it correct?

            Anyways, good that you got it solved.


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 27210
              • 158 Posts
              Doze - sorry for the dumb question - how do i do that?
                • 7923
                • 4,213 Posts
                Well.. you put [(base_url)] to a document and see what it prints out when you view it.

                I was just thinking that after you have moved the site, it can point to a wrong directory..


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 27210
                  • 158 Posts
                  OK - my base_url is /

                  Good to know! Thanks Doze.