ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: Jorin on July 11, 2014, 07:01:37 am

Title: [RC1] approve post with attachment leads to fatal error
Post by: Jorin on July 11, 2014, 07:01:37 am
Got this error message when approving a post with an attachment (2 pictures):

Code: [Select]
Fatal error: Call to undefined function pbe_prepare_text() in /www/htdocs/w00f21f1/elkarte/sources/subs/Notification.subs.php on line 586
More info: The post is written by another admin user.
Title: Re: [RC1] approve post with attachment leads to fatal error
Post by: emanuele on July 11, 2014, 07:32:18 am
hmm... a post written by an admin with unapproved attachments? ???

Anyway, to fix it, open Notifications.subs.php and find:
Code: [Select]
	// Maillist format?
$maillist = !empty($modSettings['maillist_enabled']) && !empty($modSettings['pbe_post_enabled']);
if ($maillist)
require_once(SUBSDIR . '/Emailpost.subs.php');

replace the entire block with just:
Code: [Select]
	require_once(SUBSDIR . '/Emailpost.subs.php');
:D
Title: Re: [RC1] approve post with attachment leads to fatal error
Post by: Jorin on July 11, 2014, 07:43:47 am
Quote from: emanuele – hmm... a post written by an admin with unapproved attachments? ???
Don't know how he made it. But it was his post which was unapproved. :o
Title: Re: [RC1] approve post with attachment leads to fatal error
Post by: emanuele on July 12, 2014, 11:48:46 am
https://github.com/emanuele45/Dialogo/commit/4db2e252d9f821bdf693961eeb5868da892636ee