Opened 7 years ago

Closed 6 years ago

#1231 closed defect (invalid)

Extended File Manager Bug?

Reported by: guest Owned by:
Priority: normal Milestone: 0.96
Component: Plugins Version: trunk
Severity: normal Keywords:
Cc:

Description (last modified by gogo)

I set up EFM and edited the config file to suit. The important lines in this case are:

$IMConfig['base_dir'] = getcwd();
$IMConfig['base_url'] = '';


/*
	 File system path to the directory you want to manage the images
	 for multiple user systems, set it dynamically.
*/
$IMConfig['images_dir'] = '/var/www/html/images/';

Looks fine to me. However when I open the Image Manager I get "Invalid base directory: /var/www/html/images/". On examination of the HTML source of the image manager I find

<script type="text/javascript">
/* <![CDATA[ */

	if(window.opener)
		Xinha = window.opener.Xinha;
		
	var thumbdir = "thumbnails";
	var base_url = "/test_zone/xinha/plugins/ExtendedFileManager//var/www/html/images/";
    
*rest edited out *
</script>
]}}
It looks like base_url is base_dir and images_dir welded together! 

Is this a known issue? I couldn't find anything in the forum archive. Is there a recommended work around?

Change History (3)

comment:1 Changed 6 years ago by gogo

  • Description modified (diff)

comment:2 Changed 6 years ago by gogo

  • Description modified (diff)

comment:3 Changed 6 years ago by gogo

  • Resolution set to invalid
  • Status changed from new to closed

You must specify both images_dir and images_url, the default images_url is only suitable for the default images_dir.

Note: See TracTickets for help on using tickets.