Raised This Month: $51 Target: $400
 12% 

Release Legacy SourceBans 1.4.11 (Updated 2014/02/17)


Post New Thread Closed Thread   
 
Thread Tools Display Modes
siosios
SourceMod Donor
Join Date: Jan 2008
Old 08-24-2008 , 16:02   Re: SourceBans (1.3.0) (UPDATE)
#861

IE 7
Attached Thumbnails
Click image for larger version

Name:	no-box.PNG
Views:	239
Size:	33.7 KB
ID:	30623  
__________________

Last edited by siosios; 08-24-2008 at 16:13.
siosios is offline
FredJed223
Senior Member
Join Date: Feb 2008
Old 08-24-2008 , 16:18   Re: SourceBans (1.3.0) (UPDATE)
#862

Quote:
Originally Posted by Olly View Post
Ok, for those of you who were having troubles with the updater. Or are having Undefined index notices...

Please re-download the package (http://www.sourcebans.net/filebrowser), and copy over:

/init.php
/updater/data/112.php

Then either re-run the updater again, or continue using
Ok seems to be working now.

What about a fix for servers with squares in the name?

Last edited by FredJed223; 08-24-2008 at 16:21.
FredJed223 is offline
marrr
Senior Member
Join Date: Jun 2008
Old 08-24-2008 , 16:31   Re: SourceBans (1.3.0) (UPDATE)
#863

i just redownloaded and tried again...

Quote:
Incorrect datetime value: '1219609732' for column 'lastvisit' at row 1

SQL Query type: EXECUTE
Script: '/sourcebans/updater/index.php'
SQL Query: UPDATE `sb_admins` SET `lastvisit` = UNIX_TIMESTAMP() WHERE `aid` = '1'
SQL Params:

$('msg-red-debug').setStyle('display', 'block');$('115f895').getChildren().injectIns ide('debug-text');$('115f895').getChildren().remove();Data truncated for column 'lastvisit' at row 1

SQL Query type: EXECUTE
Script: '/sourcebans/updater/index.php'
SQL Query: ALTER TABLE `sb_admins` CHANGE `lastvisit` `lastvisit` INT( 11 ) NULL DEFAULT NULL
SQL Params:

$('msg-red-debug').setStyle('display', 'block');$('e0cf1f4').getChildren().injectIns ide('debug-text');$('e0cf1f4').getChildren().remove();





Debug



Updater

Setup...
  • Checking current database version... 1
    Updating database to version: 112
Updating...
  • Running update: v112... Error executing: /updater/data/112.php. Stopping Update!
    Update Failed.

Last edited by marrr; 08-24-2008 at 16:50.
marrr is offline
Olly
Senior Member
Join Date: Mar 2007
Location: UK
Old 08-24-2008 , 16:42   Re: SourceBans (1.3.0) (UPDATE)
#864

Quote:
Originally Posted by marrr View Post
i just redownloaded and tried again...
Please confirm that your /updater/data/112.php file contains this line

$GLOBALS['db']->Execute("UPDATE ".DB_PREFIX."_admins SET lastvisit = '0000-00-00 00:00:00' WHERE aid = " . $adm['aid']);
__________________
Tumblr Me: http://raspberryteen.tumblr.com


// Yarrrr!
Olly is offline
Send a message via MSN to Olly
marrr
Senior Member
Join Date: Jun 2008
Old 08-24-2008 , 16:47   Re: SourceBans (1.3.0) (UPDATE)
#865

yes
Quote:
}

$admins = $GLOBALS['db']->GetAll("SELECT * FROM ".DB_PREFIX."_admins");
foreach ($admins as $adm)
{
$GLOBALS['db']->Execute("UPDATE ".DB_PREFIX."_admins SET lastvisit = '0000-00-00 00:00:00' WHERE aid = " . $adm['aid']);
}
marrr is offline
Olly
Senior Member
Join Date: Mar 2007
Location: UK
Old 08-24-2008 , 16:52   Re: SourceBans (1.3.0) (UPDATE)
#866

