Log in

View Full Version : Admin CP Trouble


pachoofoosh
01-21-2013, 10:22 AM
Hello,

After I log into the Admin Control Panel for my site, when I view the different pages, every page has the same "Welcome to your Admin CP..." text instead of the page's actual text.
I'm not quite sure what is causing this; I looked through some of my site's files and couldn't really find anything.
Any ideas on what do do to fix it? :littlecfrown:

Thank you for any help! ^u^

5404
01-21-2013, 11:53 AM
I'm not sure but this could be problem with .htaccess.

.htaccess of just downloaded and unzipped file looks like that:
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
And according to this (http://corz.org/serv/tricks/htaccess2.php) it just catch all requests and shows index.php:
Next, you say you are trying to catch all requests that don't contain "index.php".. and ensure they do, creating a PATH_INFO parameter out of the original request. Something like this will work better..

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php/$1 [R,L]

The first two lines check that the requested resource doesn't actually exist (including requests for index.php itself). It's slightly wasteful, but required for your catch-all rule. The RewriteRule catches all other requests and directs them to /index.php/*something*.

*something* will then be available as your PATH_INFO variable.

If you don't want the new address to show up in the user's address bar, remove the [R] flag.Source: http://corz.org/serv/tricks/htaccess2.php

pachoofoosh
01-21-2013, 05:23 PM
I'm not sure but this could be problem with .htaccess.

.htaccess of just downloaded and unzipped file looks like that:

And according to this (http://corz.org/serv/tricks/htaccess2.php) it just catch all requests and shows index.php:
Source: http://corz.org/serv/tricks/htaccess2.php

I replaced my .htaccess with that, and it made it impossible to access the admin control panel; it just showed the main site's index.php content. :o

LucasA33
01-21-2013, 05:32 PM
Hey, I have a question.. Are you using WWW. on your site, NOT the admin panel, just your site..

5404
01-22-2013, 05:08 AM
@pachoofoosh, I didn't say you should replace your .htaccess. x.x
I just said .htaccess in /admincp/ looks similar and that's why you could get redirected. x.x

Hall of Famer
01-22-2013, 12:26 PM
Yeah, LucasA33 has a point. You need to use the url that begins with http://www., the http:// part is not required but www is a must.

pachoofoosh
01-22-2013, 02:43 PM
Oh; Sorry about that! I've changed the .htaccess back to normal.

Yeah, I am using http://www. at the beginning of the URL. c:

Hall of Famer
01-23-2013, 12:53 AM
umm weird, can you post a screenshot of yourself viewing different pages? Do they all show up as the admin login page?

pachoofoosh
01-23-2013, 06:00 PM
It lets me log in, it's just that after I log in every page has the same text. ^^

The ACP index page after I log in:
http://i48.tinypic.com/142dn47.png

The ACP "adopt/add/" page:
http://i49.tinypic.com/swzhw4.png

And all the other pages in the Admin CP have the same text as the above. ^^;

LucasA33
01-23-2013, 07:56 PM
Did you try a reinstall, maybe using a second mysql database to see if it perhaps is something with what you did? I don't remember having that issue.

pachoofoosh
01-24-2013, 06:56 PM
I just re-installed it, but it still only shows the index page's text when I log into the ACP. My host only allows one database for the hosting package I have, so I can't try it with a second database. ^^; I double-checked to see if I entered all the information correctly, and everything seemed fine.

Could it be something to do with the files in the /lang/ directory? :o