Support Forum

Add New Topic not working on Topic page but works in Forum page

KE Kenn
Kenn
Member

Hi,

I have just updated to wp3.8 and the latest SimplePress with all plugin updates.

I have found that the Add New Topic button isn’t working when you are in a topic (the one next to the Add Reply button)

However it does work on the forum page where it lists the topics inside. This page oviously doesn’t have the add reply.

The button that isn’t working takes the user to a page that doesn’t load properly. I am using plugin organiser to deactivate all other plugins on this page to try and reduce the opportunity of conflicts. I have also turned most of them off to test before contacting you.

Website http://www.landlordreferencing.co.uk/discuss/community-forum/

I’m guessing it’s a javascript issue but any advice is appreciated as I’m not sure why it would work on one page but not the other.

Thanks for your help.

32 Answers

New Answer

MP Mr Papa
Mr Papa
Member

when you try to open that topic, you server is responding with:

“NetworkError: 500 Internal Server Error – http://www.landlordreferencing.co.uk/discuss/community-forum/?new=topic”

500 errors are the hardest to troubleshoot… any more info in the server error log?

are you running mod_security on your server?  or any other security type plugin that might be interferring with query arguments?

KE Kenn
Kenn
Member

Thanks for the reply

The log is pretty full. Here’s a snippet of the latest entries

Wed Jan 29 15:09:14 2014] [error] [client 90.213.184.137] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace., referer: http://www.landlordreferencing.co.uk/blog/2013/03/11/re-entry-of-evicted-tenant-to-collect-their-belongings/
[Wed Jan 29 15:09:19 2014] [warn] [client 58.22.70.34] mod_fcgid: stderr: PHP Notice:  Undefined index: forumname
[Wed Jan 29 15:09:32 2014] [warn] [client 172.246.132.188] mod_fcgid: stderr: PHP Warning:  htmlspecialchars(): Invalid multibyte sequence in argument

I am still looking for more will post again shortly if I find anything

 

 

KE Kenn
Kenn
Member

Looks like there is quite a lot going on in the logs and I will start to work through them one at a time.

[Wed Jan 29 15:04:58 2014] [warn] [client 223.240.22.188] mod_fcgid: stderr: PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 122880 bytes) in /var/www/vhosts/landlordreferencing.co.uk/problem-with-post-edit-buttonttpdocs/wp-content/plugins/gravityforms/form_display.php on line 430, referer: http://www.landlordreferencing.co.uk/discuss/community-forum/?new=topic

[Wed Jan 29 15:04:58 2014] [warn] [client 223.240.22.188] mod_fcgid: stderr: PHP Fatal error:  Class declarations may not be nested in /var/www/vhosts/landlordreferencing.co.uk/problem-with-post-edit-buttonttpdocs/wp-content/plugins/wp-minify/min/lib/Minify/HTML.php on line 19, referer: http://www.landlordreferencing.co.uk/discuss/community-forum/?new=topic

[Wed Jan 29 15:04:58 2014] [warn] [client 223.240.22.188] mod_fcgid: stderr: PHP Fatal error:  Call to a member function get() on a non-object in /var/www/vhosts/landlordreferencing.co.uk/problem-with-post-edit-buttonttpdocs/wp-includes/cache.php on line 113, referer: http://www.landlordreferencing.co.uk/discuss/community-forum/?new=topic

[Wed Jan 29 15:04:59 2014] [warn] [client 80.229.38.223] mod_fcgid: stderr: PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 30720 bytes) in /var/www/vhosts/landlordreferencing.co.uk/problem-with-post-edit-buttonttpdocs/wp-includes/class-phpmailer.php on line 2155, referer: http://www.landlordreferencing.co.uk/discuss/community-forum/lrs-launches-landlord-community-watch/

[Wed Jan 29 15:04:59 2014] [warn] [client 80.229.38.223] mod_fcgid: stderr: PHP Fatal error:  Class declarations may not be nested in /var/www/vhosts/landlordreferencing.co.uk/problem-with-post-edit-buttonttpdocs/wp-content/plugins/wp-minify/min/lib/Minify/HTML.php on line 19, referer: http://www.landlordreferencing.co.uk/discuss/community-forum/lrs-launches-landlord-community-watch/

I don’t understand why the forum page would be refering to the gravity forms plugin, I am looking at that now and I will turn the minify plugin off to rule that out

KE Kenn
Kenn
Member

Update.

After looking at all the plugins today I found that an https plugin was interfering with users posting replies.

It was either Imsanity ot Eww image optomizer – that was stopping the forum toolset

Still having issues with users posting topics when on a topic page but they can post from a forum page. Instead of a blank screen the header now loads and thats it.

I will update if I get any closer.

YS Yellow Swordfish
Yellow Swordfish
Member

Progress is always good!

Yes – please come back and we are here for anything specific we need to address.

KE Kenn
Kenn
Member

I’m still having a couple of issues and hoping you can help. These are the three errors I have left that I’m not sure how to resolve.

[Wed Jan 29 18:11:48 2014] [warn] [client 91.207.7.254] mod_fcgid: stderr: PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 79 bytes) in /var/www/vhosts/landlordreferencing.co.uk/problem-with-post-edit-buttonttpdocs/wp-includes/post.php on line 628, referer: http://www.landlordreferencing.co.uk/discuss/community-forum/?new=topic

This is repeated a few times and happens whenever add new topic button is used within a topic (ie when it’s next to the reply button)

