osCmax v2.5 User Manual
Results 1 to 3 of 3

The Attribute Manager that Logs you out!

This is a discussion on The Attribute Manager that Logs you out! within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; HI, So if we have a contest to see who can come up with the weirdest errors, who wins? Well, ...

      
  1. #1
    Member
    Join Date
    Mar 2008
    Posts
    34
    Rep Power
    0


    Default The Attribute Manager that Logs you out!

    HI,

    So if we have a contest to see who can come up with the weirdest errors, who wins?

    Well, I am going to submit my most recent error to the contest:

    Per the suggestion of the powers that be I tried to fix a bug in rc3 in the attribute manager.
    ****
    Yes that is fixed in RC4, and you can also get the fix for RC3 in the bugtracker:
    183: RC3 Attributes Manager Issue - no attributes aren't selected. - Bug Tracker - open source Commerce Maximized :: osCMax

    ******

    The suggestion was that we needed a couple of = signs in there....

    Tried it last night according to the Bug Tracker...wala..a blank page.

    Next, I went over to the RC4 repository and snagged the code for the pages new_attributes_select.php and new_attributes_include.php and replaced the code of each page. Now, when I go to attributes manager there is the little dropdown with the products in it...and when I select one and click edit it takes me to the admin login page!!! Ok, that is really crazy, probably not the craziest error ever, but maybe I would get a close 3rd place!

    Anybody with a suggestion?

    J

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: The Attribute Manager that Logs you out!

    1st suggestion: don't use bits and pieces of RC4 in your RC3 shop. Either use all the RC4 code, or none of it. There are too many changes to go piecemeal, and you will get unexpected results like being logged out for no apparent reason. Mixing development code with released code is usually never a good idea for a soon-to-be live store.

    2nd Suggestion
    : Revert to the rc3 default files and re-apply the patch in the bugtracker. This time, when you get a blank page, check the server error logs. That blank page means you have a syntax error in your php somewhere and the error logs will tell you exactly where.

    Then post that error message here and we will help you resolve it.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Member
    Join Date
    Mar 2008
    Posts
    34
    Rep Power
    0


    Default Re: The Attribute Manager that Logs you out!

    HI, I found the answer last night late.
    file:admin/new_attributes_includes.php
    The original code was this (on lines 5,6,7):
    <FORM ACTION="<?php $PHP_SELF?>" METHOD="POST" NAME="SUBMIT_ATTRIBUTES">
    <INPUT TYPE="HIDDEN" NAME="current_product_id" VALUE="<?php $current_product_id?>">
    <INPUT TYPE="HIDDEN" NAME="action" VALUE="change">

    The suggested fix according to the bug tracker was this:
    <FORM ACTION="<?=$PHP_SELF?>" METHOD="POST" NAME="SUBMIT_ATTRIBUTES">
    <INPUT TYPE="HIDDEN" NAME="current_product_id" VALUE="<?=$current_product_id?>">
    <INPUT TYPE="HIDDEN" NAME="action" VALUE="change">

    The solution that worked for me:
    <FORM ACTION="<? $PHP_SELF?>" METHOD="POST" NAME="SUBMIT_ATTRIBUTES">
    <INPUT TYPE="HIDDEN" NAME="current_product_id" VALUE="<?=$current_product_id?>">
    <INPUT TYPE="HIDDEN" NAME="action" VALUE="change">

    I really am not sure why it worked for me this way, but it did. Anyone have an explanation?

    J

Similar Threads

  1. AJAX Attribute Manager
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 03-21-2008, 05:30 PM
  2. AJAX Attribute Manager
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-16-2007, 06:23 PM
  3. AJAX Attribute Manager
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-06-2007, 08:18 PM
  4. New Attribute Manager
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 03-04-2007, 11:51 PM
  5. New Attribute Manager
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 03-04-2007, 11:19 PM

Bookmarks

Posting Permissions

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