Mobile Kit: Problems on localhost

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
11/4/2013 1:36:29 AM
Gravatar
Total Posts 220

Mobile Kit: Problems on localhost

Hi Joe,

is it possible to test the Mobile Kit on localhost? Because I have 2 problems:

  1. If I set a new page on "Mobile Only", then it is still to be seen on desktop.
  2. If I set an existing page from "All" to "Web Only", this setting is not saved. When I enter the page settings next time, is set on "All" again.

Best
Matthias

11/4/2013 8:30:38 AM
Gravatar
Total Posts 18439

Re: Mobile Kit: Problems on localhost

Hi Matthias,

It should work the same on localhost but you can't test it there with a real phone or emulator. You can test it on localhost with the Firefox user agent switcher by changing the user agent to iphone to enable the mobile skin.

You are saying that page settings will save as Mobile Only but not as Web Only? It should save either one.

Are there any errors logged? or any javascript error son the page?

Best,

Joe

11/5/2013 4:35:12 AM
Gravatar
Total Posts 220

Re: Mobile Kit: Problems on localhost

Hi Jo,

thanks or response.
Now I finally have the version 4 of this site on the remote server. And it is running.
But also here:

  • I enter the settings of an "old" page.
  • It is of course set to "All".
  • I switch to "Web Only", save the settings and leave it.
  • I enter the settings once more and note that the page is set to "All" again.

Best
Matthias

11/5/2013 5:59:18 AM
Gravatar
Total Posts 18439

Re: Mobile Kit: Problems on localhost

Hi Matthias,

When you save the existing page settings does it keep other changes?

Does the same thing happen on new pages or the problem only affects existing pages?

Are any errors logged in the mojoportal log?

If you use web browser tools are there any script errors in the console on the page settings page?

You are using MySql or MS SQL?

Best,

Joe

 

11/5/2013 9:01:10 AM
Gravatar
Total Posts 220

Re: Mobile Kit: Problems on localhost

Hi Joe,

>>> When you save the existing page settings does it keep other changes?
Yes.

>>> Does the same thing happen on new pages or the problem only affects existing pages?
No.

>>> Are any errors logged in the mojoportal log?
No.

>>> If you use web browser tools are there any script errors in the console on the page settings page?
[15:52:24.721] SyntaxError: Using //@ to indicate source map URL pragmas is deprecated. Use //# instead @ http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js:1

[15:52:25.008] getPreventDefault() should not be used. Instead, use defaultPrevented. @ http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js:3

[15:52:27.154] getAttributeNode() should not be used. Instead, use getAttribute(). @ http://svc.webspellchecker.net/scayt26/loader__base.js:2766

>>> You are using MySql or MS SQL?
MySq

 

Matthias

11/5/2013 12:13:10 PM
Gravatar
Total Posts 18439

Re: Mobile Kit: Problems on localhost

Hi Matthias,

I found that there was a bug in the mysql data layer, it was not saving the publish mode on update of a page. I have patched the mojoportal-2-3-9-9-mysql-datalayer-GPL.zip file. If you replace the /bin/mojoPortal.Data.dll with the new one it should fix this bug in page settings.

Thanks,

Joe

11/5/2013 1:10:15 PM
Gravatar
Total Posts 220

Re: Mobile Kit: Problems on localhost

Thanks to you also,

cheers
Matthias

11/5/2013 2:00:56 PM
Gravatar
Total Posts 18439

Re: Mobile Kit: Problems on localhost

Thanks as always for the beer! Much appreciated.

Cheers,

Joe

You must sign in to post in the forums. This thread is closed to new posts.