Solved

Joomla assigns ID=0 to all new articles i create

Posted on 2011-09-15
4
575 Views
Last Modified: 2012-05-12
So i had a joomla 1.5 site and created a new joomla 1.6 site. I merged the old 1.5 jos_content table to the new 1.6 one and uploaded it to the new site. I now have all my old articles like I want but since then, everytime i try to create a new article it assigns it with an ID=0. How can i reset this to start adding to where the new jos_content table ends?
0
Comment
Question by:javajamminman
  • 3
4 Comments
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 500 total points
ID: 36546675
So this is an AUTO_NUMBER field? If so, you can try seeding it to new starting point. i.e., if your old jos_content ended at 999, you can set AUTO_NUMBER = 1000.

ALTER TABLE jos_content AUTO_INCREMENT=1000;

Open in new window

0
 
LVL 59

Assisted Solution

by:Kevin Cross
Kevin Cross earned 500 total points
ID: 36546677
0
 

Author Comment

by:javajamminman
ID: 36546690
Thanks guys. I actually found the same answer you guys just posted.

http://www.webmasterworld.com/databases_sql_mysql/3569905.htm

I imported via excel and forgot that it did not set the auto increment. A minor overlook that caused me a big headache. thanks
0
 
LVL 59

Expert Comment

by:Kevin Cross
ID: 36546700
Glad it is working for you now.
Best regards and happy coding,

Kevin
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now