osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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, ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

LinkBack Thread Tools
  #1  
Old 05-13-2008, 08:40 AM
Member
 
Join Date: Mar 2008
Posts: 34
Thanks: 0
Thanked 3 Times in 2 Posts
Rep Power: 0
jack_strit is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 05-13-2008, 12:09 PM
michael_s's Avatar
osCMax Developer


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,714
Thanks: 139
Thanked 606 Times in 519 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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

*** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers ***

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 User Manual - osCMax Templates - Advanced Template Tutorial

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 05-14-2008, 07:58 AM
Member
 
Join Date: Mar 2008
Posts: 34
Thanks: 0
Thanked 3 Times in 2 Posts
Rep Power: 0
jack_strit is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
AJAX Attribute Manager michael_s New osCommerce Contributions 0 03-21-2008 05:30 PM
AJAX Attribute Manager michael_s New osCommerce Contributions 0 05-16-2007 06:23 PM
AJAX Attribute Manager michael_s New osCommerce Contributions 0 05-06-2007 08:18 PM
New Attribute Manager michael_s New osCommerce Contributions 0 03-04-2007 11:51 PM
New Attribute Manager michael_s New osCommerce Contributions 0 03-04-2007 11:19 PM


All times are GMT -8. The time now is 04:52 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design