Latest News: OOTP 13 Announced with Screenshots & Feature List! Pre-Order Now! - OOTP Baseball 12 Available! - iOOTP Baseball 2011 Available! - Title Bout Championship Boxing 2.5 released! - Inside the Park Baseball Patch 1.03 released, DEMO now available

Pre-Order OOTP 13, Save & Win! | OOTP 12 Off-Season Special, just $19.99!

Go Back   OOTP Developments Forums > Out of the Park Baseball 12 > OOTP Mods > OOTP Mods - Database Tools

OOTP Mods - Database Tools Do you need to take a dump? SQL gurus welcome

Reply
 
LinkBack Thread Tools Display Modes
Old 08-25-2009, 02:10 AM   #101 (permalink)
Minors (Double A)
 
Join Date: Jun 2009
Posts: 107
Thanks: 0
Thanked 0x in 0 posts
I'm getting these errors when I click the load SQL Files button on the admin page.


Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/.../ootpsqlou/db_update.php on line 152

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/.../ootpsqlou/db_update.php on line 193

Warning: Cannot modify header information - headers already sent by (output started at /home/.../ootpsqlou/db_update.php:152) in /home/.../ootpsqlou/db_update.php on line 200

It tells me this:

LOAD STATUS: No files loaded!
You may have one of the following problems:
1. The path to the SQL files is incorrect.
2. The SQL files are not uploaded to the server.
3. The SQL files are older than the last time you loaded them. Review/delete sqlloadlog.txt in your admin directory.

None of the 3 are the problem. The path to SQL is fine, as far as I can tell. The program is able to write to it and see it. The SQL files are uploaded to the proper directory. The SQL files are not old - I've only uploaded one batch and haven't been able to load it.

Last edited by BobDylanRH; 08-25-2009 at 04:47 AM.
BobDylanRH is offline   Reply With Quote
Old 08-26-2009, 12:14 PM   #102 (permalink)
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 2,724
Thanks: 13
Thanked 255x in 119 posts
Quote:
Originally Posted by Nyro44 View Post
Notice: Undefined index: league_id in C:\wamp\www\ootpsqlou\
Notice: Undefined variable: lgid in

Any idea?

Thx a lot
Are you running this on your local PC, and if so, are you running a web server with PHP installed?
__________________
StatsLab11 - PHP/MySQL based utilities for Online Leagues
Other Mods:
19th Century: Schedules, FaceGen
BBCards: 1887 Allen & Ginter, 1934 Goudey, 1988 Score, 1996 fhomess, 2005 fhomess
FaceGen: 1960-Pres MLB, 32 Colleges, Backgrounds

PEBA - Connecticut Nutmeggers
fhomess is offline   Reply With Quote
Old 08-26-2009, 12:16 PM   #103 (permalink)
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 2,724
Thanks: 13
Thanked 255x in 119 posts
Quote:
Originally Posted by BobDylanRH View Post
I'm getting these errors when I click the load SQL Files button on the admin page.


Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/.../ootpsqlou/db_update.php on line 152

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/.../ootpsqlou/db_update.php on line 193

Warning: Cannot modify header information - headers already sent by (output started at /home/.../ootpsqlou/db_update.php:152) in /home/.../ootpsqlou/db_update.php on line 200

It tells me this:

LOAD STATUS: No files loaded!
You may have one of the following problems:
1. The path to the SQL files is incorrect.
2. The SQL files are not uploaded to the server.
3. The SQL files are older than the last time you loaded them. Review/delete sqlloadlog.txt in your admin directory.

None of the 3 are the problem. The path to SQL is fine, as far as I can tell. The program is able to write to it and see it. The SQL files are uploaded to the proper directory. The SQL files are not old - I've only uploaded one batch and haven't been able to load it.
PM on its way.
__________________
StatsLab11 - PHP/MySQL based utilities for Online Leagues
Other Mods:
19th Century: Schedules, FaceGen
BBCards: 1887 Allen & Ginter, 1934 Goudey, 1988 Score, 1996 fhomess, 2005 fhomess
FaceGen: 1960-Pres MLB, 32 Colleges, Backgrounds

