|
||||
|
03-02-2016, 03:20 PM | #61 |
Minors (Single A)
Join Date: Nov 2015
Location: Montreal, Canada
Posts: 98
|
I thought the online scripts had to be updated on the server...not on the computer...?
Do you have a working copy of the files that need to go in the /online_scripts on the computer? We have done multiple delete/reinstall/upload/unpack operations, all starting from scratch. I can start it again, but to make sure that we have all the right tools, can you post the files that I would need to have both in /online_scripts on the computer as well as the right script files that need to go on the computer. I will delete the database and create a new one again and delete everything that is in the /league_reports folder on the server so that we can have a fresh start. Just need the right files. I will test this out with the files you give me, if that doesn't work, then I guess we'll get in touch via PM to try and figure this out. |
03-02-2016, 03:28 PM | #62 | |
Administrator
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,992
|
Quote:
|
|
03-02-2016, 04:13 PM | #63 |
Minors (Single A)
Join Date: Nov 2015
Location: Montreal, Canada
Posts: 98
|
Sent you a pm.
Thanks! |
03-02-2016, 05:41 PM | #64 |
Administrator
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,992
|
Alright, thanks for the FTP access. First let's check whether the .htaccess file does what it's supposed to do:
I added a file hallo.php to your league_reports folder and this rewrite condition to the .htaccess file: RedirectPermanent /league_reports/test.php http://www.sblootp.net/league_reports/hallo.php When navigating to http://www.sblootp.net/league_reports/test.php I was forwarded to hallo.php, so the redirect works. PHP worked as well. Still, links like these just returned a "file not found": Home I added echo "hello world"; to the index PHP file, but it was not displayed when trying to open Home So the .htaccess file obviously does not redirect the URLs to the index.php file. Something most be wrong with the redirect. After looking a bit closer at the rewrite rules, I figured that the paths were not correct. It was RewriteRule ^box_scores/(.*)\.html$ '/public_html/league_reports/index.php?type=e&name=$1' [L] /public_html is not part of the URL so it makes no sense here. In OOTP 16, that's the last text box in the "Create PHP server script files", "path to reports folder". So for similar issues we should always remember to compare the examples in that dialog with the own settings. Good luck and have fun with your online league! |
03-02-2016, 06:16 PM | #65 |
Minors (Single A)
Join Date: Nov 2015
Location: Montreal, Canada
Posts: 98
|
So...does this mean that everything is working fine now? Do we need to change anything in the paths in game now that you have fixed the .htaccess file?
I just don't want to have the same problems arise if the commish goes and updates the website on his next sim. /public_html was added in the path because otherwise, OOTP would upload the files in /league_reports, which is was at the same level as the root of the website, therefore making the reports unavailable as they needed to be in /public_html/league_reports. Also, if I want to solve this problem for the second commish I was helping out, what files should I look for to change? Just the .htaccess? Thanks for your help! |
03-02-2016, 06:27 PM | #66 |
Administrator
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,992
|
You need to edit the settings in the "Create PHP server script files" (in this case "path to reports folder")
|
03-02-2016, 06:30 PM | #67 |
Minors (Single A)
Join Date: Nov 2015
Location: Montreal, Canada
Posts: 98
|
|
03-02-2016, 06:42 PM | #68 |
Administrator
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,992
|
If all settings are correct, and if the server supports everything 100%, yes, then it should work.
|
03-02-2016, 09:12 PM | #69 |
Minors (Single A)
Join Date: Nov 2015
Location: Montreal, Canada
Posts: 98
|
Well, that didn't work. Removing the public_html portion of the path to reports folder DID NOT WORK.
Doing that uploaded all the reports to the root folder (/) making it inaccessible from the web, instead of uploading everything in (/)public_html/league_reports where it's supposed to be. So, once again, we are adding public_html to the path to the reports folder to see if that will work...I am ready to be that the answer to that will be a big NO. Why oh WHY is it so complicated to setup the reports for a league when it was so simple to have it installed on mine...? Last edited by PBCA Commish; 03-02-2016 at 09:20 PM. |
03-02-2016, 09:22 PM | #70 |
Minors (Single A)
Join Date: Nov 2015
Location: Montreal, Canada
Posts: 98
|
And finally, having the public_html part in the path to reports folder worked perfectly in the end.
Even though you were not 100% right, I have to thank you Andreas for your help...we had been hitting our heads on the walls for weeks trying to figure this out! |
03-02-2016, 10:11 PM | #71 | |
Hall Of Famer
Join Date: Aug 2009
Location: NJ, US
Posts: 2,002
|
Quote:
Last edited by byzeil; 03-02-2016 at 10:12 PM. |
|
03-03-2016, 05:27 AM | #72 |
Administrator
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,992
|
Example settings from my test league:
|
03-03-2016, 05:34 AM | #73 | |
Administrator
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,992
|
Quote:
The problem here seems to be that the FTP root on your account is not the same folder as the HTTP root. On my server, it's the same. And that's why this seems to be so complicated - there are endless possibilities how the server can be configured... |
|
03-03-2016, 05:39 AM | #74 |
Administrator
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,992
|
If you have PHP warnings on your web pages and cannot fix the cause of the warnings, you can disable them in your web site admin panel. Or with some PHP code in the PHP script that causes the warning. Or you could add a command to the .htaccess file to stop the warnings.
|
03-03-2016, 12:06 PM | #75 |
All Star Reserve
Join Date: Dec 2006
Location: TX
Posts: 890
|
I would like to thank the OOTP team for all their help and willingness to help. After several frustrating hours for me and someone else we figured everything out. Thank you for helping out a customer who has had OOTP since I believe OOTP 6 but maybe even before that. I love OOTP and love running online leagues as a commish. My guilt pleasure in life is OOTP!
|
03-08-2016, 08:18 AM | #76 |
Minors (Single A)
Join Date: Nov 2015
Location: Montreal, Canada
Posts: 98
|
...
Last edited by PBCA Commish; 03-08-2016 at 08:20 AM. |
03-08-2016, 08:19 AM | #77 | |
Minors (Single A)
Join Date: Nov 2015
Location: Montreal, Canada
Posts: 98
|
Quote:
|
|
02-03-2017, 01:37 AM | #78 |
Bat Boy
Join Date: Feb 2016
Posts: 16
|
Hello I'm having a problem getting my league website to update. For several sims the website would not update to the new game date, even though the game was showing it being successfully uploaded and decompressed. New league files are still being created and can be downloaded. I dumped the SQL tables as described earlier in this thread, and it has not seemed to help. I was referred here with the following message:
The reports archive is empty. It also has an error in it. Sorry. I wish I knew what caused that. I do not. Please send your archive to Andreas Rhat over on the OOTP boards. He should be able to troubleshoot the game error for us. Any help would be appreciated. Thank you |
01-30-2018, 02:09 PM | #79 |
Minors (Double A)
Join Date: Nov 2015
Posts: 159
|
Looks like everything worked fine but a few issues...
I have this at the top of every page: Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home3/robmeister89/public_html/UBA/reports/index.php on line 6 Also, some images are not showing up.. are they not uploaded with the rest of the pages? EDIT: Fixed the error by adding an @ symbol before mysql_connect. Still not sure why some images are missing. Last edited by Robmeister89; 01-30-2018 at 02:21 PM. |
Bookmarks |
|
|