Results 1 to 5 of 5

Thread: 0 prices updated at login

  1. #1
    Senior Member AlbinoRhino's Avatar
    Join Date
    May 2008
    Posts
    843

    Default 0 prices updated at login

    PHP Code:
    Session data refreshed.
    3 days until HalloweenMysticism bonus today     (not tomorrow).
    Using data overridedata/mallprices.txt
    0 prices     updated from https
    ://kolmafia.us/scripts/updateprices.php?action=getmap 
    It seems, since the switch to SSL, that no prices have updated when I log in. Did the price sharing get broken with the change somehow?

  2. #2
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,182

    Default

    PHP Code:
    Session data refreshed.
    3 days until HalloweenMysticism bonus today     (not tomorrow).
    Using data overridedata/mallprices.txt
    0 prices     updated from https
    ://kolmafia.us/scripts/updateprices.php?action=getmap 
    It seems, since the switch to SSL, that no prices have updated when I log in. Did the price sharing get broken with the change somehow?
    Originally Posted by AlbinoRhino View Post
    Happened to me too. I have a vague recollection that there were different connection methods for http and https in the code so a simple sub of http to https would not work. I will try and investigate later today if no one else has done so.

    There is a file name test against https:// that needs to pass for files to be added to the update list. That needs to be https:// or https:// OR https://

    Since my visitors just arrived I will look and test later.
    Last edited by fronobulax; 10-20-2018 at 12:33 PM. Reason: Update
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post

  3. #3
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,182

    Default

    So I'm running this in the debugger with the "http or https" check I added. I am clearly reading the file. Interested parties can delete mallprices.txt, run mafia (with my change) and see that the file is (re)created.

    I then looked at the code writing the updated prices and after submitting the file, the response contains
    Unable to write the updated data file. Hey, Z! Check those file permissions.
    If the file on the server is never updated then folks will get zero prices updated.

    I'm going to check in my OR fix in the hopes that the problem will got away when the server side file permissions are tweaked.

  4. #4

    Default

    So I'm running this in the debugger with the "http or https" check I added. I am clearly reading the file. Interested parties can delete mallprices.txt, run mafia (with my change) and see that the file is (re)created.

    I then looked at the code writing the updated prices and after submitting the file, the response contains

    If the file on the server is never updated then folks will get zero prices updated.

    I'm going to check in my OR fix in the hopes that the problem will got away when the server side file permissions are tweaked.
    Originally Posted by fronobulax View Post
    Can you try it now?

    You can follow me on twitter @fewyn

  5. #5
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,182

    Default

    Can you try it now?
    Originally Posted by fewyn View Post
    Just did and it works. Thanks.
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •