Support Forum

My Forum is completely screwed

QA QASIM ALHAMMAD
QASIM ALHAMMAD
Member

Hi All,

First I would like to say that I have a complicated long term issue on my forum pages as it became completely screwed.

I was using the Forum on old release 4.5 with the default theme and it was perfect, until I have added some WordPress plugins and activate them to see different issues with the forum display with the first being seeing any Forum page display twice on the same page. I was still able to use the Forum regally but each Forum display will show twice. I tried to deactivate my plugins and reactive them but with no luck.

Recently my website was consuming a lot of CPU process and I received an email from my web host asking me to reduce CPU process or they will have to take down my website and they advice to deactivate all my plugins and reactivate them one by one; which I did and as soon as I active the Simple Press Plugin the Forum display is completely screwed as you can see here MSocialH Forum. I am not much technically professional and I don’t understand coding at all.

In order to solve my issue I have tried multiple things starting by Upgrading to the latest version, using different Simple Press themes, trying different settings in integration options and theme display options, also tried options-Global settings with no luck at all.

Then I checked my error log and found this error from all long when I installed the plugin even when it was partially working 

file: /simple-press/sp-api/sp-api-plugins.php
line: 82
function: closedir
Warning | closedir() expects parameter 1 to be resource, null given

So I am not sure what could be the problem and would really appreciate any help?

44 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

If this is version 5.2 then start by going to the forum admin > Options > Global Settings and turn off the options to cache/compress CSS and Javascripts (see the right hand side of the panel).
When that is done, come back so we can take another look at it.

QA QASIM ALHAMMAD
QASIM ALHAMMAD
Member

Hi Yellow,

Thank you so much for your quick reply, I have already turned these off and checked but the same issue is still there.

BR Brandon
Brandon
Member

It appears you have some kind of plugin that is mimifying CSS along with a cache program and are using the Google API Jquery. I am not seeing the forum CSS being loaded at all.

The combination could create quite a few problems. If you could turn off any minimizing CSS or JS plugins and make sure the forum page is not cached that would be where I would start to eliminate issues.

Then take a look at this article on What is this jQuery Conflict?  in regards to the Google APIS stuff. 

QA QASIM ALHAMMAD
QASIM ALHAMMAD
Member

Hi Brandon,

Thanks for your response, I have read that article before but as I said I am not into coding so I didn’t understand it quie well, however I went to my forum pages and checked it and this is what I can see.

From the scrip below what it the plugins or application that could cause the issue, is it Contact form 7 of Jetpack plugin and the Gensis theme which are causing the probelm!

<script type=’text/javascript’

src=’http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js’></script>

<script type=’text/javascript’

>try{jQuery.noConflict();}catch(e){};</script>

<script type=’text/javascript’

src=’http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js’></script>

</script>

<script type=’text/javascript’

src=’http://www.msocialh.com/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=3.3.2′></script>

<script type=’text/javascript’

src=’http://s0.wp.com/wp-content/js/devicepx-jetpack.js?ver=201251′></script>

<script type=’text/javascript’

src=’http://www.msocialh.com/wp-content/themes/genesis/lib/js/menu/superfish.js?ver=1.4.8′></script>

<script type=’text/javascript’

src=’http://www.msocialh.com/wp-content/themes/genesis/lib/js/menu/superfish.args.js?ver=1.8.2′></script>

<scriptsrc=”http://stats.wordpress.com/e-201251.js”type=”text/javascript”></script>

<scripttype=”text/javascript”>

st_go({v:

‘ext’,j:‘1:2.0.4’,blog:‘40117065’,post:‘9’,tz:‘3’});

var load_cmc = function(){linktracker_init(40117065,9,2);};

if ( typeof addLoadEvent != ‘undefined’ ) addLoadEvent(load_cmc);

else load_cmc();

</script>

MP Mr Papa
Mr Papa
Member

the problem wont be genesis…  I use that on multiple sites and they are excellent at following wp api and standards…  jetpack while a bit heavy in what it does load, does follow the wp api…  guess a child theme could screw that up, but doubtful…

but something on your site is not…  look at the loading of jquery and jquery ui min from what you posted… both being loaded googleapis… quite bad…  wp provides its own version of both of those…  and they really should be used since that is all other wp plugins can test with…  you may be getting two version loaded now too…

so the key will be to find who is loading those – plugin or theme…  search your plugins for those script loadings and we can help correct them…

