I've installed and configured Imagebrowser to use the WYSIWYG-API with FCK-Editor 2.6.5 on drupal 6.14. Everything works fine, except the final step. I created a new input format that uses only the Image Browser Filter. Than I configured the FCKEditor Profile to show only the button for the image browser.
So I can create a new page and choose my new input format. The FCK comes up with the imagebrowser button. I hit the button and the imagebrowser shows up with my images. I can choose an image and set all options. But finally when I hit 'Insert', nothing happens, the image browser stays open and no image is inserted. 'Cancel', 'Close' and 'Delete' do what they are supposed to do, but 'Insert' does not work.
Comments
Comment #1
jdelaune commentedGetting any javascript errors?
Comment #2
ppcc commentedHi
See this thread:
http://drupal.org/node/564822
Comment #3
Algebraist commentedThat is a good hint! Currently I'm using PHP5.1, so this might be the cause. I will update my PHP and report if it fixes this issue.
Comment #4
Algebraist commentedYes, that solves it. I updated my php to 5.2.6 and now it works like a charme.
So I think the requirements in README.txt should claim that only PHP >= 5.2 is supoorted (json_encode() is available).
Comment #5
jdelaune commentedThanks for flagging this. I might write a custom json_encode() to do the job.
Comment #6
scroogie commentedThis is from the php.net documentation page of json_encode, a substitute:
Comment #7
Macronomicus commentedhmm im running PHP 5.2.6-3 .... I am using pressflow drupal and also in the Pantheon Mercury ubuntu server with Varnish and APC. I sure hope its not some cache issue and that its json.. json seems easier to fix!
I am using a current PHP but still have a dead Insert button, is this for sure a json issue?
Firebug output...
Comment #8
peter törnstrand commentedThe method described in #6 is now implemented.