I see this message all over the place (e.g., /node & /admin/content/node/overview), and often repeatedly on the same page.

The latter can be fixed by simply changing:

drupal_set_message(t('There are no support clients configured/enabled.'), 'error');

to read:

drupal_set_message(t('There are no support clients configured/enabled.'), 'error', FALSE);

in _support_available_clients() on line 2532 of support.module.

The other issue is harder to nail down. From what I can tell, the culprit is in support_db_rewrite_sql(), which calls support_search_available_clients(), which in turn calls _support_available_clients(). IFAICT, this gets run on any node listing page, which I don't believe is the intention.

CommentFileSizeAuthor
#4 limit_error_display_1271038_4.patch1.15 KBergonlogic

Comments

jeremy’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Active » Patch (to be ported)

Here's a commit to fix the duplicated messages:
http://drupalcode.org/project/support.git/commit/7bac5f5

The latter is going to be significantly more kludgy to fix in 6.x-1.x, due to how hook_db_rewrite_sql() works. I'm going to go ahead and mark the above as needing to be ported to 7.x-1.x, we can pass this back to 6.x-1.x afterwards.

ergonlogic’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Patch (to be ported) » Active

Could we maybe just wrap that drupal_set_message() in if (arg(0) == 'admin')? This should eliminate the errors from the front-end of a site, at least. We could still log an error (or maybe warning?) to watchdog, though.

Let me know if you're okay with this approach, and I'll put a patch together.

jeremy’s picture

It's all going to be a kludge... can you confirm that this solves your problem? If yes, then please attach a patch.

ergonlogic’s picture

Status: Active » Needs review
StatusFileSize
new1.15 KB

I'm starting to see what you mean...

Anyway, this patch will limit those warning to only admin/support/*, support/* & node/add/support-ticket. It will however log a warning regardless of the path.

jeremy’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Needs review » Patch (to be ported)

Taking another look at this, it was possibly to cleanly fix this though it required a larger patch:
http://drupalcode.org/project/support.git/commit/0c32659

Needs to be ported to 7.x.

bdragon’s picture

@Jeremy:

As a followup to the #5 patch, something that I suspect snuck in was a fix regarding admin/support/plan_reports vs admin/support/plan_report. There was still a missing instance that needed to be updated for the plan report to work.

Since I ran into this while doing some 7.x stuff, I fixed it in D6.
http://drupalcode.org/project/support.git/commit/662343818e86f36f6bb8719...

bdragon’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.