Log in

View Full Version : Admin Control Panel Template Not Showing


mandogon
01-03-2008, 04:39 PM
Hello all,

I have been having a issue with the Admin Control Panel displaying the template for the "AdminCP" incorrectly. Currently the back end of the site "AdminCP" has no template.(I have enclosed a picture.) The site's front end "the regular forums" is totally fine, works great.(I have enclosed a picture or you can look for yourself at https://www.cctvhelp.com/index.php):p

This problem is happening only on the production server! I have the forum also loaded onto a test server. The test server works fine.(I have enclosed a picture.) The AdminCP styles are displayed correctly.

This problem only occurs once the files are moved from the "test server" to the "production server". (the files are made into a tar.gz on the test server and sent to production)

Both servers are Running FreeBSD, Apache, Mysql, and PHP.

If anyone could point me in the right direction I would appreciate it.

-Thanks:)

Opserty
01-03-2008, 04:46 PM
Check to make sure you have uploaded the /cpstyles/ directory to your production server.

mandogon
01-03-2008, 04:57 PM
All files have been moved including the "cpstyles" directory,

Also might i add that all file "permissions" seem to be correct.:erm:

Marco van Herwaarden
01-04-2008, 06:29 AM
Is the owner of the files also set correct?

mandogon
01-04-2008, 03:59 PM
Yes the owner of the all directories is the "root" user.

The root user also has the permissions "755" for the cpstyles directory and all files in it.

Marco van Herwaarden
01-05-2008, 07:10 AM
Files should not be under the user 'root'.

Lynne
01-05-2008, 02:10 PM
Files should not be under the user 'root'.
While this is true, I don't think this would cause the problems he is having, would it?

Marco van Herwaarden
01-06-2008, 08:25 AM
Yes it would, unless your webserver process is running under the user 'root', in which case you have more severe security problems.

mandogon
05-15-2008, 10:52 PM
I'm still having these problems.... In fact i made another forum on the same server... same problem....

the webserver process is not under the user 'root" what do i need to do ?

mandogon
05-16-2008, 11:33 PM
Marco!!! Help Me Please!!!

LOL - Really i can deal with it if not..... not such a big deal.... feels like i stepped back into 1997 when i log into the forums admin cp.

Lynne
05-17-2008, 02:46 AM
Have you made sure that you have uploaded the cpstyles? Or that the permissions are correct for the folder and the subfolders within it? Look at the source code on a page in your admin cp, around the fourth line is something like this:
<link rel="stylesheet" type="text/css" href="../cpstyles/vBulletin_3_Frontend/controlpanel.css" />Point your browser to it and see if it comes up. If it doesn't come up in your browser, the either is doesn't exist (so upload it) or the permissions are incorrect (so fix them).

Marco van Herwaarden
05-17-2008, 10:46 AM
To troubleshoot this, please remove any hacks and disable your plugins, then see if you still have this problem.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

If so, reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server.

If your problem still exists, please create a new Style with no Parent set. Now browse the forum using this new style, do you still have the same problems? If you are troubleshooting login or guest issues, you will need to set this style as board default in the vBulletin Options.

If this doesn't help, then i suggest to open a support ticket so a support staff member can have a look at your server.

mandogon
05-20-2008, 06:37 PM
I checked the webserver for the cp styles directories and i posted the pictures below.... to my understanding it looks pretty correct.....

Also might i add that on my test server "everything works properly...." all i do is mount my test server to the webserver and plow everything over.....

Also... Lynne... im not sure what exactly you mean... about looking at the source for a admin cp page....

If i understand correctly

what i did was navigate to the vbulletin options main page.... used firefox and right clicked on the page and clicked "view page source"

which gave me this....

<html dir="ltr" lang="en">
<head>
<script type="text/javascript">
<!--
// get out of any containing frameset
if (self.parent.frames.length != 0)
{
self.parent.location.replace(document.location.hre f);
}
// -->
</script>
<title>CCTVHelp.com Discussion Board Admin Control Panel</title>
</head>

<frameset cols="195,*" framespacing="0" border="0" frameborder="0" frameborder="no" border="0">

<frame src="index.php?do=nav" name="nav" scrolling="yes" frameborder="0" marginwidth="0" marginheight="0" border="no" />
<frameset rows="20,*" framespacing="0" border="0" frameborder="0" frameborder="no" border="0">
<frame src="index.php?do=head" name="head" scrolling="no" noresize="noresize" frameborder="0" marginwidth="10" marginheight="0" border="no" />
<frame src="index.php?do=home" name="main" scrolling="yes" frameborder="0" marginwidth="10" marginheight="10" border="no" />
</frameset>
</frameset>

<noframes>
<body>
<p>Your browser does not support frames. Please get one that does!</p>
</body>
</noframes>
</html>

I dont think that i found the correct area to view the source, could you please direct me to the appropriate area to view the info you posted ?

BTW - Lynne thanks for all the help

Marco - I'm trying your solution next... 1 at a time....Lynnes first then yours but thanks for the reply and the help i really appreciate it..

I will reply later with updates on the situation


*PS* Sorry About the picture quality i thought it would turn out better.... if you need a better resolution image, I can make one, just let me know

Lynne
05-20-2008, 07:35 PM
In firefox, when trying to get the source code for a page in a frame, right click on the page and go down to This Frame and then View Frame Source. That should give you the source code for that page. Squinting at your images, I think you have all the files in the correct place, so unless that path is wrong in the source code, then the style should show.

mandogon
05-20-2008, 10:24 PM
Lynne,

I think i found it, thanks for the tip:)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" lang="en">
<head>
<title>Welcome to the vBulletin Admin Control Panel - CCTVHelp.com Discussion Board - vBulletin Admin Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" type="text/css" href="../cpstyles/vBulletin_3_Default/controlpanel.css" />
<style type="text/css">
.page { background-color:white; color:black; }
.time { color:silver; }
</style>


So what i did was copy and pasted it into the browser .... https://www.cctvhelp.com/cpstyles/vBulletin_3_Default/controlpanel.css

and some css did come up but it kinda looked outta wack.... but i assume thats just because the browser is wrapping the text... and ignoring the whitespace

So pretty much the files exist and the permissions are good ? right ?

Lynne
05-20-2008, 10:37 PM
Maybe try reuploading those files? Usually, the css is nice and neat and easy to read and edit. Your file is not.

mandogon
05-21-2008, 06:22 PM
Well i uploaded the css file... same thing....

When i look at the css file on the webserver... it looks fine.... just when i open it with the browser it looks funky

theres a pic from the webserver below...

I think I'm gonna take a whack at what marco said now and see if that helps....

what really kills me is that this whole thing works on my test server.... i can even... move the files from the webserver to the test server.... and the admincp style works fine.....errrrrrr

mandogon
05-22-2008, 04:16 PM
I'm gonna take a break with this for a few days.... i gotta couple other things that need to be done....

but i'll be back with updates....

-Thanks :D