Problem with zabbix-fronend-php in maps after upgrade - devops

I upgraded zabbix-frontend-php to last stable version (4.0.0) and get error in map.
In map i see only first element. In browser console i see next error:
TypeError: can't convert null to object jsLoader.php:2049:2
SVGElement.prototype.update http://zabbix.HOST/jsLoader.php:2049:2
SVGElement.prototype.create http://zabbix.HOST/jsLoader.php:2158:3
SVGElement http://zabbix.HOST/jsLoader.php:1980:3
SVGCanvas.prototype.createElement http://zabbix.HOST/jsLoader.php:1337:13
SVGTextArea.prototype.create http://zabbix.HOST/jsLoader.php:1753:17
SVGCanvas.prototype.createElement http://zabbix.HOST/jsLoader.php:1334:13
SVGElement.prototype.add http://zabbix.HOST/jsLoader.php:2015:16
SVGMapShape.prototype.update http://zabbix.HOST/jsLoader.php:3370:3
SVGMap.prototype.updateOrderedItems/< http://zabbix.HOST/jsLoader.php:2612:3
forEach self-hosted:268:13 SVGMap.prototype.updateOrderedItems http://zabbix.HOST/jsLoader.php:2607:2
SVGMap.prototype.update/< http://zabbix.HOST/jsLoader.php:2693:3
ImageCache.prototype.invokeCallback http://zabbixHOST/jsLoader.php:1847:3
ImageCache.prototype.handleCallback http://zabbix.HOST/jsLoader.php:1866:3
ImageCache.prototype.onImageLoaded http://zabbix.HOST/jsLoader.php:1878:2
ImageCache.prototype.preload/</image.onload http://zabbix.HOST/jsLoader.php:1935:4
I see this error at Forum zabbix , but it is not resolved.

For temporary solve this problem, i'm downloaded last zabbix-frontend-php from git (from trunk, 1.0.14 version) and was updated frontend. I'm not watching this error....

Related

CableReady (Rails) Basic case giving mystifying error message

cable_ready 4.5.0
rails 6.1.4.1
ruby 3.0.2p107
This is a simple example from the basic tutorial (https://www.youtube.com/watch?v=F5hA79vKE_E) I suspect the error I am getting is because either cable_ready or rails evolved a little and created a tiny incompatibility.
I get this error in the JS console:
It is triggered when in my controller I ask cable ready to:
cable_ready["timeline"].console_log(message: "***** cable ready post created")
Which leads to my timeline_channel to:
received(data) {
console.log("******** Received data:", data.operations)
if (data.cableReady) CableReady.perform(data.operations)
}
My interpretation is perform causes this line in cable_ready.js line 13:
operations.forEach(function (operation) {
if (!!operation.batch) batches[operation.batch] = batches[operation.batch] ? ++batches[operation.batch] : 1;
});
Is finding something in the received data that it doesn't like.
That's where my trail ends. Can someone see what I am doing wrong, or tell me what other code you'd like me to include?
Solution: downgrade the version of the cable_ready javascript library.
I previously (maybe a year ago) did this tutorial using CableReady 4.5, Ruby 2.6.5 and Rails 6.0.4 and it worked like a charm back then as well as today.
But today, I tried this tutorial again on a duplicate project--same versions of CR, Ruby, and Rails and now I get java console errors similar to yours.
TypeError: undefined is not a function (near '...operations.forEach...')
perform -- cable_ready.js:13
received -- progress_bar_channel.js:8
I looked at the output of yarn list and saw that cable_ready was version 5.0.0-pre8 on the bad project and it was 5.0.0-pre1 on the good project. The downgrade could be accomplished with yarn add cable_ready#^5.0.0-pre1 in the bad project folder and now both projects work.
FYI for other newbies like me trying to understand how CableReady works: This tutorial gives another example of CableReady, and was also fixed the same way.

Error with HTTP library via the BrowserClient class

I try to use HTTP library, "Using on the Browser" but get Error in browser console (Dartium) even for example.
Error:
package:async/src/byte_collector.dart:1 'package:async/src/byte_collector.dart': error: line 42 pos 16: generic functions not supported
T _collectBytes<T>(
^: package:async/src/byte_collector.dart
Downgrade to "0.11.3+2" from "0.11.3+9" helped but I need 0.11.3+9 because of dependence. How to solve the problem with this error?
I think you are using an older Dartium version and need to update to the most recent version.

xlwings(0.7.0) importing UDF error

Hello,
My problem is that when i try to import an UDF in Ecxel 2013 I receive the error message can be seen on the picture. I have installed xlwings and it works except the UDF importing. Note that i used "xlwings quickstart myproject" so there is no problem with the file names and i also used the sample function so that should be fine as well
Thank you in advance for your help!
I currently don't understand why you get that error, but I should be able to tell you how you can work around it for now:
Open the file udfs.py in the xlwings package and remove the last argument on line 36, i.e. remove , ArgumentDescriptions=argdocs.
The intended functionality of that line (showing function argument description) is currently broken anyway (see here) so hopefully this will be resolved in a future version.

CSOM 2013 error: Unable to cast object of type 'System.Collections.Generic.Dictionary

I'm using this code to loop columns of a SharePoint 2013 List.
currentContext.Load(currentList.Fields);
currentContext.ExecuteQuery();
foreach (Field f in currentList.Fields) {
}
No problem with normal columns. But, when I arrive to a lookup column I have this error:
"Unable to cast object of type
'System.Collections.Generic.Dictionary`2[System.String,System.Object]'
to type 'Microsoft.SharePoint.Client.Field'."
I found for example this discussion
This issue came when we were working with TaxonomyFieldValue fields. For us changing references was not an option. This helped:
TaxonomyItem dummy = new TaxonomyItem(web.Context, null);
It will force program to load adequate libraries forcing correct type in runtime.
I had this same issue and updating the references fixed it for me. This question helped me figure it out.
I went from version 14 of "Microsoft.SharePoint.Client" and "Microsoft.SharePoint.Client.Runtime" to version 16 and no longer had the error.
Latest client download

Spectre error messages

I get the follow error messages running the
Dart Spectre example "line_primitive":
Invalid CSS property name: -webkit-touch-callout
Invalid CSS property name: flex-direction
Internal error:
'package:polymer/polymer_element.dart':
Error: line 140 pos 27: identifier 'mdv.bindModel' cannot be resolved
Timer.run(() => mdv.bindModel(root, this));
I downloaded and ran the example as is with no modifications.
Thanks
This is a known issue with the current (as of August 6th 2013) release of polymer and the SDK. The next release will include a fix for this. In the meantime you can download a nightly build http://www.dartlang.org/tools/editor/

Resources