Admin pages not displaying correctly

Discussion in 'Troubleshooting' started by webguy22, Oct 10, 2008.

  1. webguy22

    webguy22 aMember Pro Customer

    Joined:
    Apr 7, 2008
    Messages:
    18
    I seemed to have lost my css formatting on all the aMember admin and login pages. I cleared templates_c to no avail. I uploaded and replaced all the aMember code (in binary). Didn't fix. I cleared my IE temp files. No change. I tried on two different browsers and PCs. No luck.

    Any ideas???
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    The CSS is stored at amember\templates\css

    You can check:

    1) if the files are there (admin.css, site.css, amember.css)
    2) if they are corrupt/empty (what if you use the ones shipped in the aMember .zip file)
    3) if the permissions are correct on the directory so the script and www can access it
  3. webguy22

    webguy22 aMember Pro Customer

    Joined:
    Apr 7, 2008
    Messages:
    18
    Yes, checked the css folder (755) and viewed the files on the server (644 too). All look fine.

    This one is really baffling. Here's a snapshot of one of the pages. The formatting, font sizes, etc, all messed up.

    http://www.digitalwebby.com/images/aMember.gif

    Now it starts to get really strange. I placed an empty admin.css in the templates/css folder and the data still displays the same way. I then reloaded the old admin.css file and still displays the same.

    Then I deleted it altogether and there's no error when loading the page (I did delete the files in templates_c prior to each test).
  4. webguy22

    webguy22 aMember Pro Customer

    Joined:
    Apr 7, 2008
    Messages:
    18
    Turned out to be a mod_rewrite issue. Or so I think. Had my host provider turn on mod_rewrite. After that, the admin php programs couldn't find the css files. But if you look at the source code, the calls are absolute, which should be fine (and a requirement) when using mod_rewrite. When I had mod_rewrite turned off, all was fine again.

    I'm wondering if there's something else I need to tell my host provider besides just turn on mod_rewrite. ???
  5. webguy22

    webguy22 aMember Pro Customer

    Joined:
    Apr 7, 2008
    Messages:
    18
    Problem solved. Added "RewriteEngine off" to .htaccess file in the CSS dir. There are other ways to handle, but I choose to use inheritance to solve this.
  6. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Glad to hear it is squared away!

Share This Page