| 
Welcome, Guest

[SOLVED] Error in kunena tab
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: [SOLVED] Error in kunena tab

[SOLVED] Error in kunena tab 2 years, 11 months ago #100561

  • carreon
  • carreon
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 6
  • Karma: -
I just updated one of my sites from CB 1.2 to 1.2.1 and Kunena 1.0.8 to 1.0.10 and at this time this is the only issue I detected.

When viewing the forum tab in my profile and I try to delete all subscriptions clicking the corresponding button, I got this message:

Catchable fatal error: Object of class stdClass could not be converted to string in /home/xxxxxxxx/public_html/components/com_comprofiler/plugin/user/plug_cbsimpleboardtab/cb.simpleboardtab.model.php on line 208

Post edited by: carreon, at: 2009/06/02 14:41

Post edited by: krileon, at: 2009/10/13 15:37
The topic has been locked.

Re:Error in kunena tab 2 years, 11 months ago #100735

  • krileon
  • krileon
  • ONLINE
  • Moderator
    Moderator
  • Posts: 24015
  • Karma: 695
Ensure the function _unsubAll appears as follows:
 
function _unsubAll( $user, $forum ) {
global $_CB_database;
 
$query = 'DELETE FROM ' . $_CB_database->NameQuote( '#__' . $forum->prefix . '_subscriptions' )
. "\n WHERE " . $_CB_database->NameQuote( 'userid' ) . " = " . (int) $user->id
;
$_CB_database->setQuery( $query );
if ( ! $_CB_database->query() ) {
trigger_error( 'CBForum-unsubAll SQL error' . $_CB_database->stderr( true ), E_USER_WARNING );
}
}
 
Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly
CB links: Documentation - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
If you are a Advanced, Professional, Developer, or CBSubs subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Advanced, Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM EST to 4:00 PM EST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
--
My personal site(s)/link(s): AllMySocials - Tutorials
The topic has been locked.

Re:Error in kunena tab 2 years, 11 months ago #100743

  • carreon
  • carreon
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 6
  • Karma: -
Thanks krileon, that solves my problem.
The topic has been locked.

Re:Error in kunena tab 2 years, 10 months ago #104585

  • rocknolds
  • rocknolds
  • OFFLINE
  • Senior Boarder
    Senior Boarder
  • Posts: 55
  • Karma: -3
hello krileon, could you pin point to me where and which file to edit?

thanks

=============
sorry found the solution. do a search again here. fixed by krileon. thanks

Post edited by: rocknolds, at: 2009/07/12 15:26
-= the moment you enjoy wasting is not a waste of time
www.asmsi-cebu.org =-
The topic has been locked.

Re:Error in kunena tab 2 years, 9 months ago #107045

I encountered the same error with the Unsubscribe All button and the Unsubscribe link for an individual thread. Assuming the fix for function _unsubAll would apply to function _unsubThread, I revised function _unsubThread to the following, and it worked. Thanks to krileon for the _unsubAll fix.

 
/**
* Change 1: _unsubThread( $user, $thread, $prefix ) becomes ( $user, $thread, $forum )
* Change 2: ( '#__' . $prefix . '_subscriptions' ) becomes ( '#__' . $forum->prefix . '_subscriptions' )
*/

 
function _unsubThread( $user, $thread, $forum ) {
global $_CB_database;
 
$query = 'DELETE FROM ' . $_CB_database->NameQuote( '#__' . $forum->prefix . '_subscriptions' )
. "\n WHERE " . $_CB_database->NameQuote( 'userid' ) . " = " . (int) $user->id
. "\n AND " . $_CB_database->NameQuote( 'thread' ) . " = " . (int) $thread
;
$_CB_database->setQuery( $query );
if ( ! $_CB_database->query() ) {
trigger_error( 'CBForum-unsubThread SQL error' . $_CB_database->stderr( true ), E_USER_WARNING );
}
}
 
--
dlh
The topic has been locked.

Re:Error in kunena tab 2 years, 7 months ago #113908

  • bobomazo
  • bobomazo
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 1
  • Karma: -
Thanks !!!!
The topic has been locked.
  • Page:
  • 1
  • 2
Time to create page: 1.02 seconds