Support Forum
okay thanks... Andy is gone for day (quite late in UK) but back tomorrow...
Visit Cruise Talk Central and Mr Papa's World
I think before we do anything else we need to investigate the 500 server error. As you probably know, a 500 status basically means something went wrong on the server but we don't know what. And the only real way to try and find out is to look at the php error log. Can you do that? Or - if I now have ftp access and you know where it is located I can take a quick look at it. I don't want to poke around uninvited...
YELLOW
SWORDFISH
|
Hi,
The error log should be in the main ftp directory if you want to have a look at it directly. No problem with you logging in to view it.
The main event's I am seeing in the log are these:
[18-Nov-2012 21:52:43] PHP Fatal error: Call to undefined function sp_remove_from_waiting() in /problem-with-post-edit-buttonome2/lsfsquad/public_html/wp-content/plugins/simple-press/sp-api/sp-api-class-post.php on line 389
[18-Nov-2012 23:19:54] PHP Fatal error: Call to undefined function get_user_by() in /problem-with-post-edit-buttonome2/lsfsquad/public_html/wp-content/sp-resources/forum-plugins/post-by-email/library/sp-email-post-imap.php on line 61
[19-Nov-2012 00:12:22] PHP Notice: Trying to get property of non-object
The third notice I assume is to do with the subscriptions line 43 notice I have been seeing in the SP error log.
One/both of the other two is obviously where the problem lies??!!
those are mighty weird... do you get them every time it tries to deal with an email? can you clear it out and then process an email? maybe try it couple times...
but if so, those are fatal errors and would explain the issue... not why its an error though... one would expect that if not having the necessary files included was an issue, it would always... half my posts here are via post by email so not a general problem... weird... maybe we have other plugins running that already include the files needed...
well, Andy is gone for night... but if you want to try a couple things...
first error... in the plugin, open up file sp-email-post-process.php... find routine sp_emailpost_save() and around line 120 find:
include_once(SF_PLUGIN_DIR.'/forum/database/sp-db-newposts.php');
and after it add
include_once(SF_PLUGIN_DIR.'/forum/database/sp-db-management.php');
and see if that gets rid of that error...
second error... that one is a bit more sticky... its a wp routine it says it cannot find... and really not sure how the wp-includes file pluggable.php would not already be included by wp itself...
do you by chance have any other plugins that might be dealing with users? it is a pluggable function if another plugin overwrote that function, we might not have access to it when needed... for grins, can you search your wp themes directory and plugins directory for:
get_user_by
and see if another plugin has plugged/overwritten it?
Visit Cruise Talk Central and Mr Papa's World
OK,
The "DRP Wordpress User Management" plugin contains get_user_by. This was only installed to ban users and track their IPs. I've completely removed it now especially as I here you have something similar in the pipeline!
I've added
include_once(SF_PLUGIN_DIR.'/forum/database/sp-db-management.php');
to sp-email-post-process.php
The good news is everything is now working! I can now create topics from email addresses and also using Contact 7.
Thank you so much for all the help.
Replying had me confused, but I think I have sorted it now. Just to note my site title had square brackets in it (general WP settings). This made the reply email create a new topic starting where the bracket was instead of reply to the already existing topic, I assume this is something to do with the shortcodes you are using? I have removed the brackets from my site title and all is fine.
Just to confirm, after subscribing to a topic, I receive an email when there is a new post. The email comes from my admin account. To reply I have to change the email address to the correct mailbox for the forum (if it isn't the same as the address the subscription email comes from).
Thanks again
Gosh! Well - thanks for sticking with it and getting to the end.
But the problems are most curious. Well - the necessary 'include' is most curious and I can't explain why that is not being loaded. But we can put a separate include statement in there for it which will do no harm.
The case of get_user_by() function is a little disturbing however as while it is 'pluggable' any replacement function is still supposed to perform the original actions that were coded into it by WP.
Anyway - sounds basically positive. So that's what matters in the long run.
Thanks very much for your help in getting to the bottom of this
YELLOW
SWORDFISH
|
hopefully should release the plugin formally when 5.2 comes out in a couple weeks.. thanks for testing!
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)