Can't get into the admin page

Cart Help
2003-11-12
2003-11-14
  • Scott Harris
    Scott Harris
    2003-11-12

    Hi
    I;ve installed 2.5 and i can't see the admin page.

    Only thing i haven't done is the page doesn't start with www and it's not in the root of the dir.

    Can anyone help me. 

    Thanks
    Scott
    scott.bharris@parks.vic.gov.au

     
    • Scott Harris
      Scott Harris
      2003-11-12

      wrong email address.
      scott.bharris@bigpond.com

       
    • John Barros
      John Barros
      2003-11-12

      Whats your page url?

       
    • Scott Harris
      Scott Harris
      2003-11-12

       
    • Scott Harris
      Scott Harris
      2003-11-13

      Hi john

      Yeah sorry about that. The site is up again.

      I added that part in but it didn't make any difference.

      Scott
      Just checking the links now

       
    • Scott Harris
      Scott Harris
      2003-11-13

      This is the cookie it's putting on my PC

      Name: sharris@store[1].txt
      Content: CartID
      1068699775ENG07092
      ladder.alternet.com.au/store/
      1024
      1581099392
      29606198
      3074178048
      29600162
      *

       
      • John Barros
        John Barros
        2003-11-13

        What browser/version are you using?

        If its setting your cart cookie, and you are able to add and see multiple items in your cart, then it should be able to set your adminID cookie. They are basically the same methods.
        Since I do not have FTP access to your site, I really cant tell you whats going on.
        Try saving and naming this as admin_cookie.php in your store/ folder. Delete when done! Just open up the page and see what happens.

        <script language="php">
        if(isset($_COOKIE["adminID"])) {
        $adminID = $_COOKIE["adminID"];
        }
        else {
        setcookie("adminID", "adminID", time() + ((3600 * 24) * 180));
        header ("Location: admin_cookie.php?iscookie=yesorno");
        exit;
        }
        </script>
        <html>
        <head>
        <title>Delete this when done!!!!!</title>
        </head>
        <body>
        <p align="center">
        <script language="php">
        if(isset($_COOKIE["adminID"])) {
        echo "<b>Admin Cookie set!</b>
        }
        </script>
        <br>
        <br>
        <br>
        <b>
        Delete this when done!!!!!</b>
        </body>
        </html>

         
        • John Barros
          John Barros
          2003-11-13

          Sorry,

          Dont forget to add the   ";     here:
          echo "<b>Admin Cookie set!</b>

          Should look like this:
          echo "<b>Admin Cookie set!</b>";

           
    • Scott Harris
      Scott Harris
      2003-11-13

      Hi THanks

      I';ve done that, when i try to connect to the file.  it just loads the web page for ever.

      Any idea's.  Would you like me to setup FTP access.

      Scott

       
      • John Barros
        John Barros
        2003-11-13

        Give me your FTP details here:
        webmaster@profitcode.com
        Ill see whats up. I think it has to do with the adminshop/  javascript in the files after the <body> tag.
        Basically you have the adminshop/index.php and all other files are loaded in an IFRAME in index.php. To prevent these files from opening up as a parent/top document, I included the javascript. But I modoified it since it was buggy with some versions of IE.
        Im gonna start coding all adminshop files to open as parent.

         
        • John Barros
          John Barros
          2003-11-14

          The problem I think was in after setting the cookie, it uses a header redirect. For some reason it doesnt set the cookie before it redirects. You can Uncomment the // header("Loc....      line.

           
          • John Barros
            John Barros
            2003-11-14

            The same applies to checkout_cod.php and userdetails.php. These set user cookies. If the header("loca... is not giving it time to set the cookie, try:

            sleep(2);
            header("locatio.........

            Or just dont redirect them. Echo out a link.