Notifications
Clear all

EF5 Upgrade Issue

6 Posts
1 Users
0 Reactions
3,363 Views
(@erceyazici)
Posts: 7
Active Member
Topic starter
 

Hi there,

I was trying to upgrade my website to Efiction 5, But I am stuck. My error is

Internal Server Error

Constant _CHARSET already defined

[v5_installer-master/lib/base.php:2152] Base->error()
[version.php:2] define()
[v5_installer-master/inc/upgradetools.php:43] include()
[v5_installer-master/inc/upgrade.php:115] upgradetools::sitedata()
[v5_installer-master/lib/base.php:1599] Base->call()
[v5_installer-master/index.php:43] Base->run()

Okay, I skipped Step 0, and everythings going well until Step 3:

Internal Server Error

PDOStatement: UNIQUE constraint failed: chapters.chapid

[v5_installer-master/lib/base.php:2152] Base->error()
[v5_installer-master/lib/db/sql/mapper.php:422] DBSQL->exec()
[v5_installer-master/lib/db/cursor.php:242] DBSQLMapper->insert()
[v5_installer-master/inc/sql/upgrade_3_5_x/job_chapters.php:108] DBCursor->save()
[v5_installer-master/inc/upgradetools.php:546] chapters_copy()
[v5_installer-master/inc/upgradetools.php:283] jobStart()
[v5_installer-master/inc/upgrade.php:124] upgradetools::processJobs()
[v5_installer-master/lib/base.php:1599] Base->call()
[v5_installer-master/index.php:43] Base->run()

I get this error.

I skipped this error too, and in Step 4, im clicking the link for continue the upgrade and its sending me to the very beginning of the installer tool.

And I really dont get it all. Can somebody help me? Thanks!


 
Posted : 03/03/2017 10:42 pm
(@erceyazici)
Posts: 7
Active Member
Topic starter
 

Hi there!

Well it seems Error #1 originates in your version.php file. (From eFiction 3)
By default, it reads:

<?php
if(!defined("_CHARSET")) exit( );
$version = "3.5.5";
?>

Can you post yours?

Error #2 hints towards a duplicate chapter ID, but chapter ID being unique in eFiction 3 already, this should not be possible. Can you check if yout eFiction 3 chapter table has a PRIMARY index in chapid?

Thank you Sheepcontrol,

I have checked my chapid and it has Primary index.

So Ive managed somehow this (made chapid index)... but now its giving me this error:

Internal Server Error

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1' for key 'PRIMARY' [/home/hikayeevi_salon/beta.hikayeevi.com/v5_installer-master/lib/db/sql.php:227]

[v5_installer-master/lib/db/sql.php:227] PDOStatement->execute()
[v5_installer-master/lib/db/sql/mapper.php:422] DBSQL->exec()
[v5_installer-master/lib/db/cursor.php:242] DBSQLMapper->insert()
[v5_installer-master/inc/sql/upgrade_3_5_x/job_descriptors.php:41] DBCursor->save()
[v5_installer-master/inc/upgradetools.php:546] descriptors_characters()
[v5_installer-master/inc/upgradetools.php:283] jobStart()
[v5_installer-master/inc/upgrade.php:124] upgradetools::processJobs()
[v5_installer-master/lib/base.php:1599] Base->call()
[v5_installer-master/index.php:43] Base->run()


 
Posted : 04/03/2017 11:03 am
(@erceyazici)
Posts: 7
Active Member
Topic starter
 

I made changes in my version.php and its perfect now, thanks to you.

So now trying to upgrade from the beginning. Im gonna let you know

Thanks again

Okay... I think there is a problem with my Character list. Cuz its stuck exact same point...


 
Posted : 04/03/2017 12:00 pm
(@erceyazici)
Posts: 7
Active Member
Topic starter
 

I think its about duplicate names. I have 24 character with exact same name from different fandoms. So, I deleted those names and now Im trying to restart upgrade. I will let you know again πŸ™‚


 
Posted : 04/03/2017 12:34 pm
(@erceyazici)
Posts: 7
Active Member
Topic starter
 

okay, so I made this change, and now here we go with this...

Trying to get property of non-object

[v5_installer-master/lib/base.php:2152] Base->error()
[v5_installer-master/inc/sql/upgrade_3_5_x/job_stories.php:326] Base->{closure}()
[v5_installer-master/inc/upgradetools.php:546] stories_recount_categories()
[v5_installer-master/inc/upgradetools.php:283] jobStart()
[v5_installer-master/inc/upgrade.php:124] upgradetools::processJobs()
[v5_installer-master/lib/base.php:1599] Base->call()
[v5_installer-master/index.php:43] Base->run()


 
Posted : 04/03/2017 1:20 pm
(@erceyazici)
Posts: 7
Active Member
Topic starter
 

This one has me puzzled, since it's past the copying part, here the installer is building stats of the categories.

It's an iterated process and a bit tricky to recreate without the data. I'll run the script on my data again to see if I can create this error.

hey Sheepcontrol, is there a way for me to try this step with sql first?

and there are stories with multi categories... Maybe thats the reason why I getting error? EDIT: No its not. I am changing Turkish characters... and No again.


 
Posted : 05/03/2017 7:12 am
Share: