-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Basically as it says,
cb2_plug_pms_uddeim not working and prevents Community Builder 2.1 control panel from working , at least when running PHP 8.4 .
The require_once() loading "pms.uddeim.php" crashes silently and no page displayed for any of CP 2.1 (my version is 2.10.0+build.2025.02.10.18.59.11.b0d14120b running on Joomla 3.10) control panel pages.
The reason is simple - at come point in CB 2.1 they changed the function signature of "cbPMSHandler::sendUserPMS()" to:
public function sendUserPMS( $toUserId, $fromUserId, $subject, $message, $systemGenerated = false, $fromName = null, $fromEmail = null ) { }
while in uddeim the signature is till like this:
function sendUserPMS($toid, $fromid, $subject, $message, $systemGenerated=false, $escaped=false)
- note last
$fromEmail = nullmissing.
So, the simple fix is to change the signature like this:
public function sendUserPMS( $toUserId, $fromUserId, $subject, $message, $systemGenerated = false, $fromName = null, $fromEmail = null, $escaped=false)
and on line 439 make the following change:
if ($this->sendUserPMS($recip, $sender, $newsub, $newmsg, $systemGenerated=false, null,$escaped=true)) {
(note null added before last parameter).
Not sure its a proper change as I pass null for email, but at least it makes Community Builder Control panel work properly and send messages.