PEBA - Connecticut Nutmeggers
fhomess is offline   Reply With Quote
Old 08-26-2009, 12:45 PM   #104 (permalink)
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 2,724
Thanks: 13
Thanked 255x in 119 posts
Quote:
Originally Posted by beorn View Post
1) The numbers are far enough off that I am almost suspecting the columns are mislabeled in the utility. (In game, movement is 2nd; in the utility control is 2nd. Is that just a labeling error?)
Yes. It's fixed in the forthcoming patch. It immediately becomes apparent if you choose to sort pitchers by control, then movement.

Quote:
Originally Posted by beorn View Post
2) Assuming for a moment that that is the case, this still makes discrepancies in movement odd. Travis Carroll has only a 45% gb%. So if the data dump is giving you his movement, setting aside a bonus for his gb%, this makes no sense. No way that 45% gb% is a bonus of 2 to movement.
You'd be surprised.
__________________
StatsLab11 - PHP/MySQL based utilities for Online Leagues
Other Mods:
19th Century: Schedules, FaceGen
BBCards: 1887 Allen & Ginter, 1934 Goudey, 1988 Score, 1996 fhomess, 2005 fhomess
FaceGen: 1960-Pres MLB, 32 Colleges, Backgrounds

PEBA - Connecticut Nutmeggers

Last edited by fhomess; 08-26-2009 at 01:26 PM.
fhomess is offline   Reply With Quote
Old 08-27-2009, 08:13 PM   #105 (permalink)
Minors (Double A)
 
Join Date: Jun 2009
Posts: 107
Thanks: 0
Thanked 0x in 0 posts
Alright, I think I managed to fix the fetch errors. They went away when I fixed the league ID.

Now I have an error at the top of the page in a red block that reads:
ERROR: OOTP SQL Utilities not configured properly (no lgSettings.txt)

EDIT: I got rid of the error by manually creating a lgSettings.txt file and dumping it into the settings folder. I don't believe, however, that it's being written to because the admin panel doesn't save the settings I enter in. I check all the boxes, hit save, and when the page refreshes, the links aren't in the nav bar. The directory has any permissions it would need. Heck, I don't even know if the lgSettings.txt file has anything to do with that, but that's the issue I face now. If there is a simple solution, I'll be grateful. Otherwise I'm just going to keep fooling with it until I figure out what the problem is.

Last edited by BobDylanRH; 08-27-2009 at 08:23 PM.
BobDylanRH is offline   Reply With Quote
Old 08-27-2009, 08:57 PM   #106 (permalink)
Minors (Double A)
 
Join Date: Jun 2009
Posts: 107
Thanks: 0
Thanked 0x in 0 posts
fhomess,

Your inbox is full. Can't respond to PM.
BobDylanRH is offline   Reply With Quote
Old 08-27-2009, 11:02 PM   #107 (permalink)
Minors (Double A)
 
Join Date: Jun 2009
Posts: 107
Thanks: 0
Thanked 0x in 0 posts
Back.

I think I've got just about everything fixed. There are only small issues now.

The two main issues:

The export tracker error -- ERROR: No League File Found at: "/home/.../leaguefile/MLB.lg.tar.gz"
/home/.../csv/ootpsqlSettings.txt

The league file is there, but does not have .lg on its extension. Do I need to extract the archive in the server?

Second...
The manager page doesn't read from the profiles.

And then some smaller issues with formatting...

The admin pages have no header. The text on these pages also isn't correct, and is displaying in Times New Roman.

The manager page also has formatting issues similar to the admin pages. I imagine this goes hand in hand with it not reading from the profiles. Also, the actual profile pages draw the wrong images on the top left hand side.
BobDylanRH is offline   Reply With Quote
Old 08-27-2009, 11:20 PM   #108 (permalink)
Minors (Double A)
 
vesuvius's Avatar
 
Join Date: Feb 2002
Location: Ashburn, VA
Posts: 126
Thanks: 2
Thanked 2x in 1 post
Hey Fhom - your PM inbox is full so can't respond to your answer to my earlier setup question.

I had schedule the regular historical import ammy draft for 3/1, and then on 3/2 done a release all and reschedule a fantasy draft.

Looks like a bug with the file keeping the original 3/1 date is making my sql file have the 3/1 date still.

Is it possible to manually edit that SQL file to change to date and get it working?

Thanks!
Eric
__________________
Join the CBL Rewind, a great historical OOTP 12 league!
http://thecblonline.com/cblr/cblr.php
Commish : wedgeeric@aol.com

Join the Computer Baseball League, one of the longest running OOTP leagues in history (OOTP5)!
http://www.thecblonline.com/cbl.php
vesuvius is offline   Reply With Quote
Old 08-28-2009, 02:18 PM   #109 (permalink)
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 2,724
Thanks: 13
Thanked 255x in 119 posts
Quote:
Originally Posted by BobDylanRH View Post
Back.

I think I've got just about everything fixed. There are only small issues now.

The two main issues:

The export tracker error -- ERROR: No League File Found at: "/home/.../leaguefile/MLB.lg.tar.gz"
/home/.../csv/ootpsqlSettings.txt

The league file is there, but does not have .lg on its extension. Do I need to extract the archive in the server?
In the admin screen, specify the filename in the league name field under export tracker settings (e.g. MLB.tar.gz) and it'll use the exact file name given. It appends .lg.tar.gz to the league name if no file extensions are indicated.

Quote:
Originally Posted by BobDylanRH View Post
Second...
The manager page doesn't read from the profiles.

And then some smaller issues with formatting...

The admin pages have no header. The text on these pages also isn't correct, and is displaying in Times New Roman.

The manager page also has formatting issues similar to the admin pages. I imagine this goes hand in hand with it not reading from the profiles. Also, the actual profile pages draw the wrong images on the top left hand side.
It looks like you've worked these out.
__________________
StatsLab11 - PHP/MySQL based utilities for Online Leagues
Other Mods:
19th Century: Schedules, FaceGen
BBCards: 1887 Allen & Ginter, 1934 Goudey, 1988 Score, 1996 fhomess, 2005 fhomess
FaceGen: 1960-Pres MLB, 32 Colleges, Backgrounds

PEBA - Connecticut Nutmeggers
fhomess is offline   Reply With Quote
Old 08-28-2009, 02:20 PM   #110 (permalink)
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 2,724
Thanks: 13
Thanked 255x in 119 posts
Quote:
Originally Posted by vesuvius View Post
Is it possible to manually edit that SQL file to change to date and get it working?
Yeah, you can edit it. PM sent with instructions on how to do this. As long as the players are flagged as draft eligible, they'll show up in the draft warroom. I've never tested the util with inaugural drafts, though, so I'm not 100% sure if the database is set that way.
__________________
StatsLab11 - PHP/MySQL based utilities for Online Leagues
Other Mods:
19th Century: Schedules, FaceGen
BBCards: 1887 Allen & Ginter, 1934 Goudey, 1988 Score, 1996 fhomess, 2005 fhomess
FaceGen: 1960-Pres MLB, 32 Colleges, Backgrounds

PEBA - Connecticut Nutmeggers
fhomess is offline   Reply With Quote
Old 08-28-2009, 03:21 PM   #111 (permalink)
Minors (Double A)
 
Join Date: Jun 2009
Posts: 107
Thanks: 0
Thanked 0x in 0 posts
Quote:
Originally Posted by fhomess View Post
In the admin screen, specify the filename in the league name field under export tracker settings (e.g. MLB.tar.gz) and it'll use the exact file name given. It appends .lg.tar.gz to the league name if no file extensions are indicated.


It looks like you've worked these out.
Thanks on part 1.

On the formatting issues, unfortunately I haven't worked them out. I sent you a PM with the login information to take a closer look.
BobDylanRH is offline   Reply With Quote
Old 08-28-2009, 06:42 PM   #112 (permalink)
Hall Of Famer
 
PotatoPeeler's Avatar
 
Join Date: Aug 2002
Location: Rapid City, SD
Posts: 2,929
Thanks: 7
Thanked 17x in 15 posts
Quote:
Originally Posted by udbacker58 View Post
Just messing around with the Awards utility for the v10 utilities, when I sort by a category and then try to select/add to list, it doesn't work. I dont' get an error, it just doesn't add the player(s) to the list.
I'm seeing this too. Has there been an update that fixes this?

Thanks.
__________________
培傑西

I have never taken a lesson on how to talk on TV in my life.
- Tim McCarver

If you need a hand, sometimes the best place to look is at the end of your own arm.
PotatoPeeler is offline   Reply With Quote
Old 08-28-2009, 07:07 PM   #113 (permalink)
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 2,724
Thanks: 13
Thanked 255x in 119 posts
Quote:
Originally Posted by PotatoPeeler View Post
I'm seeing this too. Has there been an update that fixes this?

Thanks.
No. The sorting functionality is actually provided by a freely available third party Javascript. The developer of this Javascript has been informed of this problem on a couple of occasions, but has not been able to reproduce it or fix it.

I'm aware of a couple of workarounds:
1. Use a different browser. I've heard it produces this problem in Firefox and Safari, but I've used it just fine in the latest version of both browsers. I've never heard of this problem happening in IE.
2. Use the sort to determine who you want to vote for, then refresh the page and select the players you want without sorting.
__________________
StatsLab11 - PHP/MySQL based utilities for Online Leagues
Other Mods:
19th Century: Schedules, FaceGen
BBCards: 1887 Allen & Ginter, 1934 Goudey, 1988 Score, 1996 fhomess, 2005 fhomess
FaceGen: 1960-Pres MLB, 32 Colleges, Backgrounds

PEBA - Connecticut Nutmeggers
fhomess is offline   Reply With Quote
Old 08-28-2009, 07:48 PM   #114 (permalink)
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 2,724
Thanks: 13
Thanked 255x in 119 posts
Patch #1 has been released
__________________
StatsLab11 - PHP/MySQL based utilities for Online Leagues
Other Mods:
19th Century: Schedules, FaceGen
BBCards: 1887 Allen & Ginter, 1934 Goudey, 1988 Score, 1996 fhomess, 2005 fhomess
FaceGen: 1960-Pres MLB, 32 Colleges, Backgrounds

PEBA - Connecticut Nutmeggers
fhomess is offline   Reply With Quote
Thank you for this post:
snnort (08-31-2009)
Old 08-28-2009, 08:16 PM   #115 (permalink)
Hall Of Famer
 
PotatoPeeler's Avatar
 
Join Date: Aug 2002
Location: Rapid City, SD
Posts: 2,929
Thanks: 7
Thanked 17x in 15 posts
Quote:
Originally Posted by fhomess View Post
No. The sorting functionality is actually provided by a freely available third party Javascript. The developer of this Javascript has been informed of this problem on a couple of occasions, but has not been able to reproduce it or fix it.

I'm aware of a couple of workarounds:
1. Use a different browser. I've heard it produces this problem in Firefox and Safari, but I've used it just fine in the latest version of both browsers. I've never heard of this problem happening in IE.
2. Use the sort to determine who you want to vote for, then refresh the page and select the players you want without sorting.
Yeah, I've tried it on the most recent version of Safari. It worked sometimes and then didn't work other times. Same thing goes for Firefox. Strange. Thanks anyway!
__________________
培傑西

I have never taken a lesson on how to talk on TV in my life.
- Tim McCarver

