Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Problem with Image Upload by a Group

  1. #1

    Join Date
    Sep 2007
    Posts
    24

    Default Problem with Image Upload by a Group

    hello experts,

    i have a problem if i upload a image in a group.

    use dolphin 6.0.2

    you can see screenshot.
    this mail i get

    PHP Code:
    Query:

                                                
    INSERT INTO `GroupsGallerySET 
                                                    
    `groupID` = 1,
                                                    `
    ext`     = 'jpg',
                                                    `
    width`   = ,
                                                    `
    height`  = ,
                                                    `
    width_`  = ,
                                                    `
    height_` = ,
                                                    `
    by`      = 1,
                                                    `
    seed`    = 'b9d2025f1f'
                                                

    Mysql error:
    You have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near '
                                                    `height`  = ,
                                                    `width_`  = ,
                                                    `height_` = ,
        ' 
    at line 4

    Found error in file 
    /srv/www/web14/html/group_actions.php
    at line 135. Called db_res 
    function 
    with erroneous argument #0

    Debug backtrace:
    Array
    (
        [
    1] => Array
            (
                [
    file] => /srv/www/web14/html/group_actions.php
                
    [line] => 135
                
    [function] => db_res
                
    [args] => Array
                    (
                        [
    0] => 
                                                
    INSERT INTO `GroupsGallerySET 
                                                    
    `groupID` = 1,
                                                    `
    ext`     = 'jpg',
                                                    `
    width`   = ,
                                                    `
    height`  = ,
                                                    `
    width_`  = ,
                                                    `
    height_` = ,
                                                    `
    by`      = 1,
                                                    `
    seed`    = 'b9d2025f1f'
                                                
                    
    )

            )

    )


    Called script: /group_actions.php

    Request parameters
    :
    Array
    (
        [
    ID] => 1
        
    [a] => upload
        
    [do_submit] => Submit
        
    [sLanguage] => Deutsch
        
    [memberID] => 1
        
    [memberPassword] => ...


    --
    Auto-report system 

    i hope anybody can help me.

    sorry for my bad english!

    greetz
    Attached Images Attached Images
    Last edited by realmasterd; 09-24-2007 at 08:42 AM.

  2. #2

    Join Date
    Sep 2007
    Posts
    229

    Default

    shouldnt it look like this??

    <snip>

    $query = "

    INSERT INTO `GroupsGallery` SET

    `groupID` = $groupID,

    `ext` = '$Ext',

    `width` = $imgWidth,

    `height` = $imgHeight,

    `width_` = $imgWidth_,

    `height_` = $imgHeight_,

    `by` = $memberID,

    `seed` = '$seed'

    ";

    <snip>

  3. #3

    Join Date
    Sep 2007
    Posts
    24

    Default

    hello this is my group_actions.php

    line 123-135

    PHP Code:
                                            $query "
                                                INSERT INTO `GroupsGallery` SET
                                                    `groupID` = $groupID,
                                                    `ext`     = '$Ext',
                                                    `width`   = $imgWidth,
                                                    `height`  = $imgHeight,
                                                    `width_`  = $imgWidth_,
                                                    `height_` = $imgHeight_,
                                                    `by`      = $memberID,
                                                    `seed`    = '$seed'
                                                "
    ;

                                            
    db_res$query ); 

  4. #4
    mark
    Guest

    Post Group --problem in upload a image in a group

    Quick Fix :
    PHP Code:
                                 $query "
                                                INSERT INTO `GroupsGallery` SET
                                                    `groupID` = $groupID,
                                                    `ext`     = '$Ext',
                                                    `width`   = '$imgWidth',
                                                    `height`  = '$imgHeight',
                                                    `width_`  = '$imgWidth_',
                                                    `height_` = '$imgHeight_',
                                                    `by`      = '$memberID',
                                                    `seed`    = '$seed'
                                                "
    ;

                                            
    db_res$query ); 

  5. #5

    Join Date
    Sep 2007
    Posts
    229

    Default

    cool three guys have the exact same thing so hopefully yours is fixed now

  6. #6

    Join Date
    Sep 2007
    Posts
    24

    Default

    hello,

    i have edit as mark says.

    after this i can upload a image but i dont show see image and this info i get...

    PHP Code:
    Warningtempnam(): open_basedir restriction in effectFile(/tmpis not within the allowed path(s): (/srv/www/web14/:/srv/www/htdocs/phpMyAdmin/:/srv/www/htdocs/confixx/html/gesperrt/) in /srv/www/web14/html/group_actions.php on line 88

    Warning
    move_uploaded_file(): Unable to move '/srv/www/web14/phptmp/phphLc1SH' to '' in /srv/www/web14/html/group_actions.php on line 90

    Warning
    getimagesize(_): failed to open streamNo such file or directory in /srv/www/web14/html/group_actions.php on line 112

    Warning
    rename(,/srv/www/web14/html/groups/gallery/1_2_d6a617c4e0.jpg): No such file or directory in /srv/www/web14/html/group_actions.php on line 139

    Warning
    rename(_,/srv/www/web14/html/groups/gallery/1_2_d6a617c4e0_.jpg): No such file or directory in /srv/www/web14/html/group_actions.php on line 140

    Warning
    chmod(): No such file or directory in /srv/www/web14/html/group_actions.php on line 142

    Warning
    chmod(): No such file or directory in /srv/www/web14/html/group_actions.php on line 143 




    after i delete a image i get...

    PHP Code:
    Warningunlink(/srv/www/web14/html/groups/gallery/1_3_2ab50add24_.jpg): No such file or directory in /srv/www/web14/html/inc/groups.inc.php on line 721

    Warning
    unlink(/srv/www/web14/html/groups/gallery/1_3_2ab50add24.jpg): No such file or directory in /srv/www/web14/html/inc/groups.inc.php on line 722

    Warning
    Cannot modify header information headers already sent by (output started at /srv/www/web14/html/inc/groups.inc.php:721in /srv/www/web14/html/group_actions.php on line 285 
    Last edited by realmasterd; 10-02-2007 at 04:55 PM.

  7. #7
    mark
    Guest

    Post temporary folder path -- $site[tmp]

    This is where the error started :

    Warning: tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/srv/www/web14/:/srv/www/htdocs/phpMyAdmin/:/srv/www/htdocs/confixx/html/gesperrt/) in /srv/www/web14/html/group_actions.php on line 88
    To fix that first :

    IN file group_actions.php

    look for this :

    PHP Code:
    $tempImg tempnam'/tmp''Dol_' ); 

    Replace it with :

    PHP Code:
    $tempImg tempnam$site['tmp'], 'Dol_' ); 

  8. #8

    Join Date
    Sep 2007
    Posts
    229

    Default

    did that do it real?

  9. #9

    Join Date
    Sep 2007
    Posts
    24

    Default

    hello,

    i have change the code but i have the same problem...

  10. #10

    Join Date
    Sep 2007
    Posts
    229

    Default

    goodness what does your database look like? the errors say theres nowhere to put the pics.

    PHP Code:
    CREATE TABLE `Groups` (
      `
    IDint(10unsigned NOT NULL auto_increment,
      `
    categIDint(10unsigned NOT NULL default '0',
      `
    Namevarchar(64NOT NULL default '',
      `
    open_jointinyint(1NOT NULL default '0',
      `
    hidden_grouptinyint(1NOT NULL default '0',
      `
    members_post_imagestinyint(1NOT NULL default '0',
      `
    members_invitetinyint(1NOT NULL default '0',
      `
    Countryvarchar(2NOT NULL default '',
      `
    Cityvarchar(64NOT NULL default '',
      `
    Aboutvarchar(255NOT NULL default '',
      `
    Desctext NOT NULL,
      `
    thumbint(10unsigned NOT NULL default '0',
      `
    creatorIDint(10unsigned NOT NULL default '0',
      `
    createddate NOT NULL default '0000-00-00',
      `
    statusenum('Active','Suspended'NOT NULL default 'Active',
      
    PRIMARY KEY  (`ID`)
    ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=
    maybe table is corrupt reload this baby and checker out

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Image Upload Mod
    By bzzrd2 in forum Dolphin General Discussion v6.00 and above
    Replies: 0
    Last Post: 12-01-2007, 03:43 PM
  2. Replies: 5
    Last Post: 10-12-2007, 10:38 AM
  3. where to change group image upload maximum
    By claritydigital in forum General Troubleshooting
    Replies: 2
    Last Post: 10-11-2007, 07:34 PM
  4. Cant upload group photos
    By claritydigital in forum Bugs Dolphin 6.00
    Replies: 1
    Last Post: 10-11-2007, 04:04 AM
  5. Funny image upload problem
    By csallis in forum General Troubleshooting
    Replies: 1
    Last Post: 06-20-2007, 03:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •