vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Advanced Warning System (AWS) (https://vborg.vbsupport.ru/showthread.php?t=71992)

Torqued 01-05-2005 12:53 PM

Quote:

Originally Posted by sv1cec
And what are you trying to do when you get that error message? Update the Warning Options? That's strange. I am not sure what to say. I assume you applied all changes from 3.0 to 3.0.1, to 3.0.2, to 3.0.3, right?

If this is a new installation, and you do not have any warnings you want to preserve, try running the uninstaller and then reinstall from scratch. It just does not make sense.

Yes. I applied all the changes for 3.0 -> 3.0.3. I was trying to update the Warning Options. I'll try running the uninstaller and reinstall again.

edited to add:

Uninstalled and reinstalled.. updating options seems to work fine now. :ermm:

Since I had made the file edits up to 3.0.3, I just applied the file edits for 3.0.3 -> 3.0.4 and am seeing a couple of issues when trying to warn from the Admin CP:

1: When entering a specific userID to warn, it just takes me to the user list.

2: When selecting Warn User from their profile page, it just takes me to a blank screen.

sv1cec 01-05-2005 01:05 PM

Quote:

Originally Posted by Torqued
Yes. I applied all the changes for 3.0 -> 3.0.3. I was trying to update the Warning Options. I'll try running the uninstaller and reinstall again.

edited to add:

Uninstalled and reinstalled.. seems to be working fine now. :ermm:

OK, because if it didn't, I would have to crash my mind. It wasn't logical, was it?!!

Rgds

Torqued 01-05-2005 01:07 PM

Quote:

Originally Posted by sv1cec
OK, because if it didn't, I would have to crash my mind. It wasn't logical, was it?!!

Rgds

Looks like we were cross-posting. :)

Uninstalled and reinstalled.. updating options seems to work fine now.

Since I had made the file edits up to 3.0.3, I just applied the file edits for 3.0.3 -> 3.0.4 and am seeing a couple of issues when trying to warn from the Admin CP:

1: When entering a specific userID to warn, it just takes me to the user list.

2: When selecting Warn User from their profile page, it just takes me to a blank screen.

sv1cec 01-05-2005 01:08 PM

Quote:

Originally Posted by JayJ
Code:

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/-/public_html/forum/includes/init.php on line 522



 
Unable to add cookies, header already sent.
File: /home/-/public_html/forum/includes/init.php
Line: 522


Any idea what would be causing that error when loading 'mod_warn.php' in the modCP?

JayJ,

When does this happen? As soon as you log in the modcp? Or when you click on the link in the left frame, where it is supposed to say "View Issued Warnings"?

Also, which AWS version are you running?

Rgds

JayJay 01-05-2005 01:19 PM

When one clicks the 'View Issued Warnings' link in the left-hand panel. I downloaded my version of AWS around 3-4 hours ago, therefore it is fairly recent.

It's weird since I updated to 3.0.4 today, and that particular file has not been touched or edited.

JayJay 01-05-2005 01:26 PM

If it helps any, it refers to this section of the init.php file:

Code:

// add default special templates
                if (!CACHE_DATASTORE_FILE OR !defined('CACHE_DATASTORE_FILE'))
                {
                        $specialtemplates = array_merge(array(
                                'options',
                                'cron',
                                'forumcache',
                                'usergroupcache',
                                'stylecache'
                        ), $specialtemplates);
                }


sv1cec 01-05-2005 01:28 PM

Quote:

Originally Posted by JayJ
When one clicks the 'View Issued Warnings' link in the left-hand panel. I downloaded my version of AWS around 3-4 hours ago, therefore it is fairly recent.

It's weird since I updated to 3.0.4 today, and that particular file has not been touched or edited.

Does the report opens? If yes, does it have the sort buttons? Maybe it's an old version?

Give me a couple of minutes, I have found a small problem in that file, but it shouldn't be the one which is causing your problem.

I'll post here, when the new version is uploaded.

Rgds

Vixion 01-05-2005 01:28 PM

I am getting errors...

Code:

UPDATE `vb3_warning_options` SET version=\'3.0\' WHERE oid=1

MySQL retourneerde:

You have an error in your SQL syntax near '\'3.0\' WHERE oid=1' at line 1

and

Code:

CREATE TABLE `vb3_ban_dates` (
  `banned_serno` int(15) NOT NULL auto_increment,
  `banned_user` int(15) NOT NULL default \'0\',
  `banned_ban` int(2) default \'0\',
  `banned_warning` int(15) NOT NULL,
  `banned_by` int(15) NOT NULL default \'0\',
  `banned_dateline` int(15) NOT NULL default \'0\',
  `banned_status` char(1),
  `banned_reason` mediumtext,
  PRIMARY KEY  (`banned_serno`)
) TYPE=MyISAM

MySQL retourneerde:

You have an error in your SQL syntax near '\'0\',
  `banned_ban` int(2) default \'0\',
  `banned_warning` int(15) NOT NUL' at line 3

What can I do to solve this problem?

sv1cec 01-05-2005 02:12 PM

Quote:

Originally Posted by Vixion
I am getting errors...

Code:

UPDATE `vb3_warning_options` SET version=\'3.0\' WHERE oid=1

MySQL retourneerde:

You have an error in your SQL syntax near '\'3.0\' WHERE oid=1' at line 1

and

Code:

CREATE TABLE `vb3_ban_dates` (
  `banned_serno` int(15) NOT NULL auto_increment,
  `banned_user` int(15) NOT NULL default \'0\',
  `banned_ban` int(2) default \'0\',
  `banned_warning` int(15) NOT NULL,
  `banned_by` int(15) NOT NULL default \'0\',
  `banned_dateline` int(15) NOT NULL default \'0\',
  `banned_status` char(1),
  `banned_reason` mediumtext,
  PRIMARY KEY  (`banned_serno`)
) TYPE=MyISAM

MySQL retourneerde:

You have an error in your SQL syntax near '\'0\',
  `banned_ban` int(2) default \'0\',
  `banned_warning` int(15) NOT NUL' at line 3

What can I do to solve this problem?

Why are you adding backslashes?

It would also help if I knew the error number that the database returned.

sv1cec 01-05-2005 02:14 PM

Quote:

Originally Posted by JayJ
If it helps any, it refers to this section of the init.php file:

Code:

// add default special templates
                if (!CACHE_DATASTORE_FILE OR !defined('CACHE_DATASTORE_FILE'))
                {
                        $specialtemplates = array_merge(array(
                                'options',
                                'cron',
                                'forumcache',
                                'usergroupcache',
                                'stylecache'
                        ), $specialtemplates);
                }


JayJ, I am not using these templates at all.

Please download version 3.0.5 I just uploaded and check out the new mod_warn.php file. It should work the way you are, without doing any other changes. Of course, do make the other changes after you verify that everything is OK with your problem.

Rgds


All times are GMT. The time now is 06:25 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.01931 seconds
  • Memory Usage 1,761KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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