Support Forum

Simple press theme is broken on WP Multisite

15 Answers

New Answer

MP Mr Papa
Mr Papa
Member

you seem to have a permissions issue on your server…. for the barebones theme

http://coupondelhi.in/forum/wp-content/uploads/sp-resources/forum-themes/barebones/styles/barebones.php?overlay=custom&theme=barebones&device=desktop&ver=4.4.2

you get a 403 error

<html>
<head><title>403 Forbidden</title></head>
<body bgcolor="white">
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
</html>

can you verify the permissions on sp-resources and its lower level directories?

AR Amar r
Amar r
Member

There permission is set to 644. What permission shall I set and to which file?

barebones-styles.PNGbarebones-templates.PNGbareboens-images.PNGbarebones-admin.PNGbarebones.PNG

YS Yellow Swordfish
Yellow Swordfish
Member

What else could be causing a 403? Your server clearly doesn’t want to send the file back. How about mod_security? Are you using that? Could there be a black-listed word or partial match in that url?

AR Amar r
Amar r
Member

Well mod_security isn’t enabled on my server. Also I haven’t black listed any word so far. I am not sure about partial match. I have attached logs with this post, if you would like to take a look.

SimplePress works well with standard WP on my server, issue is only with WPMS.

YS Yellow Swordfish
Yellow Swordfish
Member

But it quite clearly states in that error log file that the theme url has – and I quote – ‘access forbidden by rule’.

So somewhere you DO have something that is causing the 403. mod_security or the .htaccess file perhaps? Not being a server mechanic I am not sure what else to point you towards but that message is unambigious.

MP Mr Papa
Mr Papa
Member

first, there does appear to be an issue with barebones theme running on multisite that we will need to address…

BUT it is not what you are seeing… yours is still an access issue where the file is getting denied…  at least I believe so…

Can you try using a different theme and see how that works?  for example, try the default theme which you can download for free in our store…

think you will have same issue, but would prove it and rule out the other barebones issue…  then we can continue working the file access issue…

AR Amar r
Amar r
Member

Same issue with iForum theme. Following is the error log entry:Iforum-theme.PNG

2016/02/14 08:23:10 [error] 16523#0: *34154 access forbidden by rule, client: 103.38.129.13, server: coupondelhi.in, request: “GET /forum/wp-content/uploads/sp-resources/forum-themes/iForum/styles/iForum.php?overlay=minimalist&theme=iForum&device=desktop&ver=4.4.2 HTTP/1.1”, host: “coupondelhi.in”, referrer: “http://coupondelhi.in/forum/forum/

CSS only theme seems to be working with partially broken icons and text. Also there wasn’t any error with CSS only.css-only.PNG

YS Yellow Swordfish
Yellow Swordfish
Member

So that suggests you have a rule set up somewhere on your site/server that does not allow php files to be loaded as CSS files – which is not an uncommon practice.

But that is a little odd as I thought you set up a test site where this did work OK – or was that on a different server?

As to the ‘broken’ icons and text on your screenshot that looks to be a typical effect of a WP theme being a little too aggressive with it’s styling.  There are sometimes one or two things that need to be massaged from WP theme infiltration and they are usually very quick and easy to correct and we can help with them for those users who need assistance.

So – if css-only works then the barebones-css versions should also work for you.

MP Mr Papa
Mr Papa
Member

may not until we get the multisite fixes pushed out today…  my recommendation would be to wait for that release and do a fresh install…  will be today unless the sky falls..

MP Mr Papa
Mr Papa
Member

hopefully soon… 

worth adding, if your server still blocks using php files as css, you will still need to select the css only version of barebones…  nothing on our end we can do there…

MP Mr Papa
Mr Papa
Member

core 5.6.4 and barebones 1.0.2 have been released… I would suggest doing a full uninstall (removing directories by hand if needed and remove sp tables from db)…

you should be good after that though as discussed, you may need to use the css version of barebones…

AR Amar r
Amar r
Member

Found the solutionsmile

At this point I am very happy.

Access was blocked by rule located at /etc/nginx/common/wpcommon.conf

And the rule was

location /wp-content/uploads/ {
  location ~ .php$ {
    #Prevent Direct Access Of PHP Files From Web Browsers
    deny all;
  }
}

Many thanks to you Mr. Papa. Cheers!!!