WebSite X5Help Center

 
Norman G.
Norman G.
User

Smartphone Site Access  en

Autore: Norman G.
Visite 2408, Followers 1, Condiviso 0  
Parole Chiave: mobile

Anyone accessing my site with a smartphone gets an error (see attached phone screen print). A tablet (Kindle Fire HD) works fine, as does any computer. The site was created completely with Website X5 Professional 10. Any ideas?

Postato il
17 RISPOSTE - 1 CORRETTO
Anthony A.
Anthony A.
User

what is your website address, so I can check with my samsung gallaxy note2 cellphone.

if this post is the correct answer, please mark this answer as correct answer.

------------------------------------------------------------

Good Luck

http://www.wdesigners.us

http://www.usx5.com (coming soon)(Sign up to be notified when we launch!)

Leggi di più
Postato il da Anthony A.
Norman G.
Norman G.
User
Autore

The site is weather.ngarrett.info.  You can try it from a computer and then from a cell to duplicate the error. 

Leggi di più
Postato il da Norman G.
Anthony A.
Anthony A.
User

I think it caused by this:

<script type="text/javascript"> var align = function () { var top = _jq( window ).height() - _jq( '#imCell_1' ).outerHeight(); if ( _jq('#imCell_2').length > 0 ) top -= _jq( '#imCell_2' ).outerHeight(); _jq( '#imContent' ).css( 'marginTop', (top < 0 ? 0 : top / 2) ); }; align(); _jq( window ).resize( align ); </script>

I dont have that code in my website and it shows perfecly fine on my cellphone

remove that code from your footer and try again.

Let me know the result

if this post is the correct answer, please mark this answer as correct answer.

------------------------------------------------------------

Good Luck

http://www.wdesigners.us

http://www.usx5.com (coming soon)(Sign up to be notified when we launch!)

Leggi di più
Postato il da Anthony A.
Norman G.
Norman G.
User
Autore

Where did you find that script?  I can't seem to find it anywhere when I view the source code for any of my pages.  Was it in the footer?  All I have in the footer is text and I have added no css or html. 

Where is the code for the footer actually located?  It just seems to be an empty DIV on the pages with an ID of "imfooter."

Leggi di più
Postato il da Norman G.
Anthony A.
Anthony A.
User

its in your index, did you setup a welcome page? if you did, remove it and then test your website with cellphone/tablet.

if this post is the correct answer, please mark this answer as correct answer.

------------------------------------------------------------

Good Luck

http://www.wdesigners.us

http://www.usx5.com(coming soon)(Sign up to be notified when we launch!)

Leggi di più
Postato il da Anthony A.
Norman G.
Norman G.
User
Autore

I did remove the welcome page to test, and it was no different.  Interestingly, I have a test setup where I test misc. features on a production server.  I accessed that site (housed on the same VPS on my hosting service) and got the identical error on my phone.  It is a completely different site with a different theme.  I think I'll set up a generic test site later today and just generate a single home page with a text box and test that.  If that doesn't work, it might be a server configuration issue (anyone else here use BlueHost?).

Another interesting point is that accessing via smartphone and receiving this error does not seem to generate an error in the server log. 

Leggi di più
Postato il da Norman G.
Norman G.
Norman G.
User
Autore

Additional piece of information:  My test site is generated with X5 Evolution 10 where my real site is generated with X5 Professional 10.  Same error on both sites.

Leggi di più
Postato il da Norman G.
Norman G.
Norman G.
User
Autore

I just set up a generic page with X5 Evolution.  It's a single home page with one text cell.  That's it.  Same error on the smartphone.  The link is http://test.ngarrett.info

This must be some sort of server configuration issue, but I'm not sure how to proceed at this point, as the web host says they can't troubleshoot this sort of error because it's on the user's side.

Leggi di più
Postato il da Norman G.
Norman G.
Norman G.
User
Autore

To test my theory, I think I'll move the file to another server I have and test there (different hosting service).  I'll report back for the benefit of anyone who might be having the same problem on BlueHost.

Leggi di più
Postato il da Norman G.
Anthony A.
Anthony A.
User

open your .htaccess with editor, and tell me what do you have over there, there should be one in your public_html folder.

if this post is the correct answer, please mark this answer as correct answer.

------------------------------------------------------------

Good Luck

http://www.wdesigners.us

http://www.usx5.com (coming soon)(Sign up to be notified when we launch!)

Leggi di più
Postato il da Anthony A.
Norman G.
Norman G.
User
Autore

Interesting.  Here's the contents of .htaccess:

# Use PHP5 Single php.ini as default
#AddHandler application/x-httpd-php5s .php

There is also a file in that directory called .htaccess.bak:

# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php

I have no idea what changed the .htaccess to comment out the second line, but there it is.  Anyway, just to test, I renamed .htaccess to .htaccess.old and then renamed .htaccess.bak back to .htaccess.  It didn't help, so I moved it all back.  It appears that .htaccess has nothing in it, as both items are commented out.

Leggi di più
Postato il da Norman G.
Anthony A.
Anthony A.
User

delete the .htaccess.bak

edit your .htaccess : remove  (# Use PHP5 Single php.ini as default
#AddHandler application/x-httpd-php5s .php)

then add this one: Options -Indexes

btw, did you remove that welcome page? if not, please do

let me know the result

if this post is the correct answer, please mark this answer as correct answer.

------------------------------------------------------------

Good Luck

http://www.wdesigners.us

http://www.usx5.com (coming soon)(Sign up to be notified when we launch!)

Leggi di più
Postato il da Anthony A.
Norman G.
Norman G.
User
Autore

OK.  I did that and I get the Internal Server error message even from a desktop.  In the meantime, I uploaded the identical page to an IIS server and it works fine from mobile.  But I need it to work on the other host, so I'm going to have to get to the bottom of the .htaccess issue, which it appears to be.

Leggi di più
Postato il da Norman G.
Norman G.
Norman G.
User
Autore

My bad.  I had a typo.  Corrected it as you suggested and it works now again from desktop, but not from my mobile.

Leggi di più
Postato il da Norman G.
Anthony A.
Anthony A.
User

you still have your welcome page which is just a picture with link, REMOVE IT, then upload your website and test it!

if this post is the correct answer, please mark this answer as correct answer.

------------------------------------------------------------

Good Luck

http://www.wdesigners.us

http://www.usx5.com (coming soon)(Sign up to be notified when we launch!)

Leggi di più
Postato il da Anthony A.
Norman G.
Norman G.
User
Autore

I've been testing using the test.ngarrett.info site, so that's the one I've been messing with instead of the full weather.ngarrett.info site.  The test site doesn't have a landing page.

Leggi di più
Postato il da Norman G.
Norman G.
Norman G.
User
Autore

I solved the problem myself.  It seems that I had set up a test page for another site on the server (once apon a time) and had forgotten about it.  I used one of the built-in web designers (Weebly) to put up an "under construction" page.  Apparently, that design tool had tweaked a setting server-wide that tried to handle mobile.  So there was an .htaccess file that I hadn't looked at and when I deleted it, everything worked.  Since Anthony A. pointed me in the right direction, I'll give him credit for the solution.  Thanks for the help, Anthony.

Leggi di più
Postato il da Norman G.