1
akor__
cdbase 1.3 error "optikool virision"
  • 2007/11/12 14:28

  • akor__

  • Just popping in

  • Posts: 23

  • Since: 2007/10/7


hi there i download "cdbase v1.3" that optikool has modfied it, and submit it in his site www.optikool.com
when i submit a new artist i have that message
Quote:
Could not add category

i edit the sql line field "art_id" to int(8)
but it still to give me the error message
and that the php code at admin submit page

if ($op == "addcatgo") {
    
// agregar artist
    
$myts =& MyTextSanitizer::getInstance();
    
$newid $xoopsDB->genId($xoopsDB->prefix("cdbase_artists")."_id_art_seq");
    
$dateadd time();
    
$sql "INSERT INTO ".$xoopsDB->prefix("cdbase_artists").
            
" (id_art, artist, image, image_border, bio, date_of_birth, place_of_birth, ethnic, dateadd, genre, url, url_target, similar, gallery, gallery_desc, gallery_target, movies, movies_desc, movies_target, dropcap)
            VALUES ("
.$newid.", '".$artist."', '".$image."', '".$image_border."', '".$bio."', '".$date_of_birth."', '".$place_of_birth."', '".$ethnic."', ".$dateadd.", '".$genre."', '".$url."', '".$url_target."','".$similar."', '".$gallery."', '".$gallery_desc."', '".$gallery_target."', '".$movies."', '".$movies_desc."', '".$movies_target."', '".$dropcap."')";

    if (!
$xoopsDB->query($sql)) {
        
xoops_cp_header();
        echo 
"Could not add category";
        
xoops_cp_footer();
    } else {
        
//notification new artist
        
$extra_tags = array();
        
$extra_tags['ARTIST_URL'] = XOOPS_URL '/modules/' $xoopsModule->getVar('dirname') . '/index.php?id_art=' $id_art;
        
$extra_tags['ARTIST_NAME'] = $artist;
        
$notification_handler =& xoops_gethandler("notification");
        
$notification_handler->triggerEvent ("global"$id_art"new_artist"$extra_tags=array());
        
redirect_header("index.php?op=listcat",1,_XD_DBSUCCESS);
    }
    exit();
}


i ask optikool to see that eroor, and modfied it
thank you

2
optikool
Re: cdbase 1.3 error "optikool virision"
  • 2007/11/12 17:13

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


Hi akor,

Can you enable the debugging on you website and try to add the category again. Look at the sql error in red and paste the error message.

Regards
Optikool

3
akor__
Re: cdbase 1.3 error "optikool virision"
  • 2007/11/12 18:53

  • akor__

  • Just popping in

  • Posts: 23

  • Since: 2007/10/7


i didn't have sql error
only when i want to add new artist i have this message only
Quote:
Could not add category

4
optikool
Re: cdbase 1.3 error "optikool virision"
  • 2007/11/14 17:02

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


Hi Akor,

You need to enable debugging from your preferences and choose inline debugging. It will be at the bottom of the page.

5
akor__
Re: cdbase 1.3 error "optikool virision"
  • 2007/11/17 23:13

  • akor__

  • Just popping in

  • Posts: 23

  • Since: 2007/10/7


NoticeUndefined variablegallery_desc in file /modules/cdbase/admin/index.php line 412
Notice
Undefined variablemovies_desc in file /modules/cdbase/admin/index.php line 412

thank you at frist to tell me that XOOPS have is great option "debugging"
i see that the error in "image border" valu i delete it from sql inseret line

and it working as good

thank you again

6
akor__
Re: cdbase 1.3 error "optikool virision"
  • 2007/11/19 23:42

  • akor__

  • Just popping in

  • Posts: 23

  • Since: 2007/10/7


welcome back
now i have big proplem
the block of the module didn't show the artisit image or his bio

7
optikool
Re: cdbase 1.3 error "optikool virision"
  • 2007/11/22 9:34

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


Hmmm that might have happened when you removed the image_border. You should put that back and verify your sql database has that field. If not you will need to add it. The SQL file that comes with the module will tell you where it should go.

Login

Who's Online

58 user(s) are online (44 user(s) are browsing Support Forums)


Members: 0


Guests: 58


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits