migrated to GoDaddy Grid: site crippled, cannot access pages, css paths incorrect

Permalink
Hi,

My site migrated from GoDaddy Economy to Economy Grid hosting and it seems to have caused to have caused a problem.

The home page still loads but I cannot access site/login or site/index.php/login or any other page on the site.

The css files in the home page are not loaded because the link points to the wrong location now. It points to /index.php/tools/css/themes/SleekAWS/main.css instead of the correct /themes/SleekAWS/main.css
( header.php contains the correct code:
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('main.css')?>" />
and the site works fine locally.

Scripts load correctly.

So there is some problem with paths, I guess... The site is currently located in a subfolder to which a subdomain points but the same problem occurs when the site is hosted in the root (and the appropriate changes to site.php have been made).

see: [removed link]

I hope somebody can help.

 
mdzoidberg replied on at Permalink Reply
mdzoidberg
Hello, try;

<link rel="stylesheet" href="<?= $this->getThemePath();?>/main.css" type="text/css" media="screen" />


Instead of using $this->getStyleSheet(); and assuming your css file is inside your theme folder.
martijnR replied on at Permalink Reply
Thanks, this works for loading the stylesheets, so the home page displays correctly now. However, the underlying issue is still there.

E.g. there is no way I can access the login page, dashboard or any other page (e.g. [removed link] )

Any idea what this issue could be? I searched the forum extensively but could not find an answer. I must be some kind of server setting.
martijnR replied on at Permalink Reply
I just discovered something.

I get errors when trying to access:
[removed link] or
[removed link]
(error in Chrome: 'Oops! This link appears to be broken.')
(error in Safari: 'No input file specified'.)

but I can still access that page by going to:
[removed link]/index.php?cID=93

Hopefully that information makes it possible to nail down the cause of the problem I'm experiencing.
martijnR replied on at Permalink Reply
The helpful 'no input file specified' error in Safari seems to be a well-known issue described in several other threads. One of the solutions sort of worked for me (seehttp://www.magentocommerce.com/wiki/groups/227/error/no_input_file_... which was linked to from this thread:http://www.concrete5.org/community/forums/usage/andquotno_input_fil...

After 5 mins of waiting (cache refresh?) the site started working again without pretty urls, so I could login and access the Dashboard. My issue is now greatly reduced to just a pretty url problem. There are plenty of threads describing that issue, so I'll sort that out (or find another hosting provider).
12345j replied on at Permalink Best Answer Reply
12345j
martijnR replied on at Permalink Reply
Ah we cross-posted with the same solution. Thanks!
martijnR replied on at Permalink Reply
I never got pretty urls to work. The php5.ini trick and addition to .htaccess described in the links above did not work.

GoDaddy support ensured me that mod_rewrite is enabled by default and couldn't help with enabled pretty urls.

I ended up switching hosting providers (now pacifichost.com). GoDaddy gives refunds for unused months.
gewald replied on at Permalink Reply
gewald
On my php5.ini file I added this:


cgi.fix_pathinfo = 1
cgi.force_redirect = 0


which seemed to be the fix today. The GoDaddy support person was very helpful (stayed late to research the issue and sent me some suggested fixes, emailed me back today and called)

I also created an .htaccess file with just this in it:

# Customized error messages.
ErrorDocument 404 /index.php
# Set the default handler.
DirectoryIndex index.php
# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
</IfModule>



Now my sites are up and working. And the grid hosting does seem faster than before.