OC 3.0.3.8
I'm getting an error reported from system logs:
"File does not exist: /var/www/vhosts/shop_url/httpdocs/eshop/admin/view/javascript/summernote/lang/summernote-en-US,en_US.UTF-8,en_US,en-gb,english-EN-US,EN_US.UTF-8,EN_US,EN-GB,ENGLISH.min.js, referer: https://shop_url/admin/index.php?route=catalog/product/edit&user_token=2u1Fgfz9XDkxTAT0WmrqCXNewSFqB1Ns&product_id=71&page=2"
This happens when the admin section of OC is used for editing products.
Appears to be because the file mentioned isn't in the summernote folder. I checked with summernote's repository and the file doesn't exist with the version of summernote that ships with this version of OC. Later versions of summernote do have this file.
Anyone else noticed this and is there a solution?
Thank you
No, I don't think so. I had a look at that thread before I made my post. I don't have any other locales other than the default. There's a file call which doesn't exist, not even in Summernote's repository for the version shipped with OC. I find it difficult to understand how this issue hasn't been raised before.
Looks like that issue to me. It was only in 3.0.3.8 and you will get the request for a file that will never exist even if you only have one language.
It will probably be this issue. The number of languages doesn't matter just the language codes used.
https://github.com/opencart/opencart/issues/10259
Today I had the same issue in one of my clients...
Here is my approach and is working :
Here is my approach and is working :
Code: Select all
$(document).ready(function() {
// Override summernotes image manager
$('[data-toggle=\'summernote\']').each(function() {
var element = this;
if ($(this).attr('data-lang')) {
subStr = $(this).attr('data-lang').substring(0, 5);
//alert(subStr);
if (subStr!='en-US') {
$('head').append('<script type="text/javascript" src="view/javascript/summernote/lang/summernote-' + subStr + '.min.js"></script>');
}
}
....
Who is online
Users browsing this forum: No registered users and 106 guests