Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Post By Email Beta Test
Avatar
Midget3k
Member
Free Members
sp_UserOfflineSmall Offline
Nov 18, 2012 - 6:16 pm

Thanks,

 

Sent Andy the FTP details.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 18, 2012 - 6:28 pm

okay thanks... Andy is gone for day (quite late in UK) but back tomorrow...

Avatar
Midget3k
Member
Free Members
sp_UserOfflineSmall Offline
Nov 19, 2012 - 3:53 am

No worries. (i'm in the UK too!)

It's not super urgent!

Thanks for all your help.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 19, 2012 - 4:16 am

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...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Midget3k
Member
Free Members
sp_UserOfflineSmall Offline
Nov 19, 2012 - 4:56 pm

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??!!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 19, 2012 - 7:31 pm

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?

Avatar
Midget3k
Member
Free Members
sp_UserOfflineSmall Offline
Nov 20, 2012 - 7:50 am

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.  laughlaughlaugh

 

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 20, 2012 - 11:00 am

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

andy-signature.png
YELLOW
SWORDFISH
Avatar
Midget3k
Member
Free Members
sp_UserOfflineSmall Offline
Nov 22, 2012 - 2:39 pm

no problems. I should be thanking you!!  laugh

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 23, 2012 - 11:22 pm

hopefully should release the plugin formally when 5.2 comes out in a couple weeks.. thanks for testing!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625