Keyword

Frontend editing cancel (Joomla! v3.2 - K2 v2.6.7)

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 9 months ago #121097 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Frontend editing cancel (Joomla! v3.2 - K2 v2.6.7)
You mean you tried without the anticopy extension, right?

Is the script Yiota mentioned still appearing? (Check the frame's source code)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #121098 by Abombazza
Hi at all

i have the same error but i don't use anticopy or anything else.
You cans ee the error here: www.veneregiardini.com/venusgarden
The file is: media/jui/js/jquery.min.js

In k2 parameter use jquery remote copy 1.8.x
I have joomla 3.2.1 and k2 latest version.

Thank you

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #121099 by Yiota
Hello @abombazza,

Probably some javascript conflict occurs in your site. Try to disable any plugin that uses jQuery and check again.

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #121100 by Bogdan Voaidas
Replied by Bogdan Voaidas on topic Re: Frontend editing cancel (Joomla! v3.2 - K2 v2.6.7)
Also it might be a problem if you have like me the K3 Framework active with caching active. Then the script looks for the wrong script name like "k2.js". None of the scripts are named like that after caching. Then everything fails with an undefined value of the K2SitePath and the GET request is made to the /undefinedindex.php...
Still didn't manage to understand the regex thing in there.
I mention that my site is in root.
Strange, the save works.
media/k2/assets/js/k2.js line 21
function getUrlParams(targetScript, varName) {
			var scripts = document.getElementsByTagName('script');
			var scriptCount = scripts.length;
			for (var a = 0; a < scriptCount; a++) {
				var scriptSrc = scripts[a].src;
				if (scriptSrc.indexOf(targetScript) >= 0) {
					varName = varName.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
					var re = new RegExp("[\\?&]" + varName + "=([^&#]*)");
					var parsedVariables = re.exec(scriptSrc);
					if (parsedVariables !== null) {
						return parsedVariables[1];
					}
				}
			}
		}

		// Set the site root path
		var K2SitePath = getUrlParams('k2.js', 'sitepath');

Anyway i just set the value of K2SitePath to "" in my case

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago - 10 years 8 months ago #121101 by Lefteris
Thank you for your input @Bogdan Voaidas.

Maybe your template has a compress javascript option that needs to be disabled.
That could also be the case.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum