News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

duplicate entry error

Started by SvenH, January 21, 2022, 04:53:33 AM

Previous topic - Next topic

SvenH

Hi all,

I am trying to convert a mybb forum (version 1.8.29) to smf (version 2.0.19).
The problem is that the converting process stops with this error:

QuoteConverting topics...

Warning: Trying to access array offset on value of type null in P:\xampp\htdocs\smf\Sources\Subs-Db-mysql.php on line 1293
Duplicate entry '555' for key 'PRIMARY'

Hope somebody can help me.





Dzonny

Hey there!

It happens, you should just put the $ignore = true; in the beginning of the section which triggers that error.

That should do the trick, at least it did in the past though :)

SvenH

Which file do you mean? The convert.php or the Subs-Db-mysql.php?
And where there exactly do I add the line?

Thanks!

vbgamer45

It would be .sql file is the assist
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: