I'm using Ext version "5.0.0.970". I have grid.reconfigure function for a grid which is using gridfilters plugin.
Without reconfigure, the plugin works fine but with Reconfgiure, there are several errors.
I fixed the Filter.js to use
me.store.destroy();
instead of
me.store.destroyStore();
since that was throwing an error.
https://www.sencha.com/forum/showthread.php?283793-Grid-reconfigure-not-working
But now, i get a new error for Collection.js
TypeError: items is null
n = items.length,
https://www.sencha.com/forum/showthread.php?289098-Problem-with-gridfilters-plugin&p=1104449
Related
I'm trying to get an element's location using the Protractor (v6.0.0) method call getLocation(), however I'm getting the following exception:
TypeError: Cannot read property 'apply' of undefined
at <Jasmine>
at actionFn (/usr/lib/node_modules/protractor/built/element.js:95:44)
at <Jasmine>
at actionResults.getWebElements.then(/usr/lib/node_modules/protractor/built/element.js:468:44)
at <Jasmine>
at ElementArrayFinder.applyAction_(/usr/lib/node_modules/protractor/built/element.js:466:29)
Any clue how to resolve the issue?
Actually my code is really simple.
it('should compare login page with a baseline', async () => {
let input = element(by.id('mat-input-1'));
await input.getLocation();
});
I expect the coordinates of the input which has id mat-input-1, but unfortunately I'm getting that exception.
Protractor's CHANGELOG.md has a link to the selenium-webdriver CHANGELOG, it lists:
Changes for W3C WebDriver Spec Compliance
Replaced WebElement.getSize() and WebElement.getLocation() with a
single method, WebElement.getRect().
So it looks like you should use .getRect().
Now for Protractor 6 itself, this is clearly an issue with documentation. We recommend using 5.4.2 for now.
I have added a CKEditor ver 4.1 to my project ( NSBasic ) and am using it with datatables editor.
If I download any of the 3 CDEditor standard packages ( Basic - Standard or Full https://ckeditor.com/ckeditor-4/download/ ) it all works okay.
However if I create a custom package I get the following error :
TypeError: null is not an object (evaluating 'c.langEntries')
It flags here
CKEDITOR.plugins.setLang = function(a, d, b) {
var c = this.get(a);
a = c.langEntries || (c.langEntries = {}); //error here null is not an object (evaluating 'c.langEntries')
c = c.lang || (c.lang = []);
c.split && (c = c.split(","));
-1 == CKEDITOR.tools.indexOf(c, d) && c.push(d);
a[d] = b
};
The path to the CKEditor os here:
<script src="http://www.aceoftoons.com/ckeditorCustom3/ckeditor.js"></script>
Any ideas how I can trace the issue ?
You are most likely using a third-party plugin with language files configured incorrectly. I remember I once had such a problem with selectallcontextmenu plugin. I would recommend that you first start with plugins only created by CKSource (each plugin has its own website where you can check its author) and when it works start adding custom plugins one by one.
Third-party plugins are usually ok, but there are some which don't work as intended thus you need to be careful. Fortunately you can easily verify the plugin by looking at its compatibility table (it should support latest version released) and user comments. If there is anything wrong they will let the author know about it. If the author cares about this plugin he will fix this problem. If he does not he will leave it as it is. In such cases I recommend down voting such plugin so that other user could know.
$funcNum = $_GET['CKEditorFuncNum'] ; is not returning the number.
I tried creating the upload.php for ckeditor uploadimage plugin according to
https://stackoverflow.com/a/44553006/8719001 (sorry can't add comments yet)
which includes echo "<script type='text/javascript'>window.parent.CKEDITOR.tools.callFunction($funcNum, '$url', '$message');</script>";
However when I drop images it doesn't work and in the console I get the Response Text which doesn't show any funcNumber:
"<script type='text/javascript'>window.parent.CKEDITOR.tools.callFunction(, 'https://example.com/upload/test.jpg', '');</script>"
I think this might be part of filebrowser plugin?
Which I have enabled and also declared $settings['filebrowserUploadUrl'] =
Try to setup config.js insert config.filebrowserUploadMethod = 'form';,if you got CKEditor additional arguments empty,(CKEditor,langCode,CKEditorFuncNum). There are some errors occur,
Incorrect server response. and [CKEDITOR] Error code: filetools-response-error..
please refer,https://github.com/ckeditor/ckeditor-dev/issues/1894
This is the version problem.
I tried 2 hours and couldn't get the parameter CKEditorFuncNum with java like you.
After I changed my 4.9.1 version to 4.7.3, it worked.
I am looking to move my Wakanda application, created in Enterprise Studio v10, to Enterprise Studio/Server v11. I can start the solution successfully, but when I try to view my webapp in browsers, Wakanda Studio logs the error:
[Backend] Cannot read property 'replace' of undefined in undefined on line undefined
and the browser shows just a white page with some console errors (below).
Edit: commenting out all occurrences of .replace() does not solve the problem. I do not believe it is possible that this issue is the result of .replace() statements that I've written.
I do use string.replace() with regular expressions in a few places. The code works perfectly fine in v10 and am confused about what could be wrong.
Here is an example of how I am using replace() in the code:
var tempString = "";
tempString = tempEntity.sourceProjects;
tempString = tempString.replace(/,/g, " ");
tempString = tempString.replace(/other_/, "Other: ");
The code was more streamlined before- I broke it out into pieces in an attempt to get rid of the error, but no dice.
Browser with console errors:
What I see when I click on "Loader.js: 2073"
1) Quit Wakanda
2) Delete the old index.package.json file inside of index.waPage
3) Restart Wakanda and let Wakanda v11 regenerate it
You have the error : "Cannot read property 'replace' of undefined" because in line 2, tempEntity is an empty string and you write tempEntity.sourceProjects.
The value of tempEntity.sourceProjects is "undefined", so when you try to use replace in line 3 you get this error.
Issam
I saved my column permutation info into a table. This information can be reloaded in beforeRequest event:
mynewperm = {....};
myGrid.jqGrid("remapColumns", mynewperm, true);
The columns are reordered correctly. However I lost the header icon. Now if I click any column header, I can not see
the sort icon anymore, then can not sort any column. How can I get it back?
Thank you,
yh
if you are able to change the code, you could test for an undefined of a.grid.headers[a.p.lastsort].
In the source file it could look like this:
// old
var previousSelectedTh = ts.grid.headers[ts.p.lastsort].el
// new:
var previousSelectedTh = ts.grid.headers[ts.p.lastsort] ? ts.grid.headers[ts.p.lastsort].el : null
Indeed if you look at the jquery.jqGrid.src.js source, the line is:
var previousSelectedTh = ts.grid.headers[ts.p.lastsort].el, newSelectedTh = ts.grid.headers[idxcol].el;
Line #1982 in my version. I fixed it by modifying the file and added this just before that line:
if (ts.p.lastsort < 0) // johnl.
ts.p.lastsort = 0;
The problem was that ts.p.lastsort was -1.
I've just managed to fix this issue myself but not using the methods described above. I was receiving the following error message when trying to sort columns in a jqgrid:
TypeError: a.grid.headers[a.p.lastsort] is undefined js/jqgrid/jquery.jqGrid.min.js?1.4:86
I should note that it was Firebug that produced this error message. Our company develops web applications for Chrome but Chrome's Javascript console produced a very uninformative error message:
Uncaught TypeError: Cannot read property 'el' of undefined
After stripping out all but the jqGrid declaration on the page causing the issue, it transpired that removing the "multiSelect" option declaration for the jqGrid solved the issue. Apparently, declaring this option causes an additional hidden column to be added into the grid rendered which enables users to select multiple grid rows at a time. I'm not exactly sure why this caused an issue but after consultation with the programming director here our best guess is that there is a for loop somewhere in the jqGrid library code which is called when column sorting is applied and the loop is not taking into account this extra column which results in it not being defined.
Strange answer to a strange issue but hopefully this will help somebody out in future and save them around 3 hours of debugging!
I've the same issue :
It append to me since i apply the "remapColumns" method in the "loadComplete" event (i get back user column configuration from a cookie).
So when I try to sort a column nothing happen. I got this error in firebug :
a.grid.headers[a.p.lastsort] is undefined -> jquery.jqGrid.min.js (line 93)
maybe it will be helpful to find what the problem is
Thank you