#365 custom/ext/modules

closed
nobody
None
5
2012-10-18
2012-10-13
Anonymous
No

Hello,

when choosing an icon for a module in tree, custom/ext/modules is read and i can choose my custom icon, but then the image is not found in tree. probably because in ajax_folder_options.tpl the path to the icon is always \"ext/modules\".

Simple Groupware version: 0.745
Simple Groupware language: de
PHP Version: 5.3.10-1ubuntu3.1
Database + Version: mysql 552
Server OS: Linux ubuntu02 3.2.0-24-generic #37-Ubuntu SMP Wed Apr 25 08:43:22 UTC 2012 x86_64
Webserver: Apache/2.2.22 (Ubuntu)
Webbrowser: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4
APC cache usage: nicht installiert
Disk usage: 42 GB / 507 GB

Discussion

  • Thomas Bley

    Thomas Bley - 2012-10-13

    Hello,

    ext/ contains a .htaccess file that will redirect to custom/ or ext/ if a target file exists there.
    Maybe you disabled .htaccess rules.

    bye
    Thomas

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-10-15

    Hello,

    mod_rewrite wasnt loaded, so i loaded it. Now PHPINFO shows it among loaded modules. Also in_array('mod_rewrite',apache_get_modules()) returns true.
    My custom icons are in custom/ext/modules, and can be read by apache, i can choose the icons from folder options.
    bin/ext/.htaccess contains:

    <IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{REQUEST_METHOD} ^GET
    RewriteCond %{REQUEST_URI} /ext/(.*)/
    RewriteCond %{REQUEST_FILENAME}%{PATH_INFO} ^(.*)/(ext/.*)$
    RewriteCond %1/../custom/%2 -f
    RewriteCond %{REQUEST_URI} ^(.*)/ext/
    RewriteRule .* %1/../custom/ext/$0 [L]

    RewriteCond %{REQUEST_METHOD} ^GET
    RewriteCond %{REQUEST_URI} /ext/(.*)/
    RewriteCond %{REQUEST_FILENAME}%{PATH_INFO} ^(.*)/(ext/.*)$
    RewriteCond %1/../ext/%2 -f
    RewriteCond %{REQUEST_URI} ^(.*)/ext/
    RewriteRule .* %1/../ext/ext/$0 [L]

    I deleted the cache. Apache Errorlog only shows:

    File does not exist: /var/www/sgs/bin/ext/modules/buch-icon.png .... etc

    But still the images dont show up in browser.
    Thx for support

    Christian

     
  • Thomas Bley

    Thomas Bley - 2012-10-17

    Hello,

    mod_rewrite needs to be activated with AllowOverride All in the Apache config. If this doesn't work, you might ask the Apache mailing lists for help to get mod_rewrite working.

    bye
    Thomas

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-10-18

    hi Thomas,

    thx "AllowOverride" wasnt set right.

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-10-18
    • status: open --> closed
     

Log in to post a comment.