vzex Posted August 6, 2017 Share Posted August 6, 2017 Can't add new attribute These options were available for the default theme before I deleted all sample data using thirty bees catalog cleaner Link to comment Share on other sites More sharing options...
0 yaniv14 Posted August 6, 2017 Share Posted August 6, 2017 I am unable to reproduce your bug. Are you sure you have the latest version? Link to comment Share on other sites More sharing options...
0 vzex Posted August 6, 2017 Author Share Posted August 6, 2017 How can I tell? Downloaded from TB last week. Any one specific file to download and replace? I also switched over to Panda, can't recall if default did the same. Would that matter? I know the options were there upon installation before I deleted sample store. Link to comment Share on other sites More sharing options...
0 roband7 Posted August 6, 2017 Share Posted August 6, 2017 Looks like a regression in 1.0.2, classes/AttributeGroup.php function getHigherPosition() was bugged by: commit bc9637ba9092ad0ba3a4d5c3744a068e025e58b8 Author: Michael Dekker git@michaeldekker.nl Date: Thu Jun 22 02:42:04 2017 +0200 Cleanup AttributeGroup To fix it, just replace: ->select('MAX(position') With: ->select('MAX(position)') Link to comment Share on other sites More sharing options...
0 vzex Posted August 6, 2017 Author Share Posted August 6, 2017 gives me: Link to comment Share on other sites More sharing options...
0 roband7 Posted August 6, 2017 Share Posted August 6, 2017 Crap, looks like the forum software ate some of the special characters in my post. Just check the similar function at the end of classes/Attribute.php, that one does it correctly. Link to comment Share on other sites More sharing options...
0 vzex Posted August 6, 2017 Author Share Posted August 6, 2017 My eyes are eating the rest of them :) Didn't work. Is this the latest copy? https://github.com/thirtybees/thirtybees/blob/1.0.x/classes/AttributeGroup.php Replaced mine with the above and getting the same error. Link to comment Share on other sites More sharing options...
0 yaniv14 Posted August 7, 2017 Share Posted August 7, 2017 Good call @roband7 Try this https://github.com/thirtybees/thirtybees/commit/9170db1e37a2fa4a60ef75b36ec8c3d2377639cc Link to comment Share on other sites More sharing options...
0 Traumflug Posted August 7, 2017 Share Posted August 7, 2017 To fix it, just replace: ->select(‘MAX(position’) With: ->select(‘MAX(position)’) Well, forum tries to "enhance" single quotes. Inside a code block it doesn't: php ->select('MAX(`position`)') Link to comment Share on other sites More sharing options...
0 vzex Posted August 7, 2017 Author Share Posted August 7, 2017 Don't know how you all do it! Looks like my cat walked on the keyboard to me, but code block did it! :) Thanks! Link to comment Share on other sites More sharing options...
Question
vzex
Can't add new attribute
These options were available for the default theme before I deleted all sample data using thirty bees catalog cleaner
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now