If you have access to phpMyAdmin or something, can you browse sb_log, and find the newest entry that contains 'sql error' as the title, and has 1219609732 somewhere in the message.

SELECT *
FROM `sb_log`
WHERE `title` LIKE '%sql%'
AND `message` LIKE '%1219609732%'
ORDER BY lid DESC

run that, and paste the contents of the 'message' field please.
__________________
Tumblr Me: http://raspberryteen.tumblr.com


// Yarrrr!
Olly is offline
Send a message via MSN to Olly
marrr
Senior Member
Join Date: Jun 2008
Old 08-24-2008 , 16:57   Re: SourceBans (1.3.0) (UPDATE)
#867

nah i dont have access to phpMyAdmin its hosted by my gsp.
marrr is offline
Olly
Senior Member
Join Date: Mar 2007
Location: UK
Old 08-24-2008 , 17:01   Re: SourceBans (1.3.0) (UPDATE)
#868

Quote:
Originally Posted by marrr View Post
nah i dont have access to phpMyAdmin its hosted by my gsp.
Ok, create a new file in the root of the sourcebans folder, and call it 'log.php'

and add this to it:

Code:
<?php
 define('IS_UPDATE', true);
 include "../init.php";
 $gaben = $GLOBALS['db']->Execute("SELECT ".DB_PREFIX."_log WHERE `title` LIKE '%sql%' AND `message` LIKE '%1219609732%' ORDER BY lid DESC LIMIT 0,1");
 echo $gaben->fields['message']; 
?>
Now navigate to this file though your browser, and paste what it says
__________________
Tumblr Me: http://raspberryteen.tumblr.com


// Yarrrr!
Olly is offline
Send a message via MSN to Olly
marrr
Senior Member
Join Date: Jun 2008
Old 08-24-2008 , 17:28   Re: SourceBans (1.3.0) (UPDATE)
#869

wont even let me load the log.php 500 internal server error.. I checked out the error log and it says

Quote:
[24-Aug-2008 16:26:59] PHP Warning: include(../init.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/marrr/public_html/sourcebans/log.php on line 3
[24-Aug-2008 16:26:59] PHP Warning: include(../init.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/marrr/public_html/sourcebans/log.php on line 3
[24-Aug-2008 16:26:59] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '../init.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/marrr/public_html/sourcebans/log.php on line 3
[24-Aug-2008 16:26:59] PHP Fatal error: Call to a member function Execute() on a non-object in /home/marrr/public_html/sourcebans/log.php on line 4
[24-Aug-2008 16:27:15] PHP Warning: include(../init.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/marrr/public_html/sourcebans/log.php on line 3
[24-Aug-2008 16:27:15] PHP Warning: include(../init.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/marrr/public_html/sourcebans/log.php on line 3
[24-Aug-2008 16:27:15] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '../init.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/marrr/public_html/sourcebans/log.php on line 3
[24-Aug-2008 16:27:15] PHP Fatal error: Call to a member function Execute() on a non-object in /home/marrr/public_html/sourcebans/log.php on line 4
marrr is offline
Olly
Senior Member
Join Date: Mar 2007
Location: UK
Old 08-24-2008 , 17:34   Re: SourceBans (1.3.0) (UPDATE)
#870

Quote:
Originally Posted by marrr View Post
wont even let me load the log.php 500 internal server error.. I checked out the error log and it says
oops, wow its not my day ><

Replace the contents of log.php with this:

Code:
<?php
 define('IS_UPDATE', true);
 include "init.php";
 $gaben = $GLOBALS['db']->Execute("SELECT ".DB_PREFIX."_log WHERE `title` LIKE '%sql%' AND `message` LIKE '%1219609732%' ORDER BY lid DESC LIMIT 0,1");
 echo $gaben->fields['message']; 
?>
__________________
Tumblr Me: http://raspberryteen.tumblr.com


// Yarrrr!
Olly is offline
Send a message via MSN to Olly
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode