When I upload images in static pages using TinyMce editor I have got only small icon of broken image. When I checked source I realized that link is wrongly written by TinyMce image upload plugin.
It is written as //public/site…
but the correct path is /public/site…
Note that there should be only one /.
When I removed one / image is shown properly.
Please fix that.
Hi @vvucic,
Which application and what version are you using? (Please include this in your posts.)
Regards,
Alec Smecher
Public Knowledge Project Team
I use OJS version 3.0.1.0 in uploading images to static pages
I Guess that something in /plugins/generic/tinymce/justboil.me/integratePKP.php
should be changed. Please advise
I have done the following:
- In the /plugins/generic/tinymce/justboil.me/integratePKP.php in line 44
I put
$config[‘img_path’] = ‘/public/site/images/myuser’;
instead of
$config[‘img_path’] = $integratePKP->getPKPImageUrl();
and it works fine.
Maybe there is better solution but according to instructions in config file this should be surely fine.
Hi @vvucic,
Was your base_url
setting configured properly in config.inc.php
?
Regards,
Alec Smecher
Public Knowledge Project Team
I checked now. The base address is fine.
I upgraded to OJS 3.0.2.0
and checked again all things.
I realized that guy who keep server put address
as domain.com/
with the slash at the end.
I removed that slash and as far as I see upload of images works fine.
Is that OK?