If you need a hand, sometimes the best place to look is at the end of your own arm.
PotatoPeeler is offline   Reply With Quote
Old 08-31-2009, 01:35 PM   #116 (permalink)
Minors (Triple A)
 
snnort's Avatar
 
Join Date: Apr 2004
Posts: 272
Thanks: 16
Thanked 10x in 10 posts
Quote:
Originally Posted by fhomess View Post
Any thoughts on adding HOF voting? It's not that it's totally necessary, but since this has become the god of all OOTP Utilities and has nearly everything you could want to supplement the reporting, voting, drafting aspect of any online league... just thought it wouldn't hurt to ask.
snnort is offline   Reply With Quote
Old 08-31-2009, 02:15 PM   #117 (permalink)
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 2,724
Thanks: 13
Thanked 255x in 119 posts
Quote:
Originally Posted by snnort View Post
Any thoughts on adding HOF voting? It's not that it's totally necessary, but since this has become the god of all OOTP Utilities and has nearly everything you could want to supplement the reporting, voting, drafting aspect of any online league... just thought it wouldn't hurt to ask.
I've thought about it. I have a partial design for it that I haven't gotten around to finishing yet. I've just not been happy with some of the considerations to this point, so I need to think on it some more.
__________________
StatsLab11 - PHP/MySQL based utilities for Online Leagues
Other Mods:
19th Century: Schedules, FaceGen
BBCards: 1887 Allen & Ginter, 1934 Goudey, 1988 Score, 1996 fhomess, 2005 fhomess
FaceGen: 1960-Pres MLB, 32 Colleges, Backgrounds

PEBA - Connecticut Nutmeggers
fhomess is offline   Reply With Quote
Old 08-31-2009, 02:15 PM   #118 (permalink)
Stu
All Star Starter
 
Stu's Avatar
 
Join Date: Dec 2005
Posts: 1,249
Thanks: 17
Thanked 16x in 8 posts
I get this error every time I try to install:

ERROR: OOTP SQL Utilities not configured properly (no config.txt)

The instructions aren't very specific about what permissions the utility needs to the sqldump folder. I tried 777 temporarily and it still can't seem to create the config.txt file. It creates the dbopen.php and ootpsqlsettings.txt successfully.

Any ideas?
__________________
Brewers League Baseball
Stu is offline   Reply With Quote
Old 08-31-2009, 02:20 PM   #119 (permalink)
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 2,724
Thanks: 13
Thanked 255x in 119 posts
Quote:
Originally Posted by Stu View Post
I get this error every time I try to install:

ERROR: OOTP SQL Utilities not configured properly (no config.txt)

The instructions aren't very specific about what permissions the utility needs to the sqldump folder. I tried 777 temporarily and it still can't seem to create the config.txt file. It creates the dbopen.php and ootpsqlsettings.txt successfully.

Any ideas?
That file goes into the ootpsqlou install directory where the utility code resides. That folder, and all the subfolders (cache, settings, etc.) should have a minimum of 7/5/5 permissions.
__________________
StatsLab11 - PHP/MySQL based utilities for Online Leagues
Other Mods:
19th Century: Schedules, FaceGen
BBCards: 1887 Allen & Ginter, 1934 Goudey, 1988 Score, 1996 fhomess, 2005 fhomess
FaceGen: 1960-Pres MLB, 32 Colleges, Backgrounds

PEBA - Connecticut Nutmeggers
fhomess is offline   Reply With Quote
Old 08-31-2009, 02:33 PM   #120 (permalink)
Stu
All Star Starter
 
Stu's Avatar
 
Join Date: Dec 2005
Posts: 1,249
Thanks: 17
Thanked 16x in 8 posts
Strange, it was 755 by default for me but didn't work until I set the sqldump, ootpsqlou and settings folder to 777 temporarily. I switched them all back to 755 after it wrote the files.
__________________
Brewers League Baseball
Stu is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:15 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0
Copyright © 2009 Out of the Park Developments