Skip to main content
Topic: [RC1] approve post with attachment leads to fatal error (Read 1126 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[RC1] approve post with attachment leads to fatal error

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.

Re: [RC1] approve post with attachment leads to fatal error

Reply #1
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
Bugs creator.
Features destroyer.
Template killer.