Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Editing Column Names 10 May 2013 10:19 #7158

Hi, I am trying to edit my component, I have changed the default table for the component to another table with slightly different columns, I have manged to rename all my view/models but I am still getting this error
Componentitem: :publish failed - Unknown column 'published' in 'field list'
Is there another place to edit the table details apart from models/views/table folders?

Please Log in or Create an account to join the conversation.

Re: Editing Column Names 10 May 2013 13:56 #7159

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Well, this is one of the main problem with the current migration. Cook was letting you the choice to name special fields as your please, but I seems not to be a good technic, so it is now restricted.


The publishing field must always be called 'published'. Check where is your error...

Please edit those fields, regenerate your code with 2.5.

You can also simply search/replace in your source, and must also check in SQL tables.

Actually, you should generate with 2.5 new version, and start to migrate. I will annouce all this soon.
The migration is an ultra important time to dedicate for each component you have already created or are working on.

So, during this migration, check well all your published fields are named 'published'. If not, the wizard will not work. Since 2.5, it is not anymore raising fatal.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: Editing Column Names 10 May 2013 14:31 #7160

Thanks, this now makes sense, I also have noticed by default the id column is added automatically, if I want to use another field other than Id will I notice problems? I am using version 2.0

Please Log in or Create an account to join the conversation.

Last edit: by paulkish.
  • Page:
  • 1
Time to create page: 0.079 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started