Support Forum

Forum not dislaying correctly

17 Answers

New Answer

MP Mr Papa
Mr Papa
Member

looks like you have 5.0 themes installed wrong… getting this error:

“NetworkError: 404 Not Found – http://longspeakdiscgolf.com/wp-content/sp-resources/forum-themes/default/styles/default.php?color=ice”

do you have the themes in wp-content/sp-resources/forum-themes??

if so, the permissions or ownership on the sp-resources directory might not be correct. can you check?

PH phrankerCO
phrankerCO
Member

Index view shows all the way to file:

http://longspeakdiscgolf.com/wp-content/sp-resources/forum-themes/default/styles/

 

Here is dir listing:
-rw-r–r–  1 lpdg lpdg 57485 Feb 10 18:41 default.php
drwxr-xr-x  2 lpdg lpdg  4096 Feb 19 16:48 images
drwxr-xr-x  2 lpdg lpdg  4096 Feb 19 16:48 overlays
-rw-r–r–  1 lpdg lpdg  2061 Dec 20 20:20 reset.css

 

What else? writable?

MP Mr Papa
Mr Papa
Member

compare the owner of sp-resources (is it web user or apache or nobody) to say simple-press in the plugins dir…

your server settings might be such that we couldnt create it properly and you need to manually adjust…

GU guppydas
guppydas
Member

I found similar problem when I had enabled suPHP. 

 

Check if your Apache PHP handler is suPHP or DOS or CGI?

 

My hosting provider also experimented with it and was surprised to see this as he was able to replicate similar error. Same configuration … except the way PHP is handled. 

PH phrankerCO
phrankerCO
Member

The user is the same through out the whole dir structure (lpdg) – this is hosted on a dedicated server and each account has its own user name.

MP Mr Papa
Mr Papa
Member

guppydas, yeah but hasnt been universal across suphp… but I think its related here…

phranker… something is preventing the web user from accessing the sp-resources directory via http… are you sure the owner of the sp-resources is not set to nobody? you are sure the owner is lpdg:lpdg?

PH phrankerCO
phrankerCO
Member

guppydas said

I found similar problem when I had enabled suPHP. 

 

Check if your Apache PHP handler is suPHP or DOS or CGI?

 

My hosting provider also experimented with it and was surprised to see this as he was able to replicate similar error. Same configuration … except the way PHP is handled. 

Not quite sure how to check – loaded phpinfo(); searched suPHP – nothing found…

I’m lost?!?!?!?

MP Mr Papa
Mr Papa
Member

do you have ssh access? guessing so based on your server description…

do a:

ls -la

on the sp-resources directory and see who the owner is… might be worth doing it in wp-content too and comparing…

PH phrankerCO
phrankerCO
Member

positive

couldn’t upload screen cap – here is cut/paste of terminal dir view

 

[root@dedi www]# cd wp-content/
[root@dedi wp-content]# ll
total 28
-rw-r–r–   1 lpdg lpdg   30 Jun 10  2011 index.php
drwxr-xr-x   3 lpdg lpdg 4096 Apr 28  2011 mingle-forum-skins
drwxrwxrwx   8 lpdg lpdg 4096 Feb 19 17:05 plugins
drwxr-xr-x  13 lpdg lpdg 4096 Feb 19 16:53 sp-resources
drwxr-xr-x   4 lpdg lpdg 4096 Feb 19 17:37 themes
drwxr-xr-x   2 lpdg lpdg 4096 Feb 19 17:37 upgrade
drwxrwxrwx   4 lpdg lpdg 4096 Jan  6 13:24 uploads
[root@dedi wp-content]# cd sp-resources/; ll
total 44
drwxr-xr-x  2 lpdg lpdg 4096 May  6  2011 forum-avatar-pool
drwxr-xr-x  2 lpdg lpdg 4096 May  6  2011 forum-avatars
drwxr-xr-x  2 lpdg lpdg 4096 May  6  2011 forum-badges
drwxr-xr-x  2 lpdg lpdg 4096 May  6  2011 forum-file-uploads
drwxr-xr-x  2 lpdg lpdg 4096 May  6  2011 forum-image-uploads
drwxr-xr-x  5 lpdg lpdg 4096 Feb 19 16:48 forum-language
drwxr-xr-x  2 lpdg lpdg 4096 May  6  2011 forum-media-uploads
drwxr-xr-x  2 lpdg lpdg 4096 Feb 19 16:48 forum-plugins
drwxr-xr-x  2 lpdg lpdg 4096 May  6  2011 forum-policies
drwxr-xr-x  2 lpdg lpdg 4096 May  6  2011 forum-smileys
drwxr-xr-x  4 lpdg lpdg 4096 Feb 19 16:58 forum-themes
[root@dedi sp-resources]# cd forum-themes/ ; ll
total 8
drwxr-xr-x  5 lpdg lpdg 4096 Feb 19 16:48 default
drwxr-xr-x  5 lpdg lpdg 4096 Feb 19 16:59 stacked
[root@dedi forum-themes]# cd default/ ; ll
total 52
drwxr-xr-x  2 lpdg lpdg  4096 Feb 19 16:48 images
-rw-r–r–  1 lpdg lpdg 36252 Jun 25  2011 spTheme.jpg
-rw-r–r–  1 lpdg lpdg   355 Feb 11 13:12 spTheme.txt
drwxr-xr-x  4 lpdg lpdg  4096 Feb 19 16:48 styles
drwxr-xr-x  2 lpdg lpdg  4096 Feb 19 16:48 templates
[root@dedi default]# ls -lp styles/
total 76
-rw-r–r–  1 lpdg lpdg 57485 Feb 10 18:41 default.php
drwxr-xr-x  2 lpdg lpdg  4096 Feb 19 16:48 images/
drwxr-xr-x  2 lpdg lpdg  4096 Feb 19 16:48 overlays/
-rw-r–r–  1 lpdg lpdg  2061 Dec 20 20:20 reset.css
[root@dedi default]#

PH phrankerCO
phrankerCO
Member

wp-content is lpdg:lpdg as well

 

to make sure – I did a [ chown -R lpdg:lpdg * ] in root www dir

 

still no good — what can it be??

GU guppydas
guppydas
Member

phrankerCO said

guppydas said

I found similar problem when I had enabled suPHP. 

 

Check if your Apache PHP handler is suPHP or DOS or CGI?

 

My hosting provider also experimented with it and was surprised to see this as he was able to replicate similar error. Same configuration … except the way PHP is handled. 

Not quite sure how to check – loaded phpinfo(); searched suPHP – nothing found…

I’m lost?!?!?!?

Ok Look for the value “Server API” … what does it say? That will tell you which handler is in effect. Some of the answers are :

1) Apache 2 Handler (which also is I guess the DOS handler)

2) CGI

3) suPHP 

GU guppydas
guppydas
Member

phrankerCO said

Server API = CGI/FastCGI

Sorry My bad, I was wrong. Been up for over 20 hrs and tired so I am bit confused in my head. embarassed 

 

Looks like you ARE ON suPHP …

http://support.hostgator.com/articles/phpsuexec-or-suphp this will sort of explain a little. 

 

My guess is for some reason suPHP is messing up with either CSS or the PHP script which uses CSS for final output of the layout for redering as an HTML page.

 

Well I guess Mr Papa will have to help you on that one. I will keep an eye open for this issue. If you happen to resolve it, please do take a few moments and share the process here. It will be highly appreciated.