2sxc Content-Type Import Fails with Languages Error - dotnetnuke

I have a 2sxc App that was written about 3 years ago and was last modified using 2sxc 9.43.2 LTS on DNN v8+. I restored the old DNN site and got everything working locally. I wanted to import this app in to a modern DNN v9.10+. I chose 2sxc v13.12.1 LTS. I installed that on the new, clean install of DNN 9.10.02 and then upgraded 2sxc on the old DNN v8 site to v13.12.1. Tested the app, still working! I figured if 2sxc was the same on both instances I'd have a pretty good chance of the import/export working.
First I tried exporting the whole app. That fails and I can't find any useful errors logged anywhere. So I switched and decided I would just export the content-types and rebuild the app manually since it only had 3 or 4 views, 3 content-types, and 1 query.
But exporting any of the content-types fails on import. See screen-clip below. I think I understand the error, but I am not clear as to what I need to do to fix this. Both the old site and the new site only have the DNN default, US English. Neither ever had another language added, there doesn't appear to be any differences in the DNN settings for this, I compared them side by side.
So what is the fix? Is there something I can change in 2sxc or the App in the old or new site to get the export/import to align? Can I just add the needed language to the Zone? If yes, where and how do I do that?
Can you explain what the error means, "entity has 1 zone has 0 used-list: 'en-us'"?
If I just need to add 'en-us' in the Zone, what does that mean or how do I do it?
screen clip:

It means that the json which is to be imported does report a language - en-us. I'm not sure why - maybe the source did activate english at some time.
You should be able to get this going by exporting a content type from the target system and comparing the json with the one you want to import, and probably manually patch it.

Related

Issue with 2sxc remove action

I have just started a new site where I am using 2sxc version 11.11.4 (started with 11.7.3 and upgraded to see if that would fix it). I have the data and views set up just like I have done on another site using version 10.25.2. On the newer version though, I'm unable to use the remove button/action. I did some searching and found a few references to adding lines to the web config file (https://github.com/2sic/2sxc/issues/1654, https://github.com/2sic/2sxc/issues/2205). I tried this and it worked great.
So, my question: will a fix be implemented for this or will we have to add these lines of code to the web config file on any site we use 2sxc on?
Also, could these lines of code affect any other DNN features, other modules, etc.?
I think you are talking about my solution here
https://github.com/2sic/2sxc/issues/2205#issuecomment-705647892
This is specific to a server where the WebDAV features have been added/enabled in Windows. I do not think its an issue that can or will be fixed in 2sxc.
I do know that it is safe to add those two items in web.config. All its doing is telling ASP.NET to NOT make WebDAV available in this application's (DNN's) context. I am not aware of any DNN feature or modules that need or use WebDAV. Its just something handed down from the server because its installed and its causing a weird change in behavior that makes the DELETE (and other) command types get ignored (IMHO, presumably because they are handled before they get to DNN).

Codenameone Android build error

Since the morning I try to build an android application, in the Builds part it shows only Android Build Error and when I click on ERROR LOG it shows a page not found error. Is there any problem with build server??
This happens for older versions of the plugins that still send to the google cloud. We've tried to track it down but it failed badly and since we're killing off support to these old plugins anyway the right solution is probably to just move forward.
This build still works your error URL is just broken and looks like: https://cloud.codenameone.comhttps//codename-one.appspot.com/getData?...
You can see the actual error by fixing the URL to remove the prefix and add the missing ::
https://codename-one.appspot.com/getData?...
I'm guessing the error is due to downgrading to a free account or something similar. This happens because of the migration process to the new server once you follow these steps this problem should resolve itself.
Also starting this weekend builds sent using the old plugin or an old project will fail. You will need to update the plugin to 4.3 (or 4.0.3 in NetBeans) or newer. This is an important phase in removing App Engine from our build stack and moving to a new system.
If you are experiencing problems with a project do the following:
Right Click the project
Select Codename One → Codename One Settings or Codename One Preferences
Click Basic
Click Update Project Libs in the bottom left side

Sterling DB Windows mobile 10 support

I have a WP8.0 Silverlight app in store. It uses SterlingPhone as DB. I downloaded my app in a Windows Mobile 10 Insider Preview Version (v10.0.10536.1004) and it seems that data is removed after I exit the app.
I am using IsolatedStorageDriver:
Database = _engine.SterlingDatabase.RegisterDatabase<ItemsDatabaseInstance>(new IsolatedStorageDriver());
Has anyone faced this situation? I know Sterling is pretty old, but I think it should continue working on WM10.
In case I have to change to another Database Engine, I'd appreciate suggestions (my Data Model makes it very difficult to work with Sqlite due to nested objects).
EDIT:
Apparently Sterling is unable to find the existing database so recreates it each time the app is relauched.
Isolated storage screenshot
For anybody who found this post with the same issue, the problem lies in changed behaviour for string.GetHashCode on Windows 10 Mobile.
Sterling uses the hashcode of the database name in the path for the database. On Windows 10 Mobile the behaviour has changed and everytime the app is restarted a different hash is calculated and the path changes to the previous database is not found.
To get your app working again, get the SterlingDB code from CodePlex and change the code in the PathProvider class, in the GetDatabasePath method, then recompile your app. You can add a check to see if you are running on WM10 so users on WP8 continue to work with the old database.
The newer version of SterlingDB on GitHub doesn't appear to use the hashcode anymore so should also keep working.

unable to run "update.php"

I had a Drupal website in drupal 6.x When i wanted to upgrade it to 7.x, the custom theme i was using was absolutely outdated, so i imported my Zen subtheme from another website. For doing that, i just copied the folders "zen" and "mytheme" from the other installation to this one. Then i selected "mytheme" as the current theme and changed some little things to adapt it.
The fact is now i'm experiencing the following problems:
I can't auto-update nothing. It downloads the files but then it stacks (and leaves the site in Maintenance Mode).
I can't run update.php. I can go on until i reach the "Run updates" step, which shows a blank screen. This is the main issue, i think, as it evidences -in my oppinion- a problem of communication between the site and the database.
In the Webform module i can't select "File" as a Field Type. This one is not that important, but it may be relevant for someone who knows more than me.
Edit:
Recently i migrated from a Shared to a VPS server. When i migrated, the subdomain in which i was experiencing the issue threw an incompatibility related to the lenght of the password of the database. I changed the password and it started to work again. This may help somebody for helping me. Thanks!

Silverlight 4 Out Of Browser: Check for Updates without installing?

I have created a Silverlight 4 application, that is running out of browser. As you will know, there is a function that is checking if a new version of the app is available and installing it.
But what if I want to only check for the update and not installing it?
Personally, I do not like applications that silently update themselves, downloading something from the internet. So I'd like to have the following mechanism.
- when the app starts, it checks if updates are available
- if so, I show a messagebox to the user, telling her that there is an update and that she can download and installing it via the update-button
- the user can now decide to update
Unfortunately, there seems to be no option to just checking for updates without actually downloading and installing it. Any ideas, how to achieve this?
Thanks in advance,
Frank
You can roll your own update detection, by having a small file on your server next to the XAP for your app, that contains the latest version. For example:
http://localhost/myawesomeapp.xap
http://localhost/myawesomeapp.xap.ver
When you want to check for updates without downloading them, you can always hit the .ver file, check the version listed in it and if newer then the current running app, show the Update button to the user.
Note that this approach also would allow you to create more advanced scenarios, like prompting the user to upgrade to a different version of the app (Pro for example) or that they need to upgrade their Silverlight to get the latest.
And if you have multiple apps, you can list all of them in that file and do cross-promotion between your apps.

Resources