QA QASIM ALHAMMAD
QASIM ALHAMMAD
Member

Hi Papa, 

Thanks for your comment, I have deactivated 5 plugins which I think that could run these scripts and indeed after disabling them I can see in the Forum source that only scripts as mentioned in the document is there but nothing has changed about the Forum and it still display the same way.

<
script
type
=
‘text/javascript’
src
=
‘http://your-domain/wp-includes/js/jquery/jquery.js?ver=’
></
script
>
 
I have even tried activating different themes and I have tried different Forum options and nothing seems to take effect on the Simple Press Forum display.
 
Is there any way to download all the Forum date and settings and then delete the simple press plugin, perform a clean installation and then restore the data of the forum?
 
YS Yellow Swordfish
Yellow Swordfish
Member

Can we go back to my post 2 above please. It is still trying to load the compress/cached CSS and in your case it is finding an empty file. Can you check those options please because it is acting as if they are both turned on.

QA QASIM ALHAMMAD
QASIM ALHAMMAD
Member

Hi Yellow,

Just to confirm, you are referring to Options – Global Settings – CSS/JS Combined Caching – 

Enable combining and caching of forum CSS files / Enable combining and caching of forum script (JS) files

Well again both are turned off.

Again I have disabled the plugins that could use JQuery, tried different themes and tried different integration options but nothing seems to take effect. The error for PHP on Line 82 in /simple-press/sp-api/sp-api-plugins.php is still there. 

Is there anything that I should edit on this file or make sure it’s on the right settings!! is there anything else I should try!! is there any way to download forum data, wipe off the old simple press installation, re-install fresh simple press installation and restore your data just like you do with WordPress!!

Please let me know this is very frustrating and I was looking for solution for a long time, I have tried to market my forum very hard to attract few people whom know is starting to loose interest in the Forum or establish a forum with a similar idea!

MP Mr Papa
Mr Papa
Member

line 82 is not an error, but a warning… but will look into further – not what your issue here is…

the issue seems to be file permissions on your server…  the theme its trying to load is

http://www.msocialh.com/wp-content/sp-resources/forum-themes/default/styles/default.php?color=silver

but on your site, that generates a 404 error…  I assume that is the correct location? you can check on forum – integration – storage locations…

I suspect either the permissions or the uid/gid is wrong on the sp-resources directory…  this could also cause the issue in line 82…  can you verify both for sp-resource??   they should match the ones on wp-content

QA QASIM ALHAMMAD
QASIM ALHAMMAD
Member

Hi Mr Papa,

Thank you so much for your quick response. 

In the Integration -storage locations; the location is wp-content/sp-resources/forum-themes

I see the permission for default.php is 0644 while it’s 0755 for images and overlays. Is this the correct permissions. Also could you let me know what uid/gid settings should be and where I need to check them.

Appreciate your time evaluating my problem.

YS Yellow Swordfish
Yellow Swordfish
Member

The UID and GID can usually be disclosed with a good FTP program or through your website control panel – file manager type option. They refer to what user and group of users are allowed to own and have access to the folder.

Once you are able to show them then you need to compare the two names with those on the parent /wp-content folder and they should be the same.

They should be the same when a new sub-folder is created – i,.e., they should be inherited. But some hosts seem to set these up differently – possibly as some sort of form of security – and they do not always inherit correctly. It is rare but it happens to a small number of users.

Probably the quickest and easiest way might be to ask you hosting support to check them and, if they are set incorrectly, to put them right for you.

QA QASIM ALHAMMAD
QASIM ALHAMMAD
Member

Hi Yellow,

Thank you so much for the explanation, yes both of them are exactly the same and replicate each others. I have changed the all the files for the theme 0755 but still the same issue is there.  And this link http://www.msocialh.com/wp-content/sp-resources/forum-themes/default/styles/default.php?color=silver is still giving 404.

MP Mr Papa
Mr Papa
Member

so you did verify the gid in particular?  some php settings force created directories by the web user to be wrong…

then its time to talk to your host…  but if that file is not web accessible, its a problem…  your host ought to be able to track down why…

 

QA QASIM ALHAMMAD
QASIM ALHAMMAD
Member

Yes I did verify the GID is working as it should. I think that I need to take to them. Let me see how there response would be, I am afraid they will kill. I am just having a wired take with them about a serious issue with another blog.