Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Theme designer initialized error

coral_zhang
Explorer
0 Kudos

Hi all,

I want to custom a theme for my application in theme designer, but after I load Shell controller of ux3, there are several errors as below:

  1. 2014-07-02 12:52:26 Error occurred during parseSAPLess. Message: Extracting CSS configuration failed for "https://themedesigner.hanatrial.ondemand.com/demokit/test-resources/sap/ui/ux3/resources/ShellSettin...". -  sap-ui-core.js:80
  2. GET https://themedesigner.hanatrial.ondemand.com/sap/public/bc/themes/UI5/sap/ui/commons/themes/sap_blue... 404 (Not Found) NavigationBar.js:25
  3. GET https://themedesigner.hanatrial.ondemand.com/'' 404 (Not Found) Slider.js:49
  4. GET https://themedesigner.hanatrial.ondemand.com/demokit/test-resources/sap/ui/ux3/none 404 (Not Found) sap-ui-core.js:27

The last error "ux3/none 404" will also bring to my application,

     GET http://localhost:8081/poi/none 404 (Not Found)


Does anyone know the reason and how to avoid this error? Thanks a lot!


Coral

10 REPLIES 10

Former Member
0 Kudos

This is the wrong space for your query, is the correct one. Also see for reference. Regarding your error, what theme are you using? What kind of application? Have you tried hosting the application on the Cloud as well? I myself can't access the Cloud version at all currently, HTTP Status 400 - Possible XSRF attack: no valid xsrfProtection parameter was found is returned.

0 Kudos

Thank you for your reply. I was editing the theme in UI Theme Designer Developer Center, the error occurred both in blue crystal and gold reflection, it's just a web application and I have not host it on cloud.

0 Kudos

Hi Samuli, regarding access to the Cloud version, can you please try the following: 1. Go to https://account.hanatrial.ondemand.com and click "Log on". 2. Accept the terms and conditions. 3. Reload the UI theme designer application. Best regards, Lisa

0 Kudos

Hi Samuli,

If you Alert Moderator that this Discussion is in the wrong space, they will move it and all posted replies to the correct space.

Regards, Mike

SAP Customer Experience Group - CEG

0 Kudos

Thanks Lisa, that did it. I can now use the Cloud version of UI Theme Designer. That said, the error returned previously was pretty misleading. I had used the SAP HCP before so I had no idea I have to accept the terms of use again in order to use UI Theme Designer.


Can you or one of your colleagues help Coral troubleshooting the problem she is having with the Cloud version of UI Theme Designer?

0 Kudos

I will do it. Sometimes I refrain from using the Alert Moderator in order to let others reply. Some moderators always delete the discussion thread instead of moving it. In this case since I haven't seen the problem discussed before I thought that it would have value to others and didn't want to risk it being deleted.

0 Kudos

Hi Sumali,

Moderators have as many different ways of doing their jobs as any other group of people and I am not the moderator here or the other space, so it is indeed possible.  However, I would be surprised if they did after all the comments which the topic has accumulated.

The bigger issue which is occurring more and more is multiple appropriate communities for a topic.  Theme Designer is a good case in point.  It could easily go in to User Interface Technology as you suggest.  There are also a lot of posts in the UI Development Toolkit Developer Center or SAP for Mobile communities appropriately.  At some point, I think the whole set of Mobile related communities needs a thorough review and reassignment, but I don't think it will be happening anytime soon.  And even then something like Theme Designer is a cross environment type of tool and may not easily fit into a more narrowly focused community.

Cheers, Mike

SAP Customer Experience Group - CEG

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Coral,

Please check support package level and notes. It is about  launchpad but it is also valid for Theme Designer.

SAP Fiori LL17 - SAP Fiori launchpad troubleshooting

Regards, Masa

SAP Customer Experience Group - CEG

0 Kudos

I didn't get solution to this problem..Thank you all the same

coral_zhang
Explorer
0 Kudos

I found a solution to avoid this error finally..This error was caused by a invalid src of img tag as here:

<img id="oShell-bgImg" class="sapUiUx3ShellBgImg" src="none">

These html codes were generated by ShellRenderer.js which is used to rendering ux3.shell, and ShellRenderer.js loaded "resources\sap\ui\ux3\themes\custom_goldreflection\library-parameters.json" as a configuration file, then in "library-parameters.json", the field "sapUiUx3ShellBackgroundImageURL" was set "none" by theme designer for default value. So the solution is to give  "sapUiUx3ShellBackgroundImageURL" a valid image source like this

"sapUiUx3ShellBackgroundImageURL": "http://veui5infra.dhcp.wdf.sap.corp:8080/demokit/resources/sap/ui/core/themes/base/img/1x1.gif",

I think it's a bug of theme designer, developer may not set a background image every time, then error is brought in, is it better to set a valid default value?