• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Cant Delete Profile Comments

Michael

Active member
#1
When deleting a profile comment I get this error:

Server Error

Undefined property: XenForo_Model_InlineMod_ProfilePost::$enableLogging
  1. XenForo_Application::handlePhpError() in XenForo/Model/InlineMod/ProfilePost.php at line 115
  2. XenForo_Model_InlineMod_ProfilePost->deleteProfilePosts() in XenForo/ControllerPublic/InlineMod/Abstract.php at line 125
  3. XenForo_ControllerPublic_InlineMod_Abstract->executeInlineModAction() in XenForo/ControllerPublic/InlineMod/ProfilePost.php at line 40
  4. XenForo_ControllerPublic_InlineMod_ProfilePost->actionDelete() in XenForo/FrontController.php at line 310
  5. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  6. XenForo_FrontController->run() in /home/xxxxxx/public_html/index.php at line 13
It does seem to go through though and the same happens with undelete too on profile comments. Titles a little misleading there.
 
R

ragtek

Guest
#2
public $enableLogging = true; is missing

XenForo_Model_InlineMod_Thread
XenForo_Model_InlineMod_Post
have this, XenForo_Model_InlineMod_ProfilePost doesn't have this.

so quick fix:
add
PHP:
public $enableLogging = true;
after
PHP:
class XenForo_Model_InlineMod_ProfilePost extends XenForo_Model
{
 

Renada

Active member
#7
public $enableLogging = true; is missing

XenForo_Model_InlineMod_Thread
XenForo_Model_InlineMod_Post
have this, XenForo_Model_InlineMod_ProfilePost doesn't have this.

so quick fix:
add
PHP:
public $enableLogging = true;
after
PHP:
class XenForo_Model_InlineMod_ProfilePost extends XenForo_Model
{
Thanks, works a treat :)
 
#8
public $enableLogging = true; is missing

XenForo_Model_InlineMod_Thread
XenForo_Model_InlineMod_Post
have this, XenForo_Model_InlineMod_ProfilePost doesn't have this.

so quick fix:
add
PHP:
public $enableLogging = true;
after
PHP:
class XenForo_Model_InlineMod_ProfilePost extends XenForo_Model
{
wich file i need to edit?
 
R

ragtek

Guest
#9
XenForo_Model_InlineMod_ProfilePost

library}XenForo\Model\InlineMod\ProfilePost.php

OR
wait for the next beta;)
 
#11
public $enableLogging = true; is missing

XenForo_Model_InlineMod_Thread
XenForo_Model_InlineMod_Post
have this, XenForo_Model_InlineMod_ProfilePost doesn't have this.

so quick fix:
add
PHP:
public $enableLogging = true;
after
PHP:
class XenForo_Model_InlineMod_ProfilePost extends XenForo_Model
{
thanks