Resource icon

[bd] Anonymous Posting 2.3.2

No permission to download
I keep getting the following two errors happen with this in the latest version of XF:

Code:
Error Info
ErrorException: Undefined index: forum - library/AnonymousPosting/Option.php:59
Generated By: Unknown Account, Today at 2:03 PM
Stack Trace
#0 /home/ptsdforu/public_html/c/library/AnonymousPosting/Option.php(59): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/ptsdforu/...', 59, Array)
#1 /home/ptsdforu/public_html/c/library/AnonymousPosting/ControllerPublic/Thread.php(7): AnonymousPosting_Option::prepareResponse(Object(AnonymousPosting_ControllerPublic_Thread), Object(XenForo_Input), Object(XenForo_ControllerResponse_View))
#2 /home/ptsdforu/public_html/c/library/XenForo/FrontController.php(347): AnonymousPosting_ControllerPublic_Thread->actionIndex()
#3 /home/ptsdforu/public_html/c/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /home/ptsdforu/public_html/c/index.php(13): XenForo_FrontController->run()
#5 {main}
Request State
array(3) {
  ["url"] => string(61) "https://www.myptsd.com/c/threads/best-post-feature-new.45030/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Code:
Error Info
ErrorException: Argument 1 passed to AnonymousPosting_Model_Forum::AnonymousPosting_canPostAnonymouslyInForum() must be of the type array, null given, called in /home/ptsdforu/public_html/c/library/AnonymousPosting/Option.php on line 62 and defined - library/AnonymousPosting/Model/Forum.php:7
Generated By: Unknown Account, Today at 2:03 PM
Stack Trace
#0 /home/ptsdforu/public_html/c/library/AnonymousPosting/Model/Forum.php(7): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/home/ptsdforu/...', 7, Array)
#1 /home/ptsdforu/public_html/c/library/AnonymousPosting/Option.php(62): AnonymousPosting_Model_Forum->AnonymousPosting_canPostAnonymouslyInForum(NULL)
#2 /home/ptsdforu/public_html/c/library/AnonymousPosting/ControllerPublic/Thread.php(7): AnonymousPosting_Option::prepareResponse(Object(AnonymousPosting_ControllerPublic_Thread), Object(XenForo_Input), Object(XenForo_ControllerResponse_View))
#3 /home/ptsdforu/public_html/c/library/XenForo/FrontController.php(347): AnonymousPosting_ControllerPublic_Thread->actionIndex()
#4 /home/ptsdforu/public_html/c/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /home/ptsdforu/public_html/c/index.php(13): XenForo_FrontController->run()
#6 {main}
Request State
array(3) {
  ["url"] => string(61) "https://www.myptsd.com/c/threads/best-post-feature-new.45030/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
You meant 1.3.4?
 
Yes, that is the current stable version. Sorry, I should have stated that.
I have just tested with v1.3.4 without issues so maybe yours is a conflict between [bd] Anonymous Posting and some other add-on. I have added some check to avoid this kind of problem in v2.2.0c, please download and report back. Sorry for the inconvenience.
 
I just looked in my ACP and there are more of those errors... I will update and see what happens with your new checking.

My current errors are in two's:

Code:
Server Error Log
Error Info
ErrorException: Undefined index: forum - library/AnonymousPosting/Option.php:59
Generated By: Unknown Account, Today at 5:04 AM
Stack Trace
#0 /home/ptsdforu/public_html/c/library/AnonymousPosting/Option.php(59): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/ptsdforu/...', 59, Array)
#1 /home/ptsdforu/public_html/c/library/AnonymousPosting/ControllerPublic/Thread.php(7): AnonymousPosting_Option::prepareResponse(Object(AnonymousPosting_ControllerPublic_Thread), Object(XenForo_Input), Object(XenForo_ControllerResponse_View))
#2 /home/ptsdforu/public_html/c/library/XenForo/FrontController.php(347): AnonymousPosting_ControllerPublic_Thread->actionIndex()
#3 /home/ptsdforu/public_html/c/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /home/ptsdforu/public_html/c/index.php(13): XenForo_FrontController->run()
#5 {main}
Request State
array(3) {
  ["url"] => string(64) "https://www.myptsd.com/c/threads/experiences-with-klonopin.7159/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Code:
Error Info
ErrorException: Argument 1 passed to AnonymousPosting_Model_Forum::AnonymousPosting_canPostAnonymouslyInForum() must be of the type array, null given, called in /home/ptsdforu/public_html/c/library/AnonymousPosting/Option.php on line 62 and defined - library/AnonymousPosting/Model/Forum.php:7
Generated By: Unknown Account, Today at 5:04 AM
Stack Trace
#0 /home/ptsdforu/public_html/c/library/AnonymousPosting/Model/Forum.php(7): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/home/ptsdforu/...', 7, Array)
#1 /home/ptsdforu/public_html/c/library/AnonymousPosting/Option.php(62): AnonymousPosting_Model_Forum->AnonymousPosting_canPostAnonymouslyInForum(NULL)
#2 /home/ptsdforu/public_html/c/library/AnonymousPosting/ControllerPublic/Thread.php(7): AnonymousPosting_Option::prepareResponse(Object(AnonymousPosting_ControllerPublic_Thread), Object(XenForo_Input), Object(XenForo_ControllerResponse_View))
#3 /home/ptsdforu/public_html/c/library/XenForo/FrontController.php(347): AnonymousPosting_ControllerPublic_Thread->actionIndex()
#4 /home/ptsdforu/public_html/c/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /home/ptsdforu/public_html/c/index.php(13): XenForo_FrontController->run()
#6 {main}
Request State
array(3) {
  ["url"] => string(64) "https://www.myptsd.com/c/threads/experiences-with-klonopin.7159/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Screen Shot 2014-08-08 at 12.27.35 pm.webp
 
@xfrocks , your add-on perfectly, but when i delete the add-on, the message remains anonymous.

In this addon, when i delete the add-on, the author reappears.

Would it be possible to ensure that when we remove the add-on, the author reappear?
 
@xfrocks , your add-on perfectly, but when i delete the add-on, the message remains anonymous.

In this addon, when i delete the add-on, the author reappears.

Would it be possible to ensure that when we remove the add-on, the author reappear?
The way this add-on does the job ensure third party add-ons will not accidentally show the real poster (which is a big issue). The downside as you found out is the message will stay anonymous after add-on removal. I can build a tool to remove anonymous posts I guess...
 
  • Like
Reactions: IPF
Back
Top Bottom