|
||||
| ||||
|
|
#1 |
|
Major Leagues
Join Date: Sep 2005
Location: Chicago, IL
Posts: 361
|
BOSI and the new version of php?
Guys, not sure how many have come across this, but i am getting a funky error now when i try to import to BOSI...
Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0 Anyone come across this, and if so were you able to fix it? Thanks.
__________________
Phil Zuber Beyond the Ivy - Commish, Twins GM Stars and Stripes Baseball League - Cubs GM Bricks and Ivy - Orioles GM Sim Coalition - co-founder
|
|
|
|
|
#2 |
|
All Star Starter
Join Date: Aug 2003
Posts: 1,146
|
Are you the person I helped get rid of this error already?
There are two ways to remove this error. Either place the following lines of in a file the BOSI executes for every script, such as the config file. Code:
ini_set('session.bug_compat_42', 0);
ini_set('session.bug_compat_warn', 0);
Code:
session.bug_compat_42 0 session.bug_compat_warn 0 Code:
php_flag register_globals on Code:
register_globals on Code:
Line: 2 Char: 1 Error: 'top.HTMLFrame' is null or not an object Code: 0 URL: http://www.asblootp.us/bosi/admin/import/league.php?GE_all=1&GL_lid=1 |
|
|
|
|
#3 |
|
Major Leagues
Join Date: Sep 2005
Location: Chicago, IL
Posts: 361
|
yeah Dave you are the one that was helping me before, which is why i had to go and keep looking cause i have no idea why all of a sudden it would stop working. i was hoping someone else ran into the same thing.
__________________
Phil Zuber Beyond the Ivy - Commish, Twins GM Stars and Stripes Baseball League - Cubs GM Bricks and Ivy - Orioles GM Sim Coalition - co-founder
|
|
|
|
|
#4 |
|
All Star Starter
Join Date: Aug 2003
Posts: 1,146
|
Well, like I tried to explain, lots of people have run into the problem you posted and I've helped lots of people fix that problem. Its due to a simple change in PHP versions. But you other problem after we fixed those errors is something else...never seen it before.
|
|
|
|
|
#5 |
|
Major Leagues
Join Date: Sep 2005
Location: Chicago, IL
Posts: 361
|
yeah i know, you gave me the fixes, but for some reason it doesnt go through.
ive actually got it affecting 2 of my servers now, so i am really stuck. on the 2nd server that is no affected by this, when i logged into the admin section, it started dropping the ?G_lid=1, and obviously said that i needed to pass a valid league id. maybe if i can get past that it will work?
__________________
Phil Zuber Beyond the Ivy - Commish, Twins GM Stars and Stripes Baseball League - Cubs GM Bricks and Ivy - Orioles GM Sim Coalition - co-founder
|
|
|
|
|
#6 |
|
All Star Starter
Join Date: Aug 2003
Posts: 1,146
|
If its dropping ?G_lid=1 it sounds like register_globals isn't turned on correctly.
Make a simple php file with only this inside it. Code:
<?php phpinfo();?> |
|
|
|
|
#7 |
|
Major Leagues
Join Date: Sep 2005
Location: Chicago, IL
Posts: 361
|
heres my bosi link...http://www.beyondtheivy.net/bosi/standings.php?G_lid=1 (you'll notice that now that i have put the .htaccess file in there, i cant access it anymore).
here is the link to the phpinfo page...http://www.beyondtheivy.net/bosi/phpinfo.php
__________________
Phil Zuber Beyond the Ivy - Commish, Twins GM Stars and Stripes Baseball League - Cubs GM Bricks and Ivy - Orioles GM Sim Coalition - co-founder
|
|
|
|
|
#9 |
|
Major Leagues
Join Date: Sep 2005
Location: Chicago, IL
Posts: 361
|
thats cause of the .htaccess file, i went ahead and deleted it so you could access the pages
__________________
Phil Zuber Beyond the Ivy - Commish, Twins GM Stars and Stripes Baseball League - Cubs GM Bricks and Ivy - Orioles GM Sim Coalition - co-founder
|
|
|
|
|
#10 |
|
All Star Starter
Join Date: Aug 2003
Posts: 1,146
|
Your .htaccess file must of had a typo in it or something or possibly your host doesn't allow them. It wouldn't just make it not work like that.
Regardless, something is wrong in your php.ini, because this shows that register globals is still turned off. Search for register_globals in the phpinfo page and you'll find this. Code:
register_globals Off /usr/local/Zend/etc/php.ini Is that the file you modified? Unmodified BOSI 2 code relies on register globals being turned on as it was by default in PHP versions < 4.02 or so. |
|
|
|
|
#11 | ||
|
Major Leagues
Join Date: Sep 2005
Location: Chicago, IL
Posts: 361
|
Quote:
Quote:
on the new server i got, i do have access to it. i have a league on the new server that is having this same problem, i'll put all the changes over there and even throw that phpinfo file over there for you and see what happens later today and report back.
__________________
Phil Zuber Beyond the Ivy - Commish, Twins GM Stars and Stripes Baseball League - Cubs GM Bricks and Ivy - Orioles GM Sim Coalition - co-founder
|
||
|
|
|
|
#12 |
|
Major Leagues
Join Date: Sep 2005
Location: Chicago, IL
Posts: 361
|
ok...i added everything to the php.ini file like you told me...still not working
http://www.asblootp.us/bosi/phpinfo.php is the link to that one page. thanks.
__________________
Phil Zuber Beyond the Ivy - Commish, Twins GM Stars and Stripes Baseball League - Cubs GM Bricks and Ivy - Orioles GM Sim Coalition - co-founder
|
|
|
|
|
#14 |
|
Major Leagues
Join Date: Sep 2005
Location: Chicago, IL
Posts: 361
|
i edited the php.ini file that was in the asblootp directory (i have multiple sites on the same server as add-on domains, and it puts a php.ini file in each one).
would that be the right one to edit, or is there like a master one or something?
__________________
Phil Zuber Beyond the Ivy - Commish, Twins GM Stars and Stripes Baseball League - Cubs GM Bricks and Ivy - Orioles GM Sim Coalition - co-founder
|
|
|
|
|
#15 |
|
All Star Starter
Join Date: Aug 2003
Posts: 1,146
|
If you look at this entry in your phpinfo page
Code:
Configuration File (php.ini) Path /usr/local/Zend/etc/php.ini |
|
|
|
|
#16 |
|
Major Leagues
Join Date: Sep 2005
Location: Chicago, IL
Posts: 361
|
i have no idea how to access that one or where to look.
__________________
Phil Zuber Beyond the Ivy - Commish, Twins GM Stars and Stripes Baseball League - Cubs GM Bricks and Ivy - Orioles GM Sim Coalition - co-founder
|
|
|
|
|
#17 |
|
All Star Starter
Join Date: Aug 2003
Posts: 1,146
|
If you are on a shared server you probably can't, if your host provides the capability of custom php.ini files you'll need to talk to them and find out how to enable it, because your php isn't using the php.ini in your directory.
|
|
|
|
|
#18 |
|
Major Leagues
Join Date: Sep 2005
Location: Chicago, IL
Posts: 361
|
alright so i think i found out how to make it work since its a shared sever, i just need to copy the php.ini file to every directory that has a php file in it. so i did that, and its still not working. i believe i turned everything on like i was suppose to. i got logged into the admin section ok, but when i click something, like start new season, it says cant find players.csv, and i verified that the file was in fact in there.
any other possible ideas after looking at the phpinfo page?
__________________
Phil Zuber Beyond the Ivy - Commish, Twins GM Stars and Stripes Baseball League - Cubs GM Bricks and Ivy - Orioles GM Sim Coalition - co-founder
|
|
|
|
|
#19 |
|
All Star Starter
Join Date: Aug 2003
Posts: 1,146
|
That would have nothing to do with your upgrade. Are you sure you changed your configuration and double and tripled checked to make sure you have the right path to your CSV files. It simply can't find the file and you've switching around servers like crazy so I'll wager you simply have the wrong path to your import files in the configuration.
|
|
|
|
|
#20 | |
|
Major Leagues
Join Date: Sep 2005
Location: Chicago, IL
Posts: 361
|
Quote:
__________________
Phil Zuber Beyond the Ivy - Commish, Twins GM Stars and Stripes Baseball League - Cubs GM Bricks and Ivy - Orioles GM Sim Coalition - co-founder
|
|
|
|
| Bookmarks |
|
|