Skip to content

cb2_plug_pms_uddeim not working and prevents CB 2.1 control panel from working #116

@Quark-Zimmerman

Description

@Quark-Zimmerman

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 = null missing.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions