I am using BUEditor and IMCE. Every time I click "Browse" (either for URL or an image), I get the following error:
Not Found
The requested URL /none/src.htm was not found on this server.
When I view the File Browser under /user/1/imce it works fine.
This is the code associated with the insert image button from BuEditor:
php:
$imce_url = function_exists('imce_menu') && user_access('access imce') ? url('imce/browse') : '';
return "js:
var B = eDefBrowseButton('$imce_url', 'attr_src', 'Browse', 'image');
var form = [
{name: 'src', title: 'Image URL', suffix: B},
{name: 'width', title: 'Width x Height', suffix: ' x ', getnext: true, attributes: {size: 3}},
{name: 'height', attributes: {size: 3}},
{name: 'alt', title: 'Alternative text'},
{name: 'class', title: 'Position: left, right, album or leave blank'}
];
eDefTagDialog('img', form, 'Insert/edit image', 'OK');
";
This was working on my local machine. When I switched to my web server, this problem started happening. My sites directory is now structured like sites/sitename/files as opposed to sites/default/files. I had to make the change to imce.page.inc as seen in this post to get my images to have the correct path with IMCE:
http://drupal.org/node/846136#comment-3200050
Thank you for any help
Comments
Comment #1
ufku commentedThis is 5.x button code.
Use the latest BUeditor and run update.php.
You can copy the button code from the default editor.