[Wed Jan 29 18:13:46 2014] [warn] [client 192.34.108.50] mod_fcgid: stderr: PHP Warning:  htmlspecialchars(): Invalid multibyte sequence in argument in /var/www/vhosts/landlordreferencing.co.uk/problem-with-post-edit-buttonttpdocs/wp-content/plugins/simple-press/sp-api/sp-api-filters.php on line 1761

[Wed Jan 29 18:13:47 2014] [warn] [client 192.34.108.50] mod_fcgid: stderr: PHP Warning:  htmlspecialchars(): Invalid multibyte sequence in argument

This one appears several times

[Wed Jan 29 18:14:05 2014] [warn] [client 82.32.136.155] mod_fcgid: stderr: PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 122880 bytes) in /var/www/vhosts/landlordreferencing.co.uk/problem-with-post-edit-buttonttpdocs/wp-content/sp-resources/forum-plugins/mentions/library/sp-mentions-components.php on line 119, referer: http://www.landlordreferencing.co.uk/discuss/community-forum/tight-landlord/

and this one is also a memory error but refers to the sp-mentions-component.php ?

 

Hope you can help

Kenn

KE Kenn
Kenn
Member

Because I hadn’t mentioned, Its a Multisite install php memory limit at 2G.

In wp_config ‘WP_MEMORY_LIMIT’, ‘256M’

Yet the memory error is occurring at 64M?

I haven’t restarted apache after making these changes, do I need to?

YS Yellow Swordfish
Yellow Swordfish
Member

You do indeed need to restart Apache as it is that that will restart the php processor. But – even after that you need to check that your php session is getting the extra memory and that will be down to whether your host is allowing it.

You can check this with a phpinfo page or – the forum admin > toolbox > environment tab might tell you.

KE Kenn
Kenn
Member

Thanks

It is a dedicated server and I have full access so I can work through any suggestions.

I’ll restart this evening and check if it’s working. Do the log files suggest anything else may need checking or could this just be a memory issue?

YS Yellow Swordfish
Yellow Swordfish
Member

If dedicated then it would be better to increase the memory in php using the setting directly in the php.ini file. Much more robust…

KE Kenn
Kenn
Member

I’m really struggling with the latest Simple Press update in some way or another it seems to conflict with several plugins we’re using. Even using a selective loading plugin to try and deactivate all other plugins on the forum page isn’t working.

As the site is a multisite what I’m thinking of doing is creating a new site and cloning the template and menu and then running the forum on another site with absolutely no other plugins on it. This should make no difference to the user but could fix all these conflicts.

Do you think this could work?

MP Mr Papa
Mr Papa
Member

latest release?  its been out for months now…  is this new install?

simple press does work with multisite…  but each network site is standalone….

what are all the problems you allude to?   Reading through the thread seems to be running out of php memory…  have you increased the php memory directly as suggested by Andy?

you can run simple press on any of the network sites that you want – as stated each is a unique install…  network admin stuff is of course handled from the main site in the network…

KE Kenn
Kenn
Member

Thanks for the reply,

Basically current situation is The Add Topic button isn’t working when within a topic and the when in the simplepress profile page the posted to topics and topics created takes the user to a blank screen also the customer is currently administrating the forum using the pop out toolset as the forum menus in the dashboard just take us to a white screen too.

We have been using an https plugin to help handle areas of the site we want to secure and even though we don’t secure any forum pages it is interfering which now means other parts of the site are conflicting as we have has to turn it off to keep the forum open.

It is my own fault regarding the latest release comment, we had been hanging on to do updates because we were concerned about conflicts like these and I just haven’t had time to clone the site for testing purposes.

Fortunately the site is working it’s just got a few glitches to iron out.

The PHP memory has been increased and the last time I checked these looked like they were gone in the logs.

There are still errors but none regarding memory.

[Thu Jan 30 13:25:05 2014] [error] [client 66.249.75.83] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace.

[Thu Jan 30 13:25:05 2014] [error] [client 66.249.75.83] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace.

[Thu Jan 30 13:25:20 2014] [warn] [client 208.110.95.114] mod_fcgid: stderr: PHP Warning:  htmlspecialchars(): Invalid multibyte sequence in argument

[Thu Jan 30 13:25:20 2014] [warn] [client 208.110.95.114] mod_fcgid: stderr: PHP Warning:  htmlspecialchars(): Invalid multibyte sequence in argument in /var/www/vhosts/landlordreferencing.co.uk/problem-with-post-edit-buttonttpdocs/wp-content/plugins/simple-press/sp-api/sp-api-filters.php on line 1761

[Thu Jan 30 13:25:21 2014] [warn] [client 208.110.95.114] mod_fcgid: stderr: PHP Warning:  htmlspecialchars(): Invalid multibyte sequence in argument

 

Currently the forum is under /discuss  as the multisite is set up using /? instead of sub domains I can create a new site, deactivate most of the plugins in network admin and then reactivate them on a site basis, this way I can run simplepress with no other plugins active hopefully stopping any and all conflicts. It will also help us worrying in future when other plugins update if they will upset the forum.

MP Mr Papa
Mr Papa
Member

simple press supports https… assuming its properly initiated in wp (there are flags to be used in wp config)..

that recursion things sounds odd, but no reference that its sp related…

regard the multibyte, what version of php is your server running?  would like more info on that error but not sure how to get it…  older versions of php didnt support htmlspecialchars the same, but assuming you have the min wp version, it should be fine…