Welcome, Guest
Username: Password: Remember me

TOPIC: [CLOSED] Undefined property: JDomFrameworkJqueryCore::$live

Undefined property: JDomFrameworkJqueryCore::$live​ 15 Oct 2013 08:55 #11393

  • ewajoom
  • ewajoom's Avatar
  • Offline
  • Junior Member
  • Posts: 36
  • Thank you received: 2
  • Karma: 0
Hi,
(sorry : almost same post yesterday, but I've posted it on a closed ticket and not a of new topic)

After installation of my 2.5 component, I've got on each screen this error.
Undefined property: JDomFrameworkJqueryCore::$live

I've seen the ticket : click here but this line doesn't appear in helper :
$doc->addScript('code.jquery.com/jquery.min.js');

As it seems to be due to live() property in last version of jquery, I've tried to change in dom/framework/jquery/core.php :
protected $hostedSource = 'http://code.jquery.com/jquery.min.js';
by
protected $hostedSource = 'http://code.jquery.com/jquery-1.8.2.min.js';

and
$this->attachJs[] = 'jquery.min.js';
by
$this->attachJs[] = 'jquery-1.8.2.min.js';

Same error, it seems that the changes I've made didn't change anything...

PS : there's a reference to 1.9.1 css : $doc->addStyleSheet('code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css');
The administrator has disabled public write access.

Undefined property: JDomFrameworkJqueryCore::$live​ 16 Oct 2013 21:06 #11405

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Can you explain the context please ?

List on item view ? Front or Back ?
When is this error ocurring.

I guess in a form...
Wich js plugin is making the error ? I mean wich field type ? (can be calendar, color picker, modal box, file uploader...) Features that are using javascript...

And if you want, tell me wich PTL (Project Table Layout), I will have a look.
Coding is now a piece of cake
The administrator has disabled public write access.

Undefined property: JDomFrameworkJqueryCore::$live​ 16 Oct 2013 21:36 #11407

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Can you find the live() function inside your component ?
I can't find anything.

Cook is made to work on the latests versions of each integrated libs, so if your Joomla is already loading jQuery, but old version, you should upgrade it.

I am affraid your problem might not come from Cook.
Does it raise in sandbox 2.5 ?
Coding is now a piece of cake
Last Edit: 16 Oct 2013 21:36 by admin.
The administrator has disabled public write access.

Undefined property: JDomFrameworkJqueryCore::$live​ 21 Oct 2013 13:06 #11424

  • ewajoom
  • ewajoom's Avatar
  • Offline
  • Junior Member
  • Posts: 36
  • Thank you received: 2
  • Karma: 0
There's no particular context.
Using joomla 2.5.14, just after installation of component when I access to the component I've got this error on each page, in backend ou frontend (even on general page of the component in backend)

On line, in sandbox, there's no error..
The administrator has disabled public write access.

Undefined property: JDomFrameworkJqueryCore::$live​ 21 Oct 2013 13:21 #11425

  • ewajoom
  • ewajoom's Avatar
  • Offline
  • Junior Member
  • Posts: 36
  • Thank you received: 2
  • Karma: 0
live() is called from core.php in administrator/components/com_mycomp/dom/framework/jquery/core.php
The file is the same file as created (no changes)
Line 48 :
	function build()
	{
		//jQuery already in the core since Joomla 3.0. Load it with the native class.
		if ($this->jVersion('3.0'))
		{
			JHtml::_('jquery.framework', false);
			return;
		}

		[b]if ($this->live)[/b]
			$this->addScript($this->hostedSource);
		else
			$this->attachJs[] = 'jquery.min.js';
		
				
		if (!$this->isAjax())
		{
			$jQueryNoConflict = 'jQuery.noConflict();';
			$this->addScriptInline($jQueryNoConflict);			
		}

	}
The administrator has disabled public write access.

Undefined property: JDomFrameworkJqueryCore::$live​ 26 Oct 2013 13:51 #11472

  • ewajoom
  • ewajoom's Avatar
  • Offline
  • Junior Member
  • Posts: 36
  • Thank you received: 2
  • Karma: 0
Hi,

As there's no workaround, I've commented the lines :
//if ($this->live)
			$this->addScript($this->hostedSource);
		//else
		//	$this->attachJs[] = 'jquery.min.js';
The administrator has disabled public write access.

Undefined property: JDomFrameworkJqueryCore::$live​ 30 Oct 2013 16:59 #11496

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Yes, sorry, I thought it was the jQuery deprecated live() function.
live is in facts a property of the class.

Anyway... FIXED
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: ewajoom
Time to create page: 0.073 seconds

Get Started