We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20371
    • 58 Posts
    Hi All, thanks in advance...

    the problem
    My gallery install is having trouble generating the path's for images & thumbnails. The error log shows a path like:

    /home/apache/leviwhtc/modx/leviwhtc//assets/gallery/2/12.jpg

    when it should be:

    /home/apache/leviwhtc/modx/assets/gallery/2/12.jpg

    I'm guessing the extraneous 'leviwhtc/' in there is something to do with absolute / relative path conversion. But I've not been able to track down what I have configured incorrectly.

    various versions I'm running:
    Fedora Release 17 (Beefy Miracle)
    MODX Revolution 2.2.4-pl (advanced)
    gallery-1.5.2-pl
    httpd.i686                      2.2.22-4.fc17       @fedora                     
    httpd-devel.i686                2.2.22-4.fc17       @fedora                     
    httpd-tools.i686                2.2.22-4.fc17       @fedora                     
    mysql.i686                      5.5.25a-1.fc17      @updates                    
    mysql-libs.i686                 5.5.25a-1.fc17      @updates                    
    mysql-server.i686               5.5.25a-1.fc17      @updates                    
    php.i686                        5.4.4-4.fc17        @updates                    
    php-cli.i686                    5.4.4-4.fc17        @updates                    
    php-common.i686                 5.4.4-4.fc17        @updates                    
    php-mysql.i686                  5.4.4-4.fc17        @updates                    
    php-pdo.i686                    5.4.4-4.fc17        @updates                    
    


    my phpinfo:
    phpinfo()
    PHP Version => 5.4.4
    
    System => Linux vaio.nerv 3.4.4-5.fc17.i686 #1 SMP Thu Jul 5 20:17:29 UTC 2012 i686
    Build Date => Jul  2 2012 16:31:04
    Configure Command =>  './configure'  '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-t1lib=/usr' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-mhash' '--enable-force-cgi-redirect' '--libdir=/usr/lib/php' '--enable-pcntl' '--with-imap=shared' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbregex' '--with-gd=shared' '--enable-bcmath=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap-sasl' '--enable-mysqlnd=shared' '--with-mysql=shared,mysqlnd' '--with-mysqli=shared,mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-interbase=shared,/usr/lib/firebird' '--with-pdo-firebird=shared,/usr/lib/firebird' '--enable-dom=shared' '--with-pgsql=shared' '--enable-wddx=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--with-curl=shared,/usr' '--enable-fastcgi' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-mysql=shared,mysqlnd' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-pdo-dblib=shared,/usr' '--with-sqlite3=shared,/usr' '--enable-json=shared' '--enable-zip=shared' '--with-libzip' '--without-readline' '--with-libedit' '--with-pspell=shared' '--enable-phar=shared' '--with-mcrypt=shared,/usr' '--with-tidy=shared,/usr' '--with-mssql=shared,/usr' '--enable-sysvmsg=shared' '--enable-sysvshm=shared' '--enable-sysvsem=shared' '--enable-posix=shared' '--with-unixODBC=shared,/usr' '--enable-fileinfo=shared' '--enable-intl=shared' '--with-icu-dir=/usr' '--with-enchant=shared,/usr' '--with-recode=shared,/usr'
    Server API => Command Line Interface
    Virtual Directory Support => disabled
    Configuration File (php.ini) Path => /etc
    Loaded Configuration File => /etc/php.ini
    Scan this dir for additional .ini files => /etc/php.d
    Additional .ini files parsed => /etc/php.d/curl.ini,
    /etc/php.d/fileinfo.ini,
    /etc/php.d/json.ini,
    /etc/php.d/mysql.ini,
    /etc/php.d/mysqli.ini,
    /etc/php.d/pdo.ini,
    /etc/php.d/pdo_mysql.ini,
    /etc/php.d/pdo_sqlite.ini,
    /etc/php.d/phar.ini,
    /etc/php.d/sqlite3.ini,
    /etc/php.d/zip.ini
    
    PHP API => 20100412
    PHP Extension => 20100525
    Zend Extension => 220100525
    Zend Extension Build => API220100525,NTS
    PHP Extension Build => API20100525,NTS
    Debug Build => no
    Thread Safety => disabled
    Zend Signal Handling => disabled
    Zend Memory Manager => enabled
    Zend Multibyte Support => disabled
    IPv6 Support => enabled
    DTrace Support => disabled
    
    Registered PHP Streams => https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
    Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
    Registered Stream Filters => zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk
    
    This program makes use of the Zend Scripting Language Engine:
    Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    
    
     _______________________________________________________________________
    
    
    Configuration
    
    bz2
    
    BZip2 Support => Enabled
    Stream Wrapper support => compress.bzip2://
    Stream Filter support => bzip2.decompress, bzip2.compress
    BZip2 Version => 1.0.6, 6-Sept-2010
    
    calendar
    
    Calendar support => enabled
    
    Core
    
    PHP Version => 5.4.4
    
    Directive => Local Value => Master Value
    allow_url_fopen => On => On
    allow_url_include => Off => Off
    always_populate_raw_post_data => Off => Off
    arg_separator.input => & => &
    arg_separator.output => & => &
    asp_tags => Off => Off
    auto_append_file => no value => no value
    auto_globals_jit => On => On
    auto_prepend_file => no value => no value
    browscap => no value => no value
    default_charset => no value => no value
    default_mimetype => text/html => text/html
    disable_classes => no value => no value
    disable_functions => no value => no value
    display_errors => Off => Off
    display_startup_errors => Off => Off
    doc_root => no value => no value
    docref_ext => no value => no value
    docref_root => no value => no value
    enable_dl => Off => Off
    enable_post_data_reading => On => On
    error_append_string => no value => no value
    error_log => no value => no value
    error_prepend_string => no value => no value
    error_reporting => 22527 => 22527
    exit_on_timeout => Off => Off
    expose_php => On => On
    extension_dir => /usr/lib/php/modules => /usr/lib/php/modules
    file_uploads => On => On
    highlight.comment => <font style="color: #FF8000">#FF8000</font> => <font style="color: #FF8000">#FF8000</font>
    highlight.default => <font style="color: #0000BB">#0000BB</font> => <font style="color: #0000BB">#0000BB</font>
    highlight.html => <font style="color: #000000">#000000</font> => <font style="color: #000000">#000000</font>
    highlight.keyword => <font style="color: #007700">#007700</font> => <font style="color: #007700">#007700</font>
    highlight.string => <font style="color: #DD0000">#DD0000</font> => <font style="color: #DD0000">#DD0000</font>
    html_errors => Off => Off
    ignore_repeated_errors => Off => Off
    ignore_repeated_source => Off => Off
    ignore_user_abort => Off => Off
    implicit_flush => On => On
    include_path => .:/usr/share/pear:/usr/share/php => .:/usr/share/pear:/usr/share/php
    log_errors => On => On
    log_errors_max_len => 1024 => 1024
    mail.add_x_header => On => On
    mail.force_extra_parameters => no value => no value
    mail.log => no value => no value
    max_execution_time => 0 => 0
    max_file_uploads => 20 => 20
    max_input_nesting_level => 64 => 64
    max_input_time => -1 => -1
    max_input_vars => 1000 => 1000
    memory_limit => 128M => 128M
    open_basedir => no value => no value
    output_buffering => 0 => 0
    output_handler => no value => no value
    post_max_size => 8M => 8M
    precision => 14 => 14
    realpath_cache_size => 16K => 16K
    realpath_cache_ttl => 120 => 120
    register_argc_argv => On => On
    report_memleaks => On => On
    report_zend_debug => Off => Off
    request_order => GP => GP
    sendmail_from => no value => no value
    sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i
    serialize_precision => 17 => 17
    short_open_tag => Off => Off
    SMTP => localhost => localhost
    smtp_port => 25 => 25
    sql.safe_mode => Off => Off
    track_errors => Off => Off
    unserialize_callback_func => no value => no value
    upload_max_filesize => 2M => 2M
    upload_tmp_dir => no value => no value
    user_dir => no value => no value
    user_ini.cache_ttl => 300 => 300
    user_ini.filename => .user.ini => .user.ini
    variables_order => GPCS => GPCS
    xmlrpc_error_number => 0 => 0
    xmlrpc_errors => Off => Off
    zend.detect_unicode => On => On
    zend.enable_gc => On => On
    zend.multibyte => Off => Off
    zend.script_encoding => no value => no value
    
    ctype
    
    ctype functions => enabled
    
    curl
    
    cURL support => enabled
    cURL Information => 7.24.0
    Age => 3
    Features
    AsynchDNS => Yes
    Debug => No
    GSS-Negotiate => Yes
    IDN => Yes
    IPv6 => Yes
    Largefile => Yes
    NTLM => Yes
    SPNEGO => No
    SSL => Yes
    SSPI => No
    krb4 => No
    libz => Yes
    CharConv => No
    Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp
    Host => i386-redhat-linux-gnu
    SSL Version => NSS/3.13.4.0
    ZLib Version => 1.2.5
    libSSH Version => libssh2/1.4.1
    
    date
    
    date/time support => enabled
    "Olson" Timezone Database Version => 0.system
    Timezone Database => internal
    Default timezone => Australia/Perth
    
    Directive => Local Value => Master Value
    date.default_latitude => 31.7667 => 31.7667
    date.default_longitude => 35.2333 => 35.2333
    date.sunrise_zenith => 90.583333 => 90.583333
    date.sunset_zenith => 90.583333 => 90.583333
    date.timezone => Australia/Perth => Australia/Perth
    
    ereg
    
    Regex Library => Bundled library enabled
    
    exif
    
    EXIF Support => enabled
    EXIF Version => 1.4 $Id$
    Supported EXIF Version => 0220
    Supported filetypes => JPEG,TIFF
    
    Directive => Local Value => Master Value
    exif.decode_jis_intel => JIS => JIS
    exif.decode_jis_motorola => JIS => JIS
    exif.decode_unicode_intel => UCS-2LE => UCS-2LE
    exif.decode_unicode_motorola => UCS-2BE => UCS-2BE
    exif.encode_jis => no value => no value
    exif.encode_unicode => ISO-8859-15 => ISO-8859-15
    
    fileinfo
    
    fileinfo support => enabled
    version => 1.0.5
    
    filter
    
    Input Validation and Filtering => enabled
    Revision => $Id: e523cdc8829892d1b4f9cb7c3c57b2ba1c36b9ea $
    
    Directive => Local Value => Master Value
    filter.default => unsafe_raw => unsafe_raw
    filter.default_flags => no value => no value
    
    ftp
    
    FTP support => enabled
    
    gettext
    
    GetText Support => enabled
    
    gmp
    
    gmp support => enabled
    GMP version => 5.0.2
    
    hash
    
    hash support => enabled
    Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost adler32 crc32 crc32b fnv132 fnv164 joaat haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 
    
    iconv
    
    iconv support => enabled
    iconv implementation => glibc
    iconv library version => 2.15
    
    Directive => Local Value => Master Value
    iconv.input_encoding => ISO-8859-1 => ISO-8859-1
    iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
    iconv.output_encoding => ISO-8859-1 => ISO-8859-1
    
    json
    
    json support => enabled
    json version => 1.2.1
    
    libxml
    
    libXML support => active
    libXML Compiled Version => 2.7.8
    libXML Loaded Version => 20708
    libXML streams => enabled
    
    mhash
    
    MHASH support => Enabled
    MHASH API Version => Emulated Support
    
    mysql
    
    MySQL Support => enabled
    Active Persistent Links => 0
    Active Links => 0
    Client API version => 5.5.25a
    MYSQL_MODULE_TYPE => external
    MYSQL_SOCKET => /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE => -I/usr/include/mysql
    MYSQL_LIBS => -L/usr/lib/mysql -lmysqlclient 
    
    Directive => Local Value => Master Value
    mysql.allow_local_infile => On => On
    mysql.allow_persistent => On => On
    mysql.connect_timeout => 60 => 60
    mysql.default_host => no value => no value
    mysql.default_password => no value => no value
    mysql.default_port => no value => no value
    mysql.default_socket => /var/lib/mysql/mysql.sock => /var/lib/mysql/mysql.sock
    mysql.default_user => no value => no value
    mysql.max_links => Unlimited => Unlimited
    mysql.max_persistent => Unlimited => Unlimited
    mysql.trace_mode => Off => Off
    
    mysqli
    
    MysqlI Support => enabled
    Client API library version => 5.5.25a
    Active Persistent Links => 0
    Inactive Persistent Links => 0
    Active Links => 0
    Client API header version => 5.5.24
    MYSQLI_SOCKET => /var/lib/mysql/mysql.sock
    
    Directive => Local Value => Master Value
    mysqli.allow_local_infile => On => On
    mysqli.allow_persistent => On => On
    mysqli.default_host => no value => no value
    mysqli.default_port => 3306 => 3306
    mysqli.default_pw => no value => no value
    mysqli.default_socket => no value => no value
    mysqli.default_user => no value => no value
    mysqli.max_links => Unlimited => Unlimited
    mysqli.max_persistent => Unlimited => Unlimited
    mysqli.reconnect => Off => Off
    
    openssl
    
    OpenSSL support => enabled
    OpenSSL Library Version => OpenSSL 1.0.0j-fips 10 May 2012
    OpenSSL Header Version => OpenSSL 1.0.0j-fips 10 May 2012
    
    pcntl
    
    pcntl support => enabled
    
    pcre
    
    PCRE (Perl Compatible Regular Expressions) Support => enabled
    PCRE Library Version => 8.21 2011-12-12
    
    Directive => Local Value => Master Value
    pcre.backtrack_limit => 1000000 => 1000000
    pcre.recursion_limit => 100000 => 100000
    
    PDO
    
    PDO support => enabled
    PDO drivers => mysql, sqlite
    
    pdo_mysql
    
    PDO Driver for MySQL => enabled
    Client API version => 5.5.25a
    
    Directive => Local Value => Master Value
    pdo_mysql.default_socket => /var/lib/mysql/mysql.sock => /var/lib/mysql/mysql.sock
    
    pdo_sqlite
    
    PDO Driver for SQLite 3.x => enabled
    SQLite Library => 3.7.11
    
    Phar
    
    Phar: PHP Archive support => enabled
    Phar EXT version => 2.0.1
    Phar API version => 1.1.1
    SVN revision => $Id: 2a47d3d0354109d8077e34d59f1228ccfd021d59 $
    Phar-based phar archives => enabled
    Tar-based phar archives => enabled
    ZIP-based phar archives => enabled
    gzip compression => enabled
    bzip2 compression => enabled
    Native OpenSSL support => enabled
    
    
    Phar based on pear/PHP_Archive, original concept by Davey Shafik.
    Phar fully realized by Gregory Beaver and Marcus Boerger.
    Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
    Directive => Local Value => Master Value
    phar.cache_list => no value => no value
    phar.readonly => On => On
    phar.require_hash => On => On
    
    readline
    
    Readline Support => enabled
    Readline library => EditLine wrapper
    
    Directive => Local Value => Master Value
    cli.pager => no value => no value
    cli.prompt => \b \>  => \b \> 
    
    Reflection
    
    Reflection => enabled
    Version => $Id: 1cf65cee164ed57874ce2d29e5c46b82f6139524 $
    
    session
    
    Session Support => enabled
    Registered save handlers => files user 
    Registered serializer handlers => php php_binary 
    
    Directive => Local Value => Master Value
    session.auto_start => Off => Off
    session.cache_expire => 180 => 180
    session.cache_limiter => nocache => nocache
    session.cookie_domain => no value => no value
    session.cookie_httponly => Off => Off
    session.cookie_lifetime => 0 => 0
    session.cookie_path => / => /
    session.cookie_secure => Off => Off
    session.entropy_file => /dev/urandom => /dev/urandom
    session.entropy_length => 32 => 32
    session.gc_divisor => 1000 => 1000
    session.gc_maxlifetime => 1440 => 1440
    session.gc_probability => 1 => 1
    session.hash_bits_per_character => 5 => 5
    session.hash_function => 0 => 0
    session.name => PHPSESSID => PHPSESSID
    session.referer_check => no value => no value
    session.save_handler => files => files
    session.save_path => /var/lib/php/session => /var/lib/php/session
    session.serialize_handler => php => php
    session.upload_progress.cleanup => On => On
    session.upload_progress.enabled => On => On
    session.upload_progress.freq => 1% => 1%
    session.upload_progress.min_freq => 1 => 1
    session.upload_progress.name => PHP_SESSION_UPLOAD_PROGRESS => PHP_SESSION_UPLOAD_PROGRESS
    session.upload_progress.prefix => upload_progress_ => upload_progress_
    session.use_cookies => On => On
    session.use_only_cookies => On => On
    session.use_trans_sid => 0 => 0
    
    shmop
    
    shmop support => enabled
    
    SimpleXML
    
    Simplexml support => enabled
    Revision => $Id: 455280fc74f9f002b7314def7a456f6c3080eb92 $
    Schema support => enabled
    
    sockets
    
    Sockets Support => enabled
    
    SPL
    
    SPL support => enabled
    Interfaces => Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
    Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException
    
    sqlite3
    
    SQLite3 support => enabled
    SQLite3 module version => 0.7
    SQLite Library => 3.7.11
    
    Directive => Local Value => Master Value
    sqlite3.extension_dir => no value => no value
    
    standard
    
    Dynamic Library Support => enabled
    Path to sendmail => /usr/sbin/sendmail -t -i
    
    Directive => Local Value => Master Value
    assert.active => 1 => 1
    assert.bail => 0 => 0
    assert.callback => no value => no value
    assert.quiet_eval => 0 => 0
    assert.warning => 1 => 1
    auto_detect_line_endings => 0 => 0
    default_socket_timeout => 60 => 60
    from => no value => no value
    url_rewriter.tags => a=href,area=href,frame=src,input=src,form=fakeentry => a=href,area=href,frame=src,input=src,form=fakeentry
    user_agent => no value => no value
    
    tokenizer
    
    Tokenizer Support => enabled
    
    xml
    
    XML Support => active
    XML Namespace Support => active
    libxml2 Version => 2.7.8
    
    zip
    
    Zip => enabled
    Extension Version => $Id$
    Zip version => 1.9.1
    Compiled against libzip version => 0.10.1
    
    zlib
    
    ZLib Support => enabled
    Stream Wrapper => compress.zlib://
    Stream Filter => zlib.inflate, zlib.deflate
    Compiled Version => 1.2.5
    Linked Version => 1.2.5
    
    Directive => Local Value => Master Value
    zlib.output_compression => Off => Off
    zlib.output_compression_level => -1 => -1
    zlib.output_handler => no value => no value
    
    Additional Modules
    
    Module Name
    
    Environment
    
    Variable => Value
    XDG_VTNR => 1
    XDG_SESSION_ID => 2
    TERMINATOR_UUID => urn:uuid:20536cc6-4df2-4f40-96f9-81690e7c3b38
    HOSTNAME => vaio.nerv
    GIO_LAUNCHED_DESKTOP_FILE_PID => 1692
    IMSETTINGS_INTEGRATE_DESKTOP => yes
    GPG_AGENT_INFO => /run/user/levi/keyring-mogR7U/gpg:0:1
    TERM => xterm
    SHELL => /bin/bash
    HISTSIZE => 1000
    GJS_DEBUG_OUTPUT => stderr
    WINDOWID => 39845892
    GNOME_KEYRING_CONTROL => /run/user/levi/keyring-mogR7U
    QTDIR => /usr/lib/qt-3.3
    QTINC => /usr/lib/qt-3.3/include
    GJS_DEBUG_TOPICS => JS ERROR;JS LOG
    IMSETTINGS_MODULE => none
    QT_GRAPHICSSYSTEM_CHECKED => 1
    USER => levi
    LS_COLORS => rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
    SSH_AUTH_SOCK => /run/user/levi/keyring-mogR7U/ssh
    SESSION_MANAGER => local/unix:@/tmp/.ICE-unix/937,unix/unix:/tmp/.ICE-unix/937
    USERNAME => levi
    GIO_LAUNCHED_DESKTOP_FILE => /usr/share/applications/terminator.desktop
    PATH => /usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/levi/.local/bin:/home/levi/bin:/home/levi/scripts
    MAIL => /var/spool/mail/levi
    DESKTOP_SESSION => gnome
    QT_IM_MODULE => xim
    PWD => /home/levi
    XMODIFIERS => @im=none
    GNOME_KEYRING_PID => 933
    LANG => en_US.UTF-8
    KDE_IS_PRELINKED => 1
    KDEDIRS => /usr
    GDMSESSION => gnome
    HISTCONTROL => ignoredups:ignorespace
    XDG_SEAT => seat0
    HOME => /home/levi
    SHLVL => 2
    GNOME_DESKTOP_SESSION_ID => this-is-deprecated
    LOGNAME => levi
    QTLIB => /usr/lib/qt-3.3/lib
    DBUS_SESSION_BUS_ADDRESS => unix:abstract=/tmp/dbus-wLEXZWeSzo,guid=9fbcaffa59dba1134a11207100000026
    LESSOPEN => ||/usr/bin/lesspipe.sh %s
    WINDOWPATH => 1
    XDG_RUNTIME_DIR => /run/user/levi
    DISPLAY => :0
    QT_PLUGIN_PATH => /usr/lib64/kde4/plugins:/usr/lib/kde4/plugins
    COLORTERM => gnome-terminal
    XAUTHORITY => /var/run/gdm/auth-for-levi-qKh3DE/database
    _ => /usr/bin/php
    
    PHP Variables
    
    Variable => Value
    _SERVER["XDG_VTNR"] => 1
    _SERVER["XDG_SESSION_ID"] => 2
    _SERVER["TERMINATOR_UUID"] => urn:uuid:20536cc6-4df2-4f40-96f9-81690e7c3b38
    _SERVER["HOSTNAME"] => vaio.nerv
    _SERVER["GIO_LAUNCHED_DESKTOP_FILE_PID"] => 1692
    _SERVER["IMSETTINGS_INTEGRATE_DESKTOP"] => yes
    _SERVER["GPG_AGENT_INFO"] => /run/user/levi/keyring-mogR7U/gpg:0:1
    _SERVER["TERM"] => xterm
    _SERVER["SHELL"] => /bin/bash
    _SERVER["HISTSIZE"] => 1000
    _SERVER["GJS_DEBUG_OUTPUT"] => stderr
    _SERVER["WINDOWID"] => 39845892
    _SERVER["GNOME_KEYRING_CONTROL"] => /run/user/levi/keyring-mogR7U
    _SERVER["QTDIR"] => /usr/lib/qt-3.3
    _SERVER["QTINC"] => /usr/lib/qt-3.3/include
    _SERVER["GJS_DEBUG_TOPICS"] => JS ERROR;JS LOG
    _SERVER["IMSETTINGS_MODULE"] => none
    _SERVER["QT_GRAPHICSSYSTEM_CHECKED"] => 1
    _SERVER["USER"] => levi
    _SERVER["LS_COLORS"] => rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
    _SERVER["SSH_AUTH_SOCK"] => /run/user/levi/keyring-mogR7U/ssh
    _SERVER["SESSION_MANAGER"] => local/unix:@/tmp/.ICE-unix/937,unix/unix:/tmp/.ICE-unix/937
    _SERVER["USERNAME"] => levi
    _SERVER["GIO_LAUNCHED_DESKTOP_FILE"] => /usr/share/applications/terminator.desktop
    _SERVER["PATH"] => /usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/levi/.local/bin:/home/levi/bin:/home/levi/scripts
    _SERVER["MAIL"] => /var/spool/mail/levi
    _SERVER["DESKTOP_SESSION"] => gnome
    _SERVER["QT_IM_MODULE"] => xim
    _SERVER["PWD"] => /home/levi
    _SERVER["XMODIFIERS"] => @im=none
    _SERVER["GNOME_KEYRING_PID"] => 933
    _SERVER["LANG"] => en_US.UTF-8
    _SERVER["KDE_IS_PRELINKED"] => 1
    _SERVER["KDEDIRS"] => /usr
    _SERVER["GDMSESSION"] => gnome
    _SERVER["HISTCONTROL"] => ignoredups:ignorespace
    _SERVER["XDG_SEAT"] => seat0
    _SERVER["HOME"] => /home/levi
    _SERVER["SHLVL"] => 2
    _SERVER["GNOME_DESKTOP_SESSION_ID"] => this-is-deprecated
    _SERVER["LOGNAME"] => levi
    _SERVER["QTLIB"] => /usr/lib/qt-3.3/lib
    _SERVER["DBUS_SESSION_BUS_ADDRESS"] => unix:abstract=/tmp/dbus-wLEXZWeSzo,guid=9fbcaffa59dba1134a11207100000026
    _SERVER["LESSOPEN"] => ||/usr/bin/lesspipe.sh %s
    _SERVER["WINDOWPATH"] => 1
    _SERVER["XDG_RUNTIME_DIR"] => /run/user/levi
    _SERVER["DISPLAY"] => :0
    _SERVER["QT_PLUGIN_PATH"] => /usr/lib64/kde4/plugins:/usr/lib/kde4/plugins
    _SERVER["COLORTERM"] => gnome-terminal
    _SERVER["XAUTHORITY"] => /var/run/gdm/auth-for-levi-qKh3DE/database
    _SERVER["_"] => /usr/bin/php
    _SERVER["PHP_SELF"] => -
    _SERVER["SCRIPT_NAME"] => -
    _SERVER["SCRIPT_FILENAME"] => 
    _SERVER["PATH_TRANSLATED"] => 
    _SERVER["DOCUMENT_ROOT"] => 
    _SERVER["REQUEST_TIME_FLOAT"] => 1342874244.4999
    _SERVER["REQUEST_TIME"] => 1342874244
    _SERVER["argv"] => Array
    (
        [0] => -
    )
    
    _SERVER["argc"] => 1
    
    PHP License
    This program is free software; you can redistribute it and/or modify
    it under the terms of the PHP License as published by the PHP Group
    and included in the distribution in the file:  LICENSE
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    
    If you did not receive a copy of the PHP license, or have any
    questions about PHP licensing, please contact [email protected].
    1
    


    error log:
     [2012-07-21 20:22:29] (ERROR @ /leviwhtc/modx/assets/components/gallery/connector.php) [phpThumbOf] Could not generate thumbnail: /home/apache/leviwhtc/modx/leviwhtc//assets/gallery/1/11.jpg - Debug: Array
    (
        [0] => phpThumb() v1.7.9-200712090829 in file "phpthumb.class.php" on line 216
        [1] => setCacheDirectory() starting with config_cache_directory = "/home/apache/leviwhtc/modx/core/cache/phpthumb/" in file "phpthumb.class.php" on line 919
        [2] => setting config_cache_directory to realpath(/home/apache/leviwhtc/modx/core/cache/phpthumb) = "/home/apache/leviwhtc/modx/core/cache/phpthumb" in file "phpthumb.class.php" on line 947
        [3] => ResolveFilenameToAbsolute() prepending $this->config_document_root (/home/apache) to $filename (/leviwhtc/modx/assets/gallery/1/11.jpg) resulting in ($AbsoluteFilename = "/home/apache/leviwhtc/modx/assets/gallery/1/11.jpg") in file "phpthumb.class.php" on line 1025
        [4] => setSourceFilename(/home/apache/leviwhtc/modx/assets/gallery/1/11.jpg) set $this->sourceFilename to "/home/apache/leviwhtc/modx/assets/gallery/1/11.jpg" in file "phpthumb.class.php" on line 243
        [5] => setCacheDirectory() starting with config_cache_directory = "/home/apache/leviwhtc/modx/assets/components/gallery/cache/" in file "phpthumb.class.php" on line 919
        [6] => setting config_cache_directory to realpath(/home/apache/leviwhtc/modx/assets/components/gallery/cache) = "/home/apache/leviwhtc/modx/assets/components/gallery/cache" in file "phpthumb.class.php" on line 947
        [7] => setSourceFilename(/home/apache/leviwhtc/modx/leviwhtc//assets/gallery/1/11.jpg) set $this->sourceFilename to "/home/apache/leviwhtc/modx/leviwhtc//assets/gallery/1/11.jpg" in file "phpthumb.class.php" on line 243
        [8] => skipping CleanUpCacheDirectory() set to purge (30.0 days; 100.00MB; 10,000 files) in file "phpthumb.class.php" on line 652
        [9] => ImageTypes() does not exist - GD support might not be enabled? in file "phpthumb.class.php" on line 874
        [10] =>   file_exists() = 0 in file "phpthumb.class.php" on line 1101
        [11] => is_executable() = 0 in file "phpthumb.class.php" on line 1102
        [12] => using ImageMagick path from `which convert` (/usr/bin/convert) in file "phpthumb.class.php" on line 1121
        [13] => ImageMagick version checked with "convert --version" in file "phpthumb.class.php" on line 1148
        [14] => ImageMagick did not return recognized version string (Version: ImageMagick 6.7.5-6 2012-03-06 Q16 http://www.imagemagick.org
    Copyright: Copyright (C) 199
      • 20371
      • 58 Posts
      since there's been no responses (fair enough.. I guess it's a fairly obscure/rare problem) I thought I'd post here what I've done to work around the problem, in case anyone else runs in to it.

      It's probably the dirtiest nastiest hack / workaround I've ever used, but hey, I'm too lazy to dig through the source anymore to find out what's actually going on. Also, considering this is a development server, I'm half suspecting the problem to resolve itself once I push it to the prodn server.

      So... I just included a str_replace call in the setSourceFilename function in php.thumb.class like so:

      $sourceFilename = str_replace('leviwhtc/modx/leviwhtc//assets', 'leviwhtc/modx/assets', $sourceFilename);


      dirty hack: yes
      ugly: yes
      prone to breaking: yes
      going to cause another dev headaches at some point: probably
      working for now: yes!!
        • 9995
        • 1,613 Posts
        sorry can't help u,

        maybe post your modx version and/or post in the general threats.
        must be some setting in paths or gallery config.
          Evolution user, I like the back-end speed and simplicity smiley