vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vbBux / vbPlaza (https://vborg.vbsupport.ru/forumdisplay.php?f=171)
-   -   Error (repost from thread that's no longer supported) (https://vborg.vbsupport.ru/showthread.php?t=109721)

ericgtr 03-07-2006 02:24 PM

Error (repost from thread that's no longer supported)
 
Quote:

Originally Posted by CMX_CMGSCCC

Stupid typo, its missing a comma, either add it yourself at

Code:

                        '" . $vbulletin->userinfo['userid'] . "',
Or wait for the next release.

This error is flooding my email box, will you please explain exactly where to search and replace? I see two instances of this and neither have a comma, is it supposed to be added to both? BTW, thanks for a great mod, the users on my site are really enjoying this. :)

CMX_CMGSCCC 03-07-2006 02:32 PM

Quote:

Originally Posted by ericgtr
This error is flooding my email box, will you please explain exactly where to search and replace? I see two instances of this and neither have a comma, is it supposed to be added to both? BTW, thanks for a great mod, the users on my site are really enjoying this. :)

Inside estore/action.changeusername.php

Find:

Code:

        // log this change into estorenamechanges
        $vbulletin->db->query_write("
                INSERT INTO " . TABLE_PREFIX . "estorenamechanges (changeid, dateline, changeuserid, oldusername, changedbyuserid)
                VALUES
                (
                        0,
                        " . TIMENOW . ",
                        '" . $vbulletin->userinfo['userid'] . "'
                        '" . $vbulletin->db->escape_string($vbulletin->userinfo['username']) . "',
                        '" . $vbulletin->userinfo['userid'] . "'
                )
        ");

Replace With:

Code:

        // log this change into estorenamechanges
        $vbulletin->db->query_write("
                INSERT INTO " . TABLE_PREFIX . "estorenamechanges (changeid, dateline, changeuserid, oldusername, changedbyuserid)
                VALUES
                (
                        0,
                        " . TIMENOW . ",
                        '" . $vbulletin->userinfo['userid'] . "',
                        '" . $vbulletin->db->escape_string($vbulletin->userinfo['username']) . "',
                        '" . $vbulletin->userinfo['userid'] . "'
                )
        ");

And its fixed.

-CMX

ericgtr 03-07-2006 02:39 PM

Quote:

Originally Posted by CMX_CMGSCCC
Inside estore/action.changeusername.php

Find:

Code:

        // log this change into estorenamechanges
        $vbulletin->db->query_write("
                INSERT INTO " . TABLE_PREFIX . "estorenamechanges (changeid, dateline, changeuserid, oldusername, changedbyuserid)
                VALUES
                (
                        0,
                        " . TIMENOW . ",
                        '" . $vbulletin->userinfo['userid'] . "'
                        '" . $vbulletin->db->escape_string($vbulletin->userinfo['username']) . "',
                        '" . $vbulletin->userinfo['userid'] . "'
                )
        ");

Replace With:

Code:

        // log this change into estorenamechanges
        $vbulletin->db->query_write("
                INSERT INTO " . TABLE_PREFIX . "estorenamechanges (changeid, dateline, changeuserid, oldusername, changedbyuserid)
                VALUES
                (
                        0,
                        " . TIMENOW . ",
                        '" . $vbulletin->userinfo['userid'] . "',
                        '" . $vbulletin->db->escape_string($vbulletin->userinfo['username']) . "',
                        '" . $vbulletin->userinfo['userid'] . "'
                )
        ");

And its fixed.

-CMX

Excellent, thanks for the help :)

CMX_CMGSCCC 03-07-2006 02:46 PM

Np, thanx for supporting the product!

-CMX

soulface 03-07-2006 07:35 PM

This Post

Quote:

Originally Posted by soulface
after upgrading frm 1.2.5 to 1.2.6 am getting following database error.

Quote:

Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT * FROM estoreribbons
WHERE touserid = '802'
ORDER BY ribbonid DESC;

MySQL Error : Table 'bforum_express.estoreribbons' doesn't exist
Error Number : 1146
Date : Saturday, March 4th 2006 @ 05:06:07 PM
Script : http://*************/member.php?action=getinfo&u=802
Referrer :
IP Address : 65.214.44.72
Username : Unregistered
Classname : vb_database
before upgrading to 1.2.6 i uninstalled the standalone Awareness Ribbons plugins then installed the 1.2.6, any solution ? i got almost 100 database error email, since then i turned off the estore...

Thanks...


All times are GMT. The time now is 05:27 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.01299 seconds
  • Memory Usage 1,735KB
  • 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
  • (5)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete