vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBug Tracker Lite 3.5.1 (https://vborg.vbsupport.ru/showthread.php?t=96888)

theArchitect 09-28-2005 12:31 PM

I am getting this error when I install the product.

Code:

Database error in vBulletin 3.5.0 Release Candidate 3:

Invalid SQL:

                                INSERT INTO setting
                            (varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
                                VALUES
                                (
                                        'vbug_bugsperpage',
                                        'vbug',
                                        '15',
                                        '15',
                                        'number',
                                    '<select name=\\\"setting[$setting[varname]]\\\" tabindex=\\\"1\\\" class=\\\"bginput\\\">\r\n<option value=\\\"5\\\" \" . iif($setting[\'value\']==5,\'selected=\"selected\"\') . \">5</option>\r\n<option value=\\\"10\\\" \" . iif($setting[\'value\']==10,\'selected=\"selected\"\') . \">10</option>\r\n<option value=\\\"15\\\" \" . iif($setting[\'value\']==15,\'selected=\"selected\"\') . \">15</option>\r\n<option value=\\\"20\\\" \" . iif($setting[\'value\']==20,\'selected=\"selected\"\') . \">20</option>\r\n</select>',
                                        10,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_status',
                                        'vbug',
                                        '1',
                                        '1',
                                        'free',
                                    '<select name=\\\"setting[$setting[varname]]\\\" tabindex=\\\"1\\\" class=\\\"bginput\\\">\" . eval(\'$states = $vbulletin->db->query_read(\"SELECT vbug_statusid, title FROM \" . TABLE_PREFIX . \"vbug_status\");\r\nwhile ($state = $vbulletin->db->fetch_array($states))\r\n{\r\n    $options .= \"<option value=\\\"$state[vbug_statusid]\\\" \" . iif($setting[\\\'value\\\']==$state[\\\'vbug_statusid\\\'],\\\'selected=\"selected\"\\\') . \">$state[title]</option>\";\r\n}\r\nreturn $options;\') . \"</select>',
                                        20,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_bug_moderate',
                                        'vbug',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        30,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_versionname',
                                        'vbug',
                                        'vBug',
                                        'vBug',
                                        '',
                                        '',
                                        40,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_admin_legend',
                                        'vbug',
                                        '1',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        50,
                                        0,
                                        1,
                                        'vBug'
        );

MySQL Error  : Duplicate entry 'vbug_status' for key 1
Error Number : 1062

I intially thought that it was because I use to run the bug tracker under 3.0 so I went in and removed all of the vbug tables from the DB and then tried the install again and got the same error.

Gizmo5h1t3 09-28-2005 03:28 PM

Quote:

Originally Posted by theArchitect
I am getting this error when I install the product.

Code:

Database error in vBulletin 3.5.0 Release Candidate 3:

Invalid SQL:

                                INSERT INTO setting
                            (varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
                                VALUES
                                (
                                        'vbug_bugsperpage',
                                        'vbug',
                                        '15',
                                        '15',
                                        'number',
                                    '<select name=\\\"setting[$setting[varname]]\\\" tabindex=\\\"1\\\" class=\\\"bginput\\\">\r\n<option value=\\\"5\\\" \" . iif($setting[\'value\']==5,\'selected=\"selected\"\') . \">5</option>\r\n<option value=\\\"10\\\" \" . iif($setting[\'value\']==10,\'selected=\"selected\"\') . \">10</option>\r\n<option value=\\\"15\\\" \" . iif($setting[\'value\']==15,\'selected=\"selected\"\') . \">15</option>\r\n<option value=\\\"20\\\" \" . iif($setting[\'value\']==20,\'selected=\"selected\"\') . \">20</option>\r\n</select>',
                                        10,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_status',
                                        'vbug',
                                        '1',
                                        '1',
                                        'free',
                                    '<select name=\\\"setting[$setting[varname]]\\\" tabindex=\\\"1\\\" class=\\\"bginput\\\">\" . eval(\'$states = $vbulletin->db->query_read(\"SELECT vbug_statusid, title FROM \" . TABLE_PREFIX . \"vbug_status\");\r\nwhile ($state = $vbulletin->db->fetch_array($states))\r\n{\r\n    $options .= \"<option value=\\\"$state[vbug_statusid]\\\" \" . iif($setting[\\\'value\\\']==$state[\\\'vbug_statusid\\\'],\\\'selected=\"selected\"\\\') . \">$state[title]</option>\";\r\n}\r\nreturn $options;\') . \"</select>',
                                        20,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_bug_moderate',
                                        'vbug',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        30,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_versionname',
                                        'vbug',
                                        'vBug',
                                        'vBug',
                                        '',
                                        '',
                                        40,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_admin_legend',
                                        'vbug',
                                        '1',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        50,
                                        0,
                                        1,
                                        'vBug'
        );

MySQL Error  : Duplicate entry 'vbug_status' for key 1
Error Number : 1062

I intially thought that it was because I use to run the bug tracker under 3.0 so I went in and removed all of the vbug tables from the DB and then tried the install again and got the same error.

TRY totally uninstalling the hack....everything, and re install the newer version, allowing overwrites just in case...it works fine now m8.

twitch 09-28-2005 08:21 PM

Nice work

Guest190829 09-28-2005 10:53 PM

[high]* Guest190829 installs, nice job. :)[/high]

theArchitect 09-30-2005 01:06 AM

This is not working for me.

I have now upgraded to Gold and I removed every trace of vBug from my system, and deleted the MySQL tables.

When I install it I get the same error message

Code:

Database error in vBulletin 3.5.0 Release Candidate 3:

Invalid SQL:

                                INSERT INTO setting
                            (varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
                                VALUES
                                (
                                        'vbug_bugsperpage',
                                        'vbug',
                                        '15',
                                        '15',
                                        'number',
                                    '<select name=\\\"setting[$setting[varname]]\\\" tabindex=\\\"1\\\" class=\\\"bginput\\\">\r\n<option value=\\\"5\\\" \" . iif($setting[\'value\']==5,\'selected=\"selected\"\') . \">5</option>\r\n<option value=\\\"10\\\" \" . iif($setting[\'value\']==10,\'selected=\"selected\"\') . \">10</option>\r\n<option value=\\\"15\\\" \" . iif($setting[\'value\']==15,\'selected=\"selected\"\') . \">15</option>\r\n<option value=\\\"20\\\" \" . iif($setting[\'value\']==20,\'selected=\"selected\"\') . \">20</option>\r\n</select>',
                                        10,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_status',
                                        'vbug',
                                        '1',
                                        '1',
                                        'free',
                                    '<select name=\\\"setting[$setting[varname]]\\\" tabindex=\\\"1\\\" class=\\\"bginput\\\">\" . eval(\'$states = $vbulletin->db->query_read(\"SELECT vbug_statusid, title FROM \" . TABLE_PREFIX . \"vbug_status\");\r\nwhile ($state = $vbulletin->db->fetch_array($states))\r\n{\r\n    $options .= \"<option value=\\\"$state[vbug_statusid]\\\" \" . iif($setting[\\\'value\\\']==$state[\\\'vbug_statusid\\\'],\\\'selected=\"selected\"\\\') . \">$state[title]</option>\";\r\n}\r\nreturn $options;\') . \"</select>',
                                        20,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_bug_moderate',
                                        'vbug',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        30,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_versionname',
                                        'vbug',
                                        'vBug',
                                        'vBug',
                                        '',
                                        '',
                                        40,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_admin_legend',
                                        'vbug',
                                        '1',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        50,
                                        0,
                                        1,
                                        'vBug'
        );

MySQL Error  : Duplicate entry 'vbug_status' for key 1
Error Number : 1062

But now, when I try and go to the vbugs.php page instead of it being blank I get this error

Code:

Database error in vBulletin 3.5.0:

Invalid SQL:

        SELECT DISTINCT vbug_severity.title AS svtitle, vbug_type.title AS ttitle, vbug_version.title AS vtitle, vbug_status.title AS stitle, vbug.*, admin.username AS adminname, user.username, user.usertitle, lastreply.username AS lastreplyname
        FROM vbug AS vbug
        LEFT JOIN vbug_status AS vbug_status ON (vbug.vbug_statusid = vbug_status.vbug_statusid)
        LEFT JOIN user AS admin ON (vbug.adminid = admin.userid)
        LEFT JOIN user AS user ON (vbug.userid = user.userid)
        LEFT JOIN user AS lastreply ON (vbug.lastreplyuid = lastreply.userid)
        LEFT JOIN vbug_type AS vbug_type ON (vbug.vbug_typeid = vbug_type.vbug_typeid)
        LEFT JOIN vbug_version AS vbug_version ON (vbug.vbug_versionid = vbug_version.vbug_versionid)
        LEFT JOIN vbug_severity AS vbug_severity ON (vbug.vbug_severityid = vbug_severity.vbug_severityid)
       
        WHERE 1
        ORDER BY lastedit desc
        LIMIT 0,;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 13
Error Number : 1064

Any thoughts would be apprecaited as I would like to have this hack on my board.

jesus likes pie 09-30-2005 01:37 AM

Thanks.

jesus likes pie 09-30-2005 01:41 AM

Hm it says I dont have permission.....but when I go to adminpermissions, I cant see any part about bugs or anything. Plus, everything is set to yes.

Any ideas?

jesus likes pie 09-30-2005 01:52 AM

nevermind. I fixed it by deleting the product and adding it again.

Dark_Wizard 09-30-2005 03:09 PM

Quote:

Originally Posted by theArchitect
This is not working for me.

I have now upgraded to Gold and I removed every trace of vBug from my system, and deleted the MySQL tables.

When I install it I get the same error message

Code:

Database error in vBulletin 3.5.0 Release Candidate 3:

Invalid SQL:

                                INSERT INTO setting
                            (varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
                                VALUES
                                (
                                        'vbug_bugsperpage',
                                        'vbug',
                                        '15',
                                        '15',
                                        'number',
                                    '<select name=\\\"setting[$setting[varname]]\\\" tabindex=\\\"1\\\" class=\\\"bginput\\\">\r\n<option value=\\\"5\\\" \" . iif($setting[\'value\']==5,\'selected=\"selected\"\') . \">5</option>\r\n<option value=\\\"10\\\" \" . iif($setting[\'value\']==10,\'selected=\"selected\"\') . \">10</option>\r\n<option value=\\\"15\\\" \" . iif($setting[\'value\']==15,\'selected=\"selected\"\') . \">15</option>\r\n<option value=\\\"20\\\" \" . iif($setting[\'value\']==20,\'selected=\"selected\"\') . \">20</option>\r\n</select>',
                                        10,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_status',
                                        'vbug',
                                        '1',
                                        '1',
                                        'free',
                                    '<select name=\\\"setting[$setting[varname]]\\\" tabindex=\\\"1\\\" class=\\\"bginput\\\">\" . eval(\'$states = $vbulletin->db->query_read(\"SELECT vbug_statusid, title FROM \" . TABLE_PREFIX . \"vbug_status\");\r\nwhile ($state = $vbulletin->db->fetch_array($states))\r\n{\r\n    $options .= \"<option value=\\\"$state[vbug_statusid]\\\" \" . iif($setting[\\\'value\\\']==$state[\\\'vbug_statusid\\\'],\\\'selected=\"selected\"\\\') . \">$state[title]</option>\";\r\n}\r\nreturn $options;\') . \"</select>',
                                        20,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_bug_moderate',
                                        'vbug',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        30,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_versionname',
                                        'vbug',
                                        'vBug',
                                        'vBug',
                                        '',
                                        '',
                                        40,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_admin_legend',
                                        'vbug',
                                        '1',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        50,
                                        0,
                                        1,
                                        'vBug'
        );

MySQL Error  : Duplicate entry 'vbug_status' for key 1
Error Number : 1062

But now, when I try and go to the vbugs.php page instead of it being blank I get this error

Code:

Database error in vBulletin 3.5.0:

Invalid SQL:

        SELECT DISTINCT vbug_severity.title AS svtitle, vbug_type.title AS ttitle, vbug_version.title AS vtitle, vbug_status.title AS stitle, vbug.*, admin.username AS adminname, user.username, user.usertitle, lastreply.username AS lastreplyname
        FROM vbug AS vbug
        LEFT JOIN vbug_status AS vbug_status ON (vbug.vbug_statusid = vbug_status.vbug_statusid)
        LEFT JOIN user AS admin ON (vbug.adminid = admin.userid)
        LEFT JOIN user AS user ON (vbug.userid = user.userid)
        LEFT JOIN user AS lastreply ON (vbug.lastreplyuid = lastreply.userid)
        LEFT JOIN vbug_type AS vbug_type ON (vbug.vbug_typeid = vbug_type.vbug_typeid)
        LEFT JOIN vbug_version AS vbug_version ON (vbug.vbug_versionid = vbug_version.vbug_versionid)
        LEFT JOIN vbug_severity AS vbug_severity ON (vbug.vbug_severityid = vbug_severity.vbug_severityid)
       
        WHERE 1
        ORDER BY lastedit desc
        LIMIT 0,;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 13
Error Number : 1064

Any thoughts would be apprecaited as I would like to have this hack on my board.

This has been tested on 3 boards that were RC3 and upgraded with no issues. Also to uninstall this you should have gone through the Plugin System -> Manage Products....my suggestion is to install and then uninstall then install again and see what happens.

theArchitect 09-30-2005 11:27 PM

Quote:

Originally Posted by Dark_Wizard
This has been tested on 3 boards that were RC3 and upgraded with no issues. Also to uninstall this you should have gone through the Plugin System -> Manage Products....my suggestion is to install and then uninstall then install again and see what happens.

I am sorry, I wasn't doubting the competency of your coding and certainly not insinuating that there was something wrong with your product. But there is clearly a problem with the way in which my board is processing this hack (I should add that I have installed this onto a fresh test board with no problems at all. It just won't work on my live board).

I have used the product manager to uninstall this hack and then re-installed it using the overwrite option. but am still getting the same error:

Code:

Invalid SQL:

                                INSERT INTO setting
                            (varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
                                VALUES
                                (
                                        'vbug_bugsperpage',
                                        'vbug',
                                        '15',
                                        '15',
                                        'number',
                                    '<select name=\\\"setting[$setting[varname]]\\\" tabindex=\\\"1\\\" class=\\\"bginput\\\">\r\n<option value=\\\"5\\\" \" . iif($setting[\'value\']==5,\'selected=\"selected\"\') . \">5</option>\r\n<option value=\\\"10\\\" \" . iif($setting[\'value\']==10,\'selected=\"selected\"\') . \">10</option>\r\n<option value=\\\"15\\\" \" . iif($setting[\'value\']==15,\'selected=\"selected\"\') . \">15</option>\r\n<option value=\\\"20\\\" \" . iif($setting[\'value\']==20,\'selected=\"selected\"\') . \">20</option>\r\n</select>',
                                        10,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_status',
                                        'vbug',
                                        '1',
                                        '1',
                                        'free',
                                    '<select name=\\\"setting[$setting[varname]]\\\" tabindex=\\\"1\\\" class=\\\"bginput\\\">\" . eval(\'$states = $vbulletin->db->query_read(\"SELECT vbug_statusid, title FROM \" . TABLE_PREFIX . \"vbug_status\");\r\nwhile ($state = $vbulletin->db->fetch_array($states))\r\n{\r\n    $options .= \"<option value=\\\"$state[vbug_statusid]\\\" \" . iif($setting[\\\'value\\\']==$state[\\\'vbug_statusid\\\'],\\\'selected=\"selected\"\\\') . \">$state[title]</option>\";\r\n}\r\nreturn $options;\') . \"</select>',
                                        20,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_bug_moderate',
                                        'vbug',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        30,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_versionname',
                                        'vbug',
                                        'vBug',
                                        'vBug',
                                        '',
                                        '',
                                        40,
                                        0,
                                        1,
                                        'vBug'
        ),
        (
                                        'vbug_admin_legend',
                                        'vbug',
                                        '1',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        50,
                                        0,
                                        1,
                                        'vBug'
        );

MySQL Error  : Duplicate entry 'vbug_status' for key 1
Error Number : 1062

I was merely wondering if you might have had a solution to get around this problem so that I could use your excellent system.


All times are GMT. The time now is 10:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01593 seconds
  • Memory Usage 1,876KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete