Post Areas

Post Areas 1.4.3

No permission to download
@mvk

When i set the "maximum number of forums" setting and if user has no posted yet, plugin gives server error on the last version.

Undefined index: postAreas
1 minute ago - library/Awedo/PostAreas/ControllerPublic/Member.php:51

Code:
ErrorException: Undefined index: postAreas - library/Awedo/PostAreas/ControllerPublic/Member.php:51
Generated By: Admin, 2 minutes ago
Stack Trace
......
#8 {main}
Request State
array(3) {
  ["url"] => string(53) "http://www.domain.com/forum/member/sukut-hayal.2562921/"
  ["_GET"] => array(1) {
    ["/forum/member/sukut-hayal_2562921/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 
@xfstyle Interesting suggestion. I think that would be useful. But only as an additional option. Maybe as a link below the table where you can switch between descending post counts and hierarchical order.

@maxicep Thx for bug report. Will be fixed shortly...
 
We have a few members who have posted, but their only posts ended up getting moved to a trash forum that is only accessible by admins and mods. When the max number of forums" is set at greater than zero, we get a pair of errors.

ErrorException: Undefined index: postAreas - library/Awedo/PostAreas/ControllerPublic/Member.php:51
Generated By: Unknown Account, 52 minutes ago

Code:
ErrorException: Undefined index: postAreas - library/Awedo/PostAreas/ControllerPublic/Member.php:51
Generated By: Unknown Account, 52 minutes ago
Stack Trace
#0 /var/www/vhosts/expeditersonline.com/httpdocs/forums/library/Awedo/PostAreas/ControllerPublic/Member.php(51): XenForo_Application::handlePhpError(8, 'Undefined index...', '/var/www/vhosts...', 51, Array)
#1 /var/www/vhosts/expeditersonline.com/httpdocs/forums/library/XenForo/FrontController.php(351): Awedo_PostAreas_ControllerPublic_Member->actionMember()
#2 /var/www/vhosts/expeditersonline.com/httpdocs/forums/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 /var/www/vhosts/expeditersonline.com/httpdocs/forums/index.php(13): XenForo_FrontController->run()
#4 {main}
Request State
array(3) {
  ["url"] => string(60) "http://www.expeditersonline.com/forums/members/iml123.14348/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

and then...

Code:
ErrorException: array_slice() expects parameter 1 to be array, null given - library/Awedo/PostAreas/ControllerPublic/Member.php:52
Generated By: Unknown Account, 54 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'array_slice() e...', '/var/www/vhosts...', 52, Array)
#1 /var/www/vhosts/expeditersonline.com/httpdocs/forums/library/Awedo/PostAreas/ControllerPublic/Member.php(52): array_slice(NULL, 0, '20')
#2 /var/www/vhosts/expeditersonline.com/httpdocs/forums/library/XenForo/FrontController.php(351): Awedo_PostAreas_ControllerPublic_Member->actionMember()
#3 /var/www/vhosts/expeditersonline.com/httpdocs/forums/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /var/www/vhosts/expeditersonline.com/httpdocs/forums/index.php(13): XenForo_FrontController->run()
#5 {main}
Request State
array(3) {
  ["url"] => string(60) "http://www.expeditersonline.com/forums/members/iml123.14348/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
 
i seem to have found a conflict between post areas and other plugins that create a tab in user's profiles. basically the content of post areas is showing up in tabs other than the post areas tab.

tab1.webp

in the above screenshot, the post areas tab is active, yet displaying the content from CTA featured threads.

tab2.webp

in this screenshot, the CTA featured threads tab is active, but displaying the content from the post areas plugin.

unfortunately this seems to be an solely an issue with post areas, and not a conflict with another plugin. i say this because what content gets swapped with another tab depends on what tabs are active on that user's profile. user's with no featured threads (from the cta featured threads plugin) don't have a 'best of stp' tab, and when that is missing the content from the post areas plugin is swapped out with a different tab (i.e. articles, or library, or whatever --- see screenshot above).
 
i seem to have found a conflict between post areas and other plugins that create a tab in user's profiles. basically the content of post areas is showing up in tabs other than the post areas tab.

View attachment 125633

in the above screenshot, the post areas tab is active, yet displaying the content from CTA featured threads.

View attachment 125634

in this screenshot, the CTA featured threads tab is active, but displaying the content from the post areas plugin.

unfortunately this seems to be an solely an issue with post areas, and not a conflict with another plugin. i say this because what content gets swapped with another tab depends on what tabs are active on that user's profile. user's with no featured threads (from the cta featured threads plugin) don't have a 'best of stp' tab, and when that is missing the content from the post areas plugin is swapped out with a different tab (i.e. articles, or library, or whatever --- see screenshot above).

@Thomas.B so... is there any chance of this being fixed? seems like a pretty major bug.
 
Firstly, sorry for the late response @EOTurtle and @electrogypsy. If I don't reply to a bug report within two weeks please feel free to remind me by tagging me or via PC..

ErrorException: Undefined index: postAreas - library/Awedo/PostAreas/ControllerPublic/Member.php:51
Will be fixed in the next release.

i seem to have found a conflict between post areas and other plugins that create a tab in user's profiles.
Is there any free add-on with which I can reproduce this bug?
 
Firstly, sorry for the late response @EOTurtle and @electrogypsy. If I don't reply to a bug report within two weeks please feel free to remind me by tagging me or via PC..


Will be fixed in the next release.


Is there any free add-on with which I can reproduce this bug?

i'm not running any add-ons that are free and also create a profile tab, so i really couldn't tell you. my only guess would be any free add-on that creates a tab in the user's profile.

i'd be happy to give you an admin login for my site though if that helps.
 
I've tested it now with the About Tab, Xen Resource Manager and Xen Product Manager which all add a tab to a user profile and there were no problems. So it doesn't seem to be a general problem. Maybe it has to do with your custom „XF environment“. I can have a look at your site if you like. An account for a test site would be optimal if you have one..
 
I've tested it now with the About Tab, Xen Resource Manager and Xen Product Manager which all add a tab to a user profile and there were no problems. So it doesn't seem to be a general problem. Maybe it has to do with your custom „XF environment“. I can have a look at your site if you like. An account for a test site would be optimal if you have one..

sure, i can do that. let me PM you the details.
 
This seems quite bad for my server load when trying to view members profile pages that have thousands of posts, server load goes up and the page takes a very long time to load, I assume while it's counting the 20 thousand posts from the member?
 
This seems quite bad for my server load when trying to view members profile pages that have thousands of posts, server load goes up and the page takes a very long time to load, I assume while it's counting the 20 thousand posts from the member?
With regards to this, is there a way I can limit this to be only usable by mods/admins? Thanks.
 
Although I'm not a DB performance expert, I can imagine that there could be a significant higher CPU load when viewing profiles of users with a very high post count. To solve this problem the add-on would need to use cached data so that the post and thread counts do not have to be calculated on every profile view in real-time. This is something that would be indeed a very good improvement.

However, this would not be a trivial change. And as this is free add-on it would have a very low priority. So it would probably take very long until this feature would be available. However, if people are willing to sponsor this new feature, I will start with the implementation as soon as there are enough funds. I've estimated the costs to 40 + 19% VAT = 47,60 Euro. If you would like to sponsor this feature please like this post. If there is enough interest I will post the details about the funding process..
 
@Thomas.B Still getting the same error as noted above in Post #46.
We have a private node that is only visible to Mods and Admins that essentially works as a "deleted posts" node, where inappropriate postings are moved into, rather than deleted outright. Usually, it is someone who has registered specifically to post some personal issue/complaint about an individual or a company. We call them "Drive By Posters" since they tend to register to air their grievance, make one or more postings, and then are usually never heard from again. When their postings are moved to the "deleted posts" node, they still show as having posted one or more messages, but all of those messages are in that one private node. So, when someone has posted some messages, but all of them are in the 'deleted posts" node, we get the above errors, if the "The maximum number of forums that are shown" is set to anything greater than zero.
 
Top Bottom