I am following documentation on Configuring CHT Application Graphics . I tried methods shown in Using the admin interface but it does not work. CHT version is 4.0.1. I can not see any changes and I am not sure if submission has any error as it does not show any message. Could someone please advise? thanks
Hi @diana I am not familiar using fauxton to search for ad document with the branding id. I did try using branding.json file (using the same image) and was able to see changes but same did not work using the admin interface.
After updating branding with cht-conf, are you able to use the admin interface?
what I’m wondering is whether your initial branding document was malformed somehow.
I am not sure what might be the issue. I just tried uploading the same image in Partners tab using the admin interface and it works fine but does not work for Branding.
Hi @diana just tried using Admin Interface after uploading partners info using cht-conf and now I see the Partners does not work too. However, in this case I can see error message There was an error saving your settings, please try again. but do not know what might be the issue.
sure, it does not seem to take same image that was successfully uploaded earlier.
TypeError: can't convert undefined to object
getDocResources https://localhost/admin/js/main.js:3
l https://localhost/admin/js/main.js:3
l https://localhost/admin/js/main.js:3
$digest https://localhost/admin/js/main.js:3
evalAsync https://localhost/admin/js/main.js:3
completeTask https://localhost/admin/js/main.js:3
r https://localhost/admin/js/main.js:3
setTimeout handler*require<[94]</gn/this.$get</</i.defer https://localhost/admin/js/main.js:3
$evalAsync https://localhost/admin/js/main.js:3
get https://localhost/admin/js/main.js:3
l https://localhost/admin/js/main.js:3
e https://localhost/admin/js/main.js:3
i https://localhost/admin/js/main.js:3
promise callback*e https://localhost/admin/js/main.js:3
d https://localhost/admin/js/main.js:3
v https://localhost/admin/js/main.js:3
qify https://localhost/admin/js/main.js:3
getDocResources https://localhost/admin/js/main.js:3
i https://localhost/admin/js/main.js:3
require<[674]</</< https://localhost/admin/js/main.js:3
l https://localhost/admin/js/main.js:3
l https://localhost/admin/js/main.js:3
$digest https://localhost/admin/js/main.js:3
evalAsync https://localhost/admin/js/main.js:3
completeTask https://localhost/admin/js/main.js:3
r https://localhost/admin/js/main.js:3
setTimeout handler*require<[94]</gn/this.$get</</i.defer https://localhost/admin/js/main.js:3
$evalAsync https://localhost/admin/js/main.js:3
get https://localhost/admin/js/main.js:3
l https://localhost/admin/js/main.js:3
e https://localhost/admin/js/main.js:3
i https://localhost/admin/js/main.js:3
promise callback*e https://localhost/admin/js/main.js:3
d https://localhost/admin/js/main.js:3
v https://localhost/admin/js/main.js:3
qify https://localhost/admin/js/main.js:3
a https://localhost/admin/js/main.js:3
require<[674]</< https://localhost/admin/js/main.js:3
instantiate https://localhost/admin/js/main.js:3
get https://localhost/admin/js/main.js:3
compile https://localhost/admin/js/main.js:3
pe https://localhost/admin/js/main.js:3
je https://localhost/admin/js/main.js:3
ie https://localhost/admin/js/main.js:3
ce https://localhost/admin/js/main.js:3
ae https://localhost/admin/js/main.js:3
ve https://localhost/admin/js/main.js:3
T https://localhost/admin/js/main.js:3
configUpdated https://localhost/admin/js/main.js:3
sync https://localhost/admin/js/main.js:3
sync https://localhost/admin/js/main.js:3
registerUIView https://localhost/admin/js/main.js:3
compile https://localhost/admin/js/main.js:3
pe https://localhost/admin/js/main.js:3
je https://localhost/admin/js/main.js:3
ie https://localhost/admin/js/main.js:3
ce https://localhost/admin/js/main.js:3
ae https://localhost/admin/js/main.js:3
compile https://localhost/admin/js/main.js:3
Possibly unhandled rejection: {} main.js:3:396524
a https://localhost/admin/js/main.js:3
get https://localhost/admin/js/main.js:3
c https://localhost/admin/js/main.js:3
$digest https://localhost/admin/js/main.js:3
evalAsync https://localhost/admin/js/main.js:3
completeTask https://localhost/admin/js/main.js:3
r https://localhost/admin/js/main.js:3
(Async: setTimeout handler)
defer https://localhost/admin/js/main.js:3
$evalAsync https://localhost/admin/js/main.js:3
get https://localhost/admin/js/main.js:3
l https://localhost/admin/js/main.js:3
e https://localhost/admin/js/main.js:3
i https://localhost/admin/js/main.js:3
(Async: promise callback)
e https://localhost/admin/js/main.js:3
d https://localhost/admin/js/main.js:3
v https://localhost/admin/js/main.js:3
qify https://localhost/admin/js/main.js:3
getDocResources https://localhost/admin/js/main.js:3
i https://localhost/admin/js/main.js:3
require<[674]</</< https://localhost/admin/js/main.js:3
l https://localhost/admin/js/main.js:3
l https://localhost/admin/js/main.js:3
$digest https://localhost/admin/js/main.js:3
evalAsync https://localhost/admin/js/main.js:3
completeTask https://localhost/admin/js/main.js:3
r https://localhost/admin/js/main.js:3
(Async: setTimeout handler)
defer https://localhost/admin/js/main.js:3
$evalAsync https://localhost/admin/js/main.js:3
get https://localhost/admin/js/main.js:3
l https://localhost/admin/js/main.js:3
e https://localhost/admin/js/main.js:3
i https://localhost/admin/js/main.js:3
(Async: promise callback)
e https://localhost/admin/js/main.js:3
d https://localhost/admin/js/main.js:3
v https://localhost/admin/js/main.js:3
qify https://localhost/admin/js/main.js:3
a https://localhost/admin/js/main.js:3
require<[674]</< https://localhost/admin/js/main.js:3
instantiate https://localhost/admin/js/main.js:3
get https://localhost/admin/js/main.js:3
compile https://localhost/admin/js/main.js:3
pe https://localhost/admin/js/main.js:3
je https://localhost/admin/js/main.js:3
ie https://localhost/admin/js/main.js:3
ce https://localhost/admin/js/main.js:3
ae https://localhost/admin/js/main.js:3
ve https://localhost/admin/js/main.js:3
T https://localhost/admin/js/main.js:3
configUpdated https://localhost/admin/js/main.js:3
sync https://localhost/admin/js/main.js:3
sync https://localhost/admin/js/main.js:3
registerUIView https://localhost/admin/js/main.js:3
compile https://localhost/admin/js/main.js:3
pe https://localhost/admin/js/main.js:3
je https://localhost/admin/js/main.js:3
ie https://localhost/admin/js/main.js:3
ce https://localhost/admin/js/main.js:3
ae https://localhost/admin/js/main.js:3
compile https://localhost/admin/js/main.js:3
Thanks for sharing these logs. I’m pretty convinced your partner / branding docs are malformed.
To confirm this, I need you to go to fauxton and search for these documents.
’
Please access your instance in your browser. Then, manually edit the url to /_utils (so your url should look like http(s)://<host>/_utils). Once there, you will see the list of databases, please click on medic.
Thanks for sharing.
These docs are definitely malformed.
The branding doc is missing the _attachments property that should contain the images referred by resources, and the partners document is missing resourcesand attachments.
Is this your local installation of the CHT? Can you share the config you are using or what steps you followed to generate these docs?
Hi @diana ,
This is from my local installation. So, first I used the cht-conf process i.e. create branding.json file and added following:
"title": "My App Name",
"resources":{
"logo": "CHT_Image.png",
"favicon":"CHT_Image.png"
}
}
Then created branding folder and added CHT_Image.png. To upload the changes I used: upload-branding command. I could see the changes. Then, next I removed the contents of branding.json file and re-run the command (to remove the existing branding). Next, when I tried using admin interface it does not respond.