Issues while upgrading to Extjs 5.1 from Extjs 4.1 - javascript

I have developed application using extjs 4.1. Its working absolutely fine as required. Now i want to upgrade my application using extjs 5.1. I included necessary Extjs 5.1 files in my application. But its failed to load, even not single request is getting send to server. I am facing lots of issues as-
1.Uncaught Error: [Ext.createByAlias] Unrecognized alias: data.field.double
This error is appearing for each data type mentioned in model while defining fields. I observerd Extjs 5.1 examples..In most of it data types are not provided while defining fields in model..So should i need to remove type from model? Is there any other solution for it?
2.Uncaught Error: [Ext.create] Unrecognized class name /alias: X.store.FieldStore
3.[E] [Ext.Loader] Some requested files failed to load.
4.[W] [Ext.Loader] Synchronously loading 'X.store.MembersStore'; consider adding Ext.require('X.store.MembersStore') above Ext.onReady
So can someone please guide me,what solutions i need to apply.

The problem is that double is not a valid type in ExtJs. ExtJs 4 was permissive and accepted invalid types in field definitions. ExtJs 5 does not.
The message seems clear to me. X.store.FieldStore is neither a class name nor an alias. Probably the file with the class definition is not loaded.
You have to find out.
You should require this store where it is needed, e.g. in a controller with stores: ['X.store.MembersStore'] or with require: ['X.store.MembersStore']

Related

CKEditor throws error after adding Notification Plugin

I am attempting to add the notification plugin to CKEditor and I receive the following error when I go on any page implementing the CKEditor regardless if it attempts to use the Notification Plugin or not
Uncaught TypeError: CKEDITOR.tools.eventsBuffer is not a function
at Area (plugin.js?t=D2LI:448)
at Object.init (plugin.js?t=D2LI:17)
at Object.<anonymous> (ckeditor.js:221)
at n (ckeditor.js:202)
at Array.m (ckeditor.js:202)
at o (ckeditor.js:202)
at ckeditor.js:203
I am clearly including the plugin since I am getting these errors.
this is the line of code in the plugin that is causing the error.
this._uiBuffer = CKEDITOR.tools.eventsBuffer( 10, this._layout, this );
Any help is appreciated.
Please see: https://docs.ckeditor.com/#!/api/CKEDITOR.tools-method-eventsBuffer.
The error means that tools object doesn't have eventsBuffer method. There are two explanations which come to my mind:
This method is available since CKEditor 4.2.1. Please check your ckeditor/CHANGES.md file (your version is at the top) to find out which editor version you use. If your editor is anything below 4.2.1, please upgrade it to latest version. Please also note that if you want to use notifications you need to use at least CKEditor 4.5 - https://docs.ckeditor.com/#!/api/CKEDITOR.plugins.notification so upgrading to 4.2.1 won't help in this case.
This is a long shot but another possibility is that you have a third-party script which conflicts with CKEditor thus you get such result. If your editor is up to date, please try disabling other scripts, clearing browser's cache according to this link and checking the result one more time.
NOTE: To find out your version you can also click question mark icon on the toolbar (it is available if you have About plugin installed).

Angular 1/2 hybrid app error in ie9: "TypeError: Unable to get value of the property 'ref': object is null or undefined"

I have an Angular 1->2 hybrid app with Angular 1.5.8 and Angular 2.2. I have to support IE9 :(
I have included the core-js shims:
<script src="node_modules/core-js/client/shim.min.js"></script>
My login page is an Angular 1 form with and Angular 2 footer. All of the Angular 2 footer functionality works just fine, but clicking on or typing into the Angular 1 form elements produces the following error on each event:
TypeError: Unable to get value of the property 'ref': object is null or undefined
It looks like it has something to do with events, but the ie9 console is next to worthless. Does anyone have an idea what might be causing this, or ideas on how to chase down the cause of this error?
What other information can I provide that might be helpful here?
Edit
Things I've tried:
Setting Typsescript target to es3. No dice.
Try using this shim instead of core-js. core-js has some IE9 issues.

Errors in Ajax Control Toolkit's JS files after upgrade?

I upgraded Ajax Control Toolkit to v15.x and have been working on cleaning up the code after doing so. I'm running across exceptions being thrown, and VS breaks at points in the toolkit's JS files. I'm not sure why or how.
I've already double-checked that any scripts are not referenced multiple times, as was the leading suggestion on Google, but I still haven't figured it out.
I really need some help with this, as I have two months invested in this project. By the way, I'm using VS2013 and the project is in ASP/VB.
Here are a couple of the errors (to get the next, I've hit Continue):
Unhandled exception at line 1647, column 38 in
http://localhost:50236/ScriptResource.axd?d=D9drwtSJ4hBA6O8UhT6CQmpVfriIlRNRich93DvwGtp67E1h_mWKZOFWLDGS9BMtlj8olqCr6zhXtNsVz0umlIymKK0GfDoqTLzNLe2YQI2ElwoX58_2MZEcEFLKjdG6fbv26oE3vanxWpdhskXpgCIAYbDVlsaWWDXPE-98sV01&t=ffffffffb53e74b8
and
Unhandled exception at line 785, column 42 in
http://localhost:50236/ScriptResource.axd?d=D9drwtSJ4hBA6O8UhT6CQmpVfriIlRNRich93DvwGtp67E1h_mWKZOFWLDGS9BMtlj8olqCr6zhXtNsVz0umlIymKK0GfDoqTLzNLe2YQI2ElwoX58_2MZEcEFLKjdG6fbv26oE3vanxWpdhskXpgCIAYbDVlsaWWDXPE-98sV01&t=ffffffffb53e74b8
0x800a139e - JavaScript runtime error: Sys.InvalidOperationException:
Type Sys.Timer has already been registered. The type may be defined
multiple times or the script file that defines it may have already
been loaded. A possible cause is a change of settings during a partial
update.
0x800a139e - JavaScript runtime error: Sys.InvalidOperationException:
Type Sys.Extended.UI.BoxSide has already been registered. The type may
be defined multiple times or the script file that defines it may have
already been loaded. A possible cause is a change of settings during a
partial update.
Any and all help is appreciated! Thanks!
As it turns out, I followed the instructions on the Ajax Control Toolkit website on "un-bundling" the scripts, and now everything works. Apparently I didn't do something right, or the instructions were wrong. More than likely, the former.

ExtJS 4 to ExtJS 5 migration

We are migrating a web application from ExtJS 4 to ExtJS 5.
Testing the index.html results in the following error (outputted by the Firefox-FireBug-console):
NetworkError: 404 Not Found - http://localhost:8080/ext/build/examples/ux/grid/FiltersFeature.js?_dc=1414147197935
I have already searched for the FilterFeatures.js-file inside the directory, but it isn't there.
According to the "Whats New in ExtJS 5.0"-site this file was so popular, that they thought it would be wise to move it.
Can someone tell me how to include this file or the functionality, so that the error vanishes?
I have already tried to add the following to my app.js file:
Ext.Loader.setPath('Ext.ux', './ext/build/examples/ux');
Ext.application({
...
requires: [
'Ext.ux.grid.FiltersFeature'
],
...
});
But the error persists. I think i need to get a reference to an object that is now hidden somewhere else.
I just dont know how to reference it, because i dont know the js-file it is now placed in and how to do it syntactically correct in Ext JS 5.
The basics are in the link you provided:
They removed the feature Ext.ux.grid.FiltersFeature (ftype: filters).
They introduced a plugin Ext.grid.filters.Filters (ptype: gridfilters)
as an enhanced replacement.
So you will have to rework your grids manually to use the new plugin instead of the old feature.
Good luck.
Glad to share Ext Js up gradation experience , Please check this link Ext Js 4 to 5 Migration Experience. Have a Happy Migration. Thanks

sitefinity 6 - events module error javascript

I've upgraded a website from 4.4 to 6.0 and found some issues. Some I already solved but I keep getting one error (javascript I suppose) on events module. When I try to preview/create new/publish/save draft I get the following js error:
TypeError: startDate is null
Unable to get property 'getFullYear' of undefined or null reference
Telerik.Web.UI.WebResource.axd, line 329 character 1
var range=this.get_rangeView().getRange();
var time=this.get_timeView().getRange();
var startDateTime=new Date(time.get_start());
var endDateTime=new Date(time.get_start());
var startDate=range.get_start();
var endDate=range.get_recursUntil();
startDateTime.setFullYear(startDate.getFullYear(),startDate.getMonth(),startDate.getDate());
I reckon that this is dynamically created by Telerik sitefinity and I'm not sure how to fix it. I went to the administration area and checked the relevant configurations and it seems to be everything ok (similar configs as sitefinity 4.4).
Does anyone have an idea how to solve this? I've tried to post a sitefinity forum thread on their website but they took way to much time to answer.
Cheers
by any chance were you using external templates or a custom widget to show the events?
Sitefinity 6.0 apparently rebuilt the events module and it is no longer a simple, flat type. Instead it is a nested (hierarchical) type, with a parent calendar to which events are added (or multiple calendars if you need them).
So if you did any custom code or external template to display the content (in other words anything not out of the box that auto-upgraded itself when you updated to 6.0) you may need to rebuild this custom component to use the latest changes.
Consult the upgrade guide to 6.0 for latest breaking changes that one had the most differences, then compare your custom templates (if any) to the widget templates in the SDK: http://selarom.net/blog/2012/11/06/mapping-sitefinity-templates-from-the-sdk
I hope this is helpful!

Categories

Resources