Support » Plugin: Cartpauj PM » Site gone into HTTP 500 error after modifying plugin PHP file

  • I have WordPress and BBPress installed, and I added the Cartpauj PM plugin to have a private messaging system on the site. The plugin installed successfully, but I found an unwanted reply form on the botton of the private messages page on the website. So I tried to delete this from one of the PM-CLASS.PHP file of the plugin by removing these lines:

    $threadOut .= “</table>
    <p>“.__(“Add Reply”, “cartpaujpm”).”:</p>
    <form name=’message’ action='”.$this->actionURL.”checkmessage’ method=’post’>”.
    <textarea name=’message_content’></textarea>
    <input type=’hidden’ name=’message_to’ value='”.$this->convertToUser($to).”‘ />
    <input type=’hidden’ name=’message_title’ value='”.$re.$message_title.”‘ />
    <input type=’hidden’ name=’message_from’ value='”.$user_ID.”‘ />
    <input type=’hidden’ name=’message_date’ value='”.current_time(‘mysql’, $gmt = 1).”‘ />
    <input type=’hidden’ name=’parent_id’ value='”.$pID.”‘ />
    <input type=’submit’ onClick=’this.disabled=true;this.form.submit();’ value='”.__(“Send Message”, “cartpaujpm”).”‘ />

    Now the whole site is gone, that is odd, because even the admin dashboard is unaccessible. I wonder how this is possible when the PM messages plugin only adds a separate page in my website, it doesn’t even add to the frontpage, but even the dashboard is gone.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author cartpauj


    Delete the plugin folder using FTP, then re-install the plugin.

    It worked.

    But how can I remove the reply form from the bottom of the Messages page? When I install the plugin, it created a page which has a box at the buttom, the title is: Leave a Reply. It seems to me it has nothing to do with the messages, I actually don’t know what that is for, I think it has something to do with WordPress. The message bos for private messages appears above it, it works, so this is a different thing. How can I disable that Leave a Reply box?

    Plugin Author cartpauj


    How did you edit the file? Usually 500 errors are caused by a permissions issue on the file. So chances are you’re editing it or uploading the file after it’s been edited as a user on the server who does not have apache rights. Probably doesn’t make any sense haha, but I’m guessing that’s what happened. There’s probably nothing wrong with your edits, but rather, the way your uploading or saving the file after you edit it.

    I went inside editor, and deleted the part you can see in the first post here, and saved the file. I wanted to delete that Leave a Reply box. So how can you remove it anyway?

    By the way the site is back now, I reinstalled the plugin, it works.

    Plugin Author cartpauj


    Delete this:

    $threadOut .= "</table>
    <p>".__("Add Reply", "cartpaujpm").":</p>
    <form name='message' action='".$this->actionURL."checkmessage' method='post'>".
    <textarea name='message_content'></textarea>
    <input type='hidden' name='message_to' value='".$this->convertToUser($to)."' />
    <input type='hidden' name='message_title' value='".$re.$message_title."' />
    <input type='hidden' name='message_from' value='".$user_ID."' />
    <input type='hidden' name='message_date' value='".current_time('mysql', $gmt = 1)."' />
    <input type='hidden' name='parent_id' value='".$pID."' />
    <input type='submit' onClick='this.disabled=true;this.form.submit();' value='".__("Send Message", "cartpaujpm")."' />

    Replace with this:

    $threadOut .= "</table>"

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Site gone into HTTP 500 error after modifying plugin PHP file’ is closed to new replies.