Post by Julmuzy » Fri Jul 01, 2022 7:09 pm

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

Newbie

Posts

Joined
Fri Jul 01, 2022 6:58 pm

Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by Julmuzy » Tue Jul 05, 2022 11:34 pm

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.

Newbie

Posts

Joined
Fri Jul 01, 2022 6:58 pm

Post by ADD Creative » Wed Jul 06, 2022 12:22 am

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.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by khangwei » Sat Jul 09, 2022 4:23 pm

hi I have the same problem and only have 1 language... this is frustrating.

Newbie

Posts

Joined
Fri Apr 22, 2022 4:08 pm

Post by khangwei » Sat Jul 09, 2022 5:05 pm

may i check if you installed any extension then this happened?

Newbie

Posts

Joined
Fri Apr 22, 2022 4:08 pm

Post by ADD Creative » Sun Jul 10, 2022 2:55 am

khangwei wrote:
Sat Jul 09, 2022 4:23 pm
hi I have the same problem and only have 1 language... this is frustrating.
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

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by kontheod » Sat Nov 12, 2022 7:59 pm

Today I had the same issue in one of my clients...
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>');
			}
		}
....

Newbie

Posts

Joined
Sat Nov 12, 2022 7:57 pm
Who is online

Users browsing this forum: No registered users and 28 guests