We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 35756
    • 166 Posts
    Hi there!

    I'm using MODX 2.2.14 on a customer's server which uses "lighttpd". I have edited the rewrite-rules according to the MODx-documentation for FURL's, the pages are getting rewritten as they should (http://rtfm.modx.com/revolution/2.x/getting-started/installation/basic-installation/lighttpd-guide).

    Now to my problem: inbetween the site there are images included via MIGX and [[!getImageList? &tpl=`Artikelbild` &tvname=`Artikelbild`]] which shall be displayed. When I take a look at the source-code of the frontend, I get the following:

    <img src="/assets/bilder/assets/bilder/startseite.jpg" width="100%" title="Startseite" />

    But it has to be like this:

    <img src="/assets/bilder/startseite.jpg" width="100%" title="Startseite" />

    So there's one "assets/bilder" generated too much.

    When I try to access the images directly via my browser-address-line like this

    http://www.webseite.de/assets/bilder/startseite.jpg

    I'm getting an error site like the file is not available. But this is not true, the file is definately positioned in this folder!

    Additionally I have the problem that I use an external css-file which hold some background-images, which I first entered with related paths. But those don't show up in the front-end. Then I tried to change the relative paths to absolute paths, but without any difference.

    Does anyone has any tipps for me to solve these problems?

    Cheers!

    slope


    MODX Version: 2.2.14

    PHP Version: PHP Version 5.4.4-14+deb7u9

    Datenbank (MySQL, SQL Server, etc) Version: 5.5.37

    Sonstige Server Info:

    Installierte MODX Extras: firstchildredirect, formit, migx, phpthumbof, tinymce, wayfinder

    Error Log Inhalte: [2014-05-21 13:53:49] (ERROR @ /home/www/webseite.de/html/manager/controllers/default/resource/update.class.php : 140) PHP warning: Invalid argument supplied for foreach()
    [2014-05-23 07:44:45] (ERROR @ /connectors/system/settings.php) Error caching lexicon topic lexicon/de/core/namespace
    [2014-05-23 09:34:41] (ERROR @ /connectors/system/phpthumb.php) phpThumb was unable to generate a thumbnail for: /home/www/webseite.de/html/core/cache/phpthumb/wort-christi.de__src7177e72357236cc16ad89185719f5000_parefcba3366147621f49fb575debb0441d_dat0.ico
    [2014-05-23 09:34:41] (ERROR @ /connectors/system/phpthumb.php) Error outputting thumbnail:
    OutputThumbnail() failed because !is_resource($this->gdimg_output) in file "phpthumb.class.php" on line 578
      • 35756
      • 166 Posts
      Ok,

      the 2nd problem is solved...it was my own fault as I only edited the first entries of my CSS-file. But it has been made for Responsive Design, so I had to edit some more entries to get the correct paths to the images. Now they are displayed!

      But the first problem still exists. I changed via Tools -> Mediasources in the Filesystem the entries for basePath and baseUrl from "assets/bilder/" to empty. Now the paths are correct in the front-end.

      But this leads into another problem...I created an author-login and defined those paths in Mediasources so that if the author-user uses the file-browser for uploading a file he get's automatically logged into the specified folder (assets/bilder). With those changes I made described in the paragrahp before the user now get's logged in to the root-folder. I don't want it to work this way, the author-user shall still be logged in to the specified folder (assets/bilder/). Any hint to achieve this?
        • 35756
        • 166 Posts
        Ok...

        by using "&processTVs=`0`" inside my getImageList-call I can set the media-sources-folder again and the paths are generated correctly...thanks to Bruno for sorting that out for me!