ST2.1 - Uncaught TypeError: Object [object Object] has no method 'link' - sencha-touch

I've just tried to upgrade my ST2.0 source files of my application to ST2.1 by copying over all the javascript files in my project in the 'src' folder. When I load the first screen I get the following error:
Uncaught TypeError: Object [object Object] has no method 'link'
Is there a standard way to upgrade to 2.1? Any ideas why am I getting this error?
It seems to be happening in container.js, at this point in code:
updateUseBodyElement: function(useBodyElement) {
if (useBodyElement) {
this.link('bodyElement', this.innerElement.wrap({
Uncaught TypeError: Object [object Object] has no method 'link'
cls: 'x-body'
}));
}
},

The src folder for 2.1 is different, you cannot upgrade by just copying over the files.
This is the site I used to get my app upgraded.
http://senchatouchexp.blogspot.com/2012/12/sencha-touch-20x-upgrade-21.html

Related

PrestaShop Call to undefined method FrontController::parseCMSContent() after update to 1.7.8.2

I created some custom shortcodes for my PrestaShop by creating a file (override/classes/controller/FrontController.php) with a method like :
public static function parseCMSContent($content)
{
...
}
And in my module and cms smarty templates I changed:
{$cms.content nofilter}
to:
{FrontController::parseCMSContent($cms.content) nofilter}
Everything was working fine with Prestashop 1.7.7.5, but the update to 1.7.8.2 broke the whole thing.
I get a 500 error saying :
PHP Fatal error: Uncaught Error: Call to undefined method FrontController::parseCMSContent() ... .module.pscustomtextpscustomtext. ...
It's still working fine with debug mode enabled though..
I can't find anything about the function being deprecated, any idea on how I could get this working again please?
In case this can help anyone, I fixed this by moving my override into a new smarty plugin.
I created a file vendor/smarty/smarty/libs/plugins/function.get_shortcoded_content.php
I added my shortcodes in:
function smarty_function_get_shortcoded_content($params, &$smarty)
{
...
}
And in my smarty files I called:
{get_shortcoded_content content=$cms.content}
instead of:
{$cms.content nofilter}
It seems to work all fine again.

ERROR [app-router] TypeError: Cannot read property 'attrToRemove' of undefined

I am using Aurelia to build single page application and I am getting an error during view loading for a new route:
ERROR [app-router] TypeError: Cannot read property 'attrToRemove' of
undefined
Make sure that you did not mistype any Aurelia attribute in your view template. (Ex reapet.for instead of repeat.for).

Getting an error in "jquery.unobtrusive-ajax.min.js" file. MVC #ajax.actionlink

jquery.unobtrusive-ajax.min.js:5 Uncaught TypeError: a(...).live is not a function
Ajax Code
Trying to load data on Div element
Tried this, still not working
/https://code.jquery.com/jquery-2.2.3.min.js")" type="text/javascript">
http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.unobtrusive-ajax.min.js")" type="text/javascript">/

Uncaught TypeError: Object [object Object] has no method 'yiiactiveform' YII?

I am using Yii form Like this.
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'customerContactForm',
'action' => array( '/customer/ContactFormEmail' ),
'enableClientValidation'=>true,
'clientOptions'=>array(
'validateOnSubmit'=>true,
));>?
On console I Got this error,
Uncaught TypeError: Object [object Object] has no method 'yiiactiveform'
But after searching about this problem,I add this line of code to my view file.
<script type="text/javascript" src="../assets/795f6a2f/jquery.yiiactiveform.js"> </script>
It start working,But I do not want to get js from assets folder.So I try this
Yii::app()->clientScript->registerCoreScript('yiiactiveform');
Yii::app()->clientScript->registerCoreScript('jquery');
But I am getting the same problem.
You must connect Jquery Before than yiiactiveform. As is often the case that the Jquery file is connected to the page twice. You need to remove the explicit connection Jquery in view code. The framework will decide when it needs.
If you do need one to do it manually - insert only the following code in the page header:
Yii::app()->clientScript->registerCoreScript ('jquery');

Error in Dojo with highCharts showLoading option

I get this error in the console when I executed this http://jsfiddle.net/ikercrg/FSfR2/3/:
Uncaught TypeError: Object [object global] has no method '_getStyle'
The error happens because of these lines:
chart.showLoading();
...
chart.hideLoading();
And obviously nothing happen with this 'loading' option.
How can I solve this problem and make this 'loading' works correctly?