1

Topic: no thumbs

Hi,

Im trying to set up the php ver. of imageviewer, but something is wrong sad

No pictures/thumbs is generated? - What could be wrong?
and... when I select a picture, it do not return the picturename (the tooltip on the picture is corret, but javascript:inserturl('') is empty)

What do I do wrong ?

2

Re: no thumbs

Hmm, do you have write access to the folder?

Do you mean that no image path is returned when using the example index.html sent with the imagemanager?

Afraithe
TinyMCE Developer
Moxiecode Systems

3

Re: no thumbs

Hi Afraithe,

The write access is ok - I've tried to upload a picture, and that went well

Yes exactly - and instead of a picture i've got the red X

Take a lot http://www.proacademy.dk/imagemanager/

Last edited by gernot (2005-07-18 19:43:23)

4

Re: no thumbs

I think it would help if you set php_errors = on in your php ini config.

Afraithe
TinyMCE Developer
Moxiecode Systems

5

Re: no thumbs

Ehmm... I'm not that familiar with php... sooo... in which file do I find that line ?

6

Re: no thumbs

Well, it should be a php.ini file in either c:/windows if you run a windows server, or the php folder.

If you run linux/apache it should be amongst your /etc/ files.

If your on a hosting server and can't access php, try making a phpinfo.php file with the following content

<?php
phpinfo();
?>

Put it on the server and post the link here.

Afraithe
TinyMCE Developer
Moxiecode Systems

7

Re: no thumbs

Hi again,

Check http://www.proacademy.dk/imagemanager/phpinfo.php :-)

8

Re: no thumbs

Thats really strange, you have a very normal setup in your PHP ini file, I can not quite understand why it doesn't work, and no PHP errors are shown either.

Try checking the settings in you config for imagemanger, the preview settings etc.

Afraithe
TinyMCE Developer
Moxiecode Systems

9

Re: no thumbs

:-(   I can't find a thing...

What the &%"#/& to do ???

10

Re: no thumbs

Post your config here.

Afraithe
TinyMCE Developer
Moxiecode Systems

11

Re: no thumbs

Here u go..


config.php

<?
    // Include your custom classes here
    // require_once("classes/Plugins/ExampleAuthenticatorImpl.class.php");
    // require_once("classes/Plugins/LoggingFileEventListener.class.php");

    // General options
    $mcImageManagerConfig['general.demo'] = false;
    $mcImageManagerConfig['general.demo_msg'] = "This application is running in demostration mode, this action is restricted.";
    $mcImageManagerConfig['general.theme'] = "default";
    $mcImageManagerConfig['general.toolbar'] = "createdir,upload,refresh";
    $mcImageManagerConfig['general.user_friendly_paths'] = true;
    $mcImageManagerConfig['general.disabled_tools'] = "";
    $mcImageManagerConfig['general.login_page'] = "login.php";
    $mcImageManagerConfig['general.allow_override'] = "*";

    // Preview options
    $mcImageManagerConfig['preview'] = true;
    $mcImageManagerConfig['preview.wwwroot'] = "";
    $mcImageManagerConfig['preview.urlprefix'] = "http://" . $_SERVER['HTTP_HOST'] . "/";
    $mcImageManagerConfig['preview.urlsuffix'] = "";
    $mcImageManagerConfig['preview.allow_override'] = "*";

    // Create directory options
    $mcImageManagerConfig['createdir.include_directory_pattern'] = '';
    $mcImageManagerConfig['createdir.exclude_directory_pattern'] = '/[^a-z0-9_]/';
    $mcImageManagerConfig['createdir.invalid_directory_name_msg'] = "Error: The name of the directory is invalid.";
    $mcImageManagerConfig['createdir.allow_override'] = "*";

    // General filesystem options
    $mcImageManagerConfig['filesystem'] = "LocalFileImpl";
    $mcImageManagerConfig['filesystem.path'] = "images";
    $mcImageManagerConfig['filesystem.rootpath'] = "images";
    $mcImageManagerConfig['filesystem.datefmt'] = "Y-m-d H:i";
    $mcImageManagerConfig['filesystem.include_directory_pattern'] = '';
    $mcImageManagerConfig['filesystem.exclude_directory_pattern'] = '';
    $mcImageManagerConfig['filesystem.invalid_directory_name_msg'] = "Error: The name of the directory is invalid.";
    $mcImageManagerConfig['filesystem.include_file_pattern'] = '/\.jpg$|\.gif$|\.png$|\.bmp$/i';
    $mcImageManagerConfig['filesystem.exclude_file_pattern'] = '/^\.|^\.\.|mcic_/i';
    $mcImageManagerConfig['filesystem.invalid_file_name_msg'] = "Error: The name of the file is invalid.";
    $mcImageManagerConfig['filesystem.extensions'] = "gif,jpg,png,bmp";
    $mcImageManagerConfig['filesystem.invalid_extension_msg'] = "Error: The extension of the file is invalid.";
    $mcImageManagerConfig['filesystem.file_event_listeners'] = "";
    $mcImageManagerConfig['filesystem.readable'] = "true";
    $mcImageManagerConfig['filesystem.writable'] = "true";
    $mcImageManagerConfig['filesystem.delete_recursive'] = "false";
    $mcImageManagerConfig['filesystem.directory_templates'] = "";
    $mcImageManagerConfig['filesystem.force_directory_templates '] = false;
    $mcImageManagerConfig['filesystem.allow_override'] = "*";

    // Thumbnail options
    $mcImageManagerConfig['thumbnail.extension_image'] = true;
    $mcImageManagerConfig['thumbnail.width'] = "150"; // px
    $mcImageManagerConfig['thumbnail.height'] = "150"; // px
    $mcImageManagerConfig['thumbnail.scale_mode'] = "percentage"; // percentage,resize
    $mcImageManagerConfig['thumbnail.margin_around'] = "5"; // px
    $mcImageManagerConfig['thumbnail.border_style'] = "1px solid #CCCCCC";
    $mcImageManagerConfig['thumbnail.image_tools'] = "preview,info,delete,edit";
    $mcImageManagerConfig['thumbnail.insert'] = true;
    $mcImageManagerConfig['thumbnail.information'] = "width,height,type,size,scale";
    $mcImageManagerConfig['thumbnail.use_exif'] = false; // use exif th if avalible
    $mcImageManagerConfig['thumbnail.allow_override'] = "*";

    // Thumbnail generation with GD options
    $mcImageManagerConfig['thumbnail.gd.enabled'] = false; // false default, verify that you have GD on your server
    $mcImageManagerConfig['thumbnail.gd.auto_generate'] = true; // only if above is set to true
    $mcImageManagerConfig['thumbnail.gd.folder'] = "mcith"; // required, exclude this folder with file pattern '/^mcith$/i' if you don't want it to show
    $mcImageManagerConfig['thumbnail.gd.prefix'] = "mcith_"; // optional
    $mcImageManagerConfig['thumbnail.gd.delete'] = true; // delete th when original is deleted
    $mcImageManagerConfig['thumbnail.gd.jpeg_quality'] = 75; // quality of th image, note that this is not checked against when regenerating ths.
    $mcImageManagerConfig['thumbnail.gd.allow_override'] = "*";

    // Upload options
    $mcImageManagerConfig['upload.maxsize'] = "10MB";
    $mcImageManagerConfig['upload.include_file_pattern'] = '';
    $mcImageManagerConfig['upload.exclude_file_pattern'] = '/\.php$|\.shtm$/i';
    $mcImageManagerConfig['upload.invalid_file_name_msg'] = "Error: The file name is invalid, only a-z, 0-9 and _ characters are allowed.";
    $mcImageManagerConfig['upload.extensions'] = "gif,jpg,png,bmp";
    $mcImageManagerConfig['upload.invalid_extension_msg'] = "Error: Invalid extension: Valid extensions are: gif,jpg,png,bmp.";
    $mcImageManagerConfig['upload.create_thumbnail'] = false; // true/false, create thumbnail on upload
    $mcImageManagerConfig['upload.allow_override'] = "*";

    // Authenication with Session
    $mcImageManagerConfig['authenticator'] = "BaseAuthenticator";
    $mcImageManagerConfig['authenticator.session.logged_in_key'] = "isLoggedIn";
    $mcImageManagerConfig['authenticator.session.groups_key'] = "groups";
    $mcImageManagerConfig['authenticator.allow_override'] = "*";

    // Local filesystem options
    $mcImageManagerConfig['filesystem.local.file_mask'] = "0777";
    $mcImageManagerConfig['filesystem.local.directory_mask'] = "0777";
    $mcImageManagerConfig['filesystem.local.access_file_name'] = "mc_access";
    $mcImageManagerConfig['filesystem.local.allow_override'] = "*";

    // Filemanager configuration
    $mcImageManagerConfig['filemanager.urlprefix'] = "../filemanager";

    // LoggingFileEventListener plugin options
    /*
    $mcImageManagerConfig['LoggingFileEventListener.path'] = ".";
    $mcImageManagerConfig['LoggingFileEventListener.prefix'] = "mcimagemanager";
    $mcImageManagerConfig['LoggingFileEventListener.max_size'] = "100k";
    $mcImageManagerConfig['LoggingFileEventListener.max_files'] = "10";
    */
?>

12

Re: no thumbs

Ive tried to figure this one out for a while now, but I can't seem to find whats wrong.

Try putting your domain name in the preview config.

$mcImageManagerConfig['preview.urlprefix'] = "http://"  "/";

Also check weblogs for error messages etc.

Afraithe
TinyMCE Developer
Moxiecode Systems

13

Re: no thumbs

Hi...

After copying the new files (newest version) into the web, my problem went away.... everything is OK !!! big_smile