I have noticed that the image uploader in journal setup page is not working. It happens in both of our 2.3.7 and 2.4.6 versions.
It is very similar to issue logged here: Upload images from any user in OJS
As soon as I click the image icon, below error occurs:
failed to load /[journal_initials]/lib/pkp/lib/tinymce/jscripts/tiny_mce/plugins/jbimages/ci/index.php/blank/english
404 Not Found
When I browse and select an image to be uploaded, the spinner keeps spinning and below error occurs:
rest_url os on and base_url[journal_initials] is set.
TinyMCE plugin is enabled also.
The error logged in server log:
404 Not Found -- RequestPath: /[journal_initials]/lib/pkp/lib/tinymce/jscripts/tiny_mce/plugins/jbimages/ci/index.php/listImages/, referer: https://dev-demo1.library.qut.edu.au/lib/pkp/lib/tinymce/jscripts/tiny_mce/plugins/jbimages/dialog.htm
Also I have this warning on the setup page:
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
I checked TinyMCE version integrated with ojs 2.4.6 (latest avalable). It is 3.4.9 which is quite behind. The latest TinyMCE version available is 4.2.5.
Anyway I noticed there was a fix in TinyMCE 3.5b2:
Saying:
Fixed bug where WebKit would fail to open the image dialog since it would be returning false for a class name instead of a string
I was wondering if anyone is aware of this or it might be related?
I’ll leave @beghelli to follow up – but just to note that OJS 3.0 already has an updated TinyMCE. Currently OJS 3.0 is in beta, so please watch our website for concrete release plans. Until then it’s under development and not ready for production use.
I don’t think the problem you’re encountering is related to that bug – the image uploader is known to be working for many users on a variety of platforms, so it’s likely to be related to file permissions or a specific rewrite setup.
Regards,
Alec Smecher
Public Knowledge Project Team
This issue is not solved yet. I wanted to debug lib/pkp/lib/tinymce/jscripts/tiny_mce/plugins/jbimages/integratePKP.php to see valuse for baseUrl and ImageDir. However it seems it never gets to this file. I even tried disabling and enabling TinyMCE plugin. Which didn’t help. Would you please advice?
Actually we have already released and the site is available publicly. (version 2.4.6)
you can try image uploader on user profile page for example.
Thanks @beghelli. I tried adding that commit to my 2.4.6 version, but it didn’t fix the issue upload image. I think we wait for the stable version 3.0. Is there any estimation of the release date for that one?
@hardi, do you have any re-write rules in place? Can you use the browser’s Web Inspector to share the details of the request and server response for this image?