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)
-   -   [BETA/DEV] MutliUser Detection (https://vborg.vbsupport.ru/showthread.php?t=109315)

PHPGeek2k3 03-03-2006 05:01 AM

The XML Product File should have added that table to the database.

Could you check via phpMyAdmin to see if the table is there?

As in the tests i have done it has worked for me.

Thanks
- James

Quote:

Originally Posted by luroca
I think a table in database is missing.
When I see Display Events in ACP:

Database error in vBulletin 3.5.3:

Invalid SQL:
SELECT * FROM mu_alert_core ORDER BY alertid DESC;

MySQL Error : Table 'mydatabase.mu_alert_core' doesn't exist
Error Number : 1146
Date : Friday, March 3rd 2006 @ 12:09:51 AM
Script : http://www.myboardcom/foro/admin_cp/...?do=showevents
Referrer : http://www.myboard.com/foro/admin_cp/index.php?do=nav
IP Address : 83.33.xxx.xxx
Username : Admin
Classname : vb_database


luroca 03-03-2006 07:56 AM

Sorry, there is not such table.
When uninstall:
Code:

Invalid SQL:
DROP TABLE mu_alert_core;

MySQL Error  : Unknown table 'mu_alert_core'
Error Number : 1051


luroca 03-03-2006 08:10 AM

I see your code to create the table, but the table is not create :surprised:
I donĀ“t use any table prefix.

luroca 03-03-2006 09:00 PM

Hello, some feedback:

Code:

$vbulletin->db->query_write("DROP TABLE " . TABLE_PREFIX . "mu_ignored_ips");
should be:
$vbulletin->db->query_write("DROP TABLE " . TABLE_PREFIX . "mu_alert_ignored_ips");

And
$vbulletin->db->query_write("ATLER TABLE " . TABLE_PREFIX . "user DROP `main_ip`");
should be:
$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "user DROP `main_ip`");

And
$vbulletin->db->query_wrtie("ALTER TABLE " . TABLE_PREFIX . "user DROP `num_alerts`");]]>
should be:
$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "user DROP `num_alerts`");]]>

Code:

) ENGINE=MyISAM DEFAULT CHARSET=latin1");
does not work for me, my server does not use MySam, it uses MySQL.
If I delete "ENGINE=MyISAM DEFAULT" in the product the tables are created but I get errors in Display Events:

Notice: Undefined index: charset in /home/mydominion/public_html/foro/includes/init.php on line 144

Notice: Undefined index: url in /home/mydominion/public_html/foro/includes/class_core.php on line 1991

Notice: Only variables should be assigned by reference in /home/mydominion/public_html/foro/includes/init.php on line 213

I hope this info helps.

Regards

luroca 03-03-2006 09:08 PM

By the way, am I the only one with problems? There are 16 installs yet.

PHPGeek2k3 03-03-2006 09:15 PM

the

Code:

" . TABLE_PREFIX . "_table_name
Should not effect you installation as it is taken care of by vbulletin.

go ahead and try changing

Code:

                <uninstallcode><![CDATA[
                        $vbulletin->db->query_write("DROP TABLE " . TABLE_PREFIX . "mu_alert_core");
                        $vbulletin->db->query_write("DROP TABLE " . TABLE_PREFIX . "mu_alert_events");
                        $vbulletin->db->query_write("DROP TABLE " . TABLE_PREFIX . "mu_ignored_ips");
                        $vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "user DROP `has_alerts`");
                        $vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "user DROP `alert_id`");
                        $vbulletin->db->query_write("ATLER TABLE " . TABLE_PREFIX . "user DROP `main_ip`");
                        $vbulletin->db->query_wrtie("ALTER TABLE " . TABLE_PREFIX . "user DROP `num_alerts`");]]>
                </uninstallcode>

to
Code:

                <uninstallcode><![CDATA[
                        $vbulletin->db->query_write("DROP TABLE mu_alert_core");
                        $vbulletin->db->query_write("DROP TABLE mu_alert_events");
                        $vbulletin->db->query_write("DROP TABLE mu_ignored_ips");
                        $vbulletin->db->query_write("ALTER TABLE user DROP `has_alerts`");
                        $vbulletin->db->query_write("ALTER TABLE user DROP `alert_id`");
                        $vbulletin->db->query_write("ATLER TABLE user DROP `main_ip`");
                        $vbulletin->db->query_wrtie("ALTER TABLE user DROP `num_alerts`");]]>
                </uninstallcode>

and try replacing
Code:

<installcode><![CDATA[$db->hide_errors();
$db->query_write("CREATE TABLE `" . TABLE_PREFIX . "mu_alert_core` (
  `alertid` int(11) NOT NULL auto_increment,
  `alert_userid` int(11) NOT NULL default '0',
  `alert_threadid` int(11) default NULL,
  PRIMARY KEY  (`alertid`),
  KEY `alert_userid` (`alert_userid`)
));

$db->query_write("CREATE TABLE `" . TABLE_PREFIX . "mu_alert_events` (
  `event_id` int(10) NOT NULL default '0',
  `alert_id` int(10) NOT NULL default '0',
  `event_dateline` int(10) default NULL,
  `event_userip` varchar(15) default NULL,
  PRIMARY KEY  (`event_id`),
  KEY `alert_id` (`alert_id`),
  KEY `event_userip` (`event_userip`)
));

$db->query_write("CREATE TABLE `" . TABLE_PREFIX . "mu_alert_ignored_ips` (
  `id` int(11) NOT NULL auto_increment,
  `ip` varchar(32) NOT NULL default '',
  PRIMARY KEY  (`id`)
));

$db->query_write("ALTER TABLE " .TABLE_PREFIX . "user ADD `has_alerts` INT(1) NOT NULL DEFAULT '0',
ADD `alert_id` INT(11) NOT NULL DEFAULT '0',
ADD `main_ip` VARCHAR(32) NOT NULL DEFAULT '0',
ADD `num_alerts` INT(10) NOT NULL DEFAULT '0'");
$db->show_errors();]]>
                </installcode>

with

Code:

<installcode><![CDATA[$db->hide_errors();
$db->query_write("CREATE TABLE `mu_alert_core` (
  `alertid` int(11) NOT NULL auto_increment,
  `alert_userid` int(11) NOT NULL default '0',
  `alert_threadid` int(11) default NULL,
  PRIMARY KEY  (`alertid`),
  KEY `alert_userid` (`alert_userid`)
));

$db->query_write("CREATE TABLE `mu_alert_events` (
  `event_id` int(10) NOT NULL default '0',
  `alert_id` int(10) NOT NULL default '0',
  `event_dateline` int(10) default NULL,
  `event_userip` varchar(15) default NULL,
  PRIMARY KEY  (`event_id`),
  KEY `alert_id` (`alert_id`),
  KEY `event_userip` (`event_userip`)
));

$db->query_write("CREATE TABLE `mu_alert_ignored_ips` (
  `id` int(11) NOT NULL auto_increment,
  `ip` varchar(32) NOT NULL default '',
  PRIMARY KEY  (`id`)
));

$db->query_write("ALTER TABLE user ADD `has_alerts` INT(1) NOT NULL DEFAULT '0',
ADD `alert_id` INT(11) NOT NULL DEFAULT '0',
ADD `main_ip` VARCHAR(32) NOT NULL DEFAULT '0',
ADD `num_alerts` INT(10) NOT NULL DEFAULT '0'");
$db->show_errors();]]>
                </installcode>

thanks
- james

luroca 03-03-2006 09:38 PM

Hello James, you are right, the TABLE_PREFIX is not the problem.

The tables are now created (without the ENGINE=MyISAM DEFAULT CHARSET=latin1 and the ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1) but the error is still in Display Events:
Code:

Notice: Undefined index: charset in /home/mydominion/public_html/foro/includes/init.php on line 144
Notice: Undefined index: url in /home/mydominion/public_html/foro/includes/class_core.php on line 1991
Notice: Only variables should be assigned by reference in /home/mydominion/public_html/foro/includes/init.php on line 213

All other hacks are disabled to test this one.

Thanks to you.

P.D. I see in database that created tables are of type "MySAM", yes, as the other tables of database.

PHPGeek2k3 03-04-2006 04:11 AM

just to let every one know i have updated the download to fix the problem with the tables not getting added to the database.

Thanks
- James

VBUsers 03-04-2006 04:44 AM

will this work with the ae detector installed? can i have both?

luroca 03-04-2006 02:12 PM

Upgrade to vb3.5.4, all original files without modifications, all products and plugins disabled, the same problems :(


All times are GMT. The time now is 02:13 PM.

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.01170 seconds
  • Memory Usage 1,760KB
  • 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
  • (9)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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