Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account
Author Message
linksysinfo
New Member
New Member



Joined: Aug 06, 2005
Posts: 9

PostPosted: Mon Jun 12, 2006 10:28 am Reply with quote

I tried to upgrade from CNB Your Account 4.4.0b2 to 4.4.2 however when i ran the first upgrade in cnbya.php from 4.4.0b2 to 4.4.0 i got the following.

Operation Status!
- Insert nuke_cnbya_config failed
- Update nuke_cnbya_config succeeded
Operation Complete!

the cnbya code for that is here:

Code:
    case "upgrade440":

        $pagetitle = "CNB Your Account: Upgrade CNB 4.4.0 beta2 to CNB 4.4.0";
        include("header.php");
        title("$pagetitle");
        OpenTable();
        echo "Operation Status!<br>\n";
        echo "<hr>\n";
        $result = $db->sql_query("INSERT INTO ".$prefix."_cnbya_config VALUES ('doublecheckemail', '1')");
        if (!$result) { echo "- Insert ".$prefix."_cnbya_config failed<br>\n"; } else { echo "- Insert ".$prefix."_cnbya_config succeeded<br>\n"; }

        $result = $db -> sql_query("UPDATE ".$prefix."_cnbya_config SET config_value = '4.4.0' WHERE config_name = 'version'");
        if (!$result) { echo "- Update ".$prefix."_cnbya_config failed<br>\n"; } else { echo "- Update ".$user_prefix."_cnbya_config succeeded<br>\n"; }

        echo "<hr>\n";
        echo "Operation Complete!<br>\n";
        echo _GOBACK."\n";
        CloseTable();
        include("footer.php");


I dont have much knowlege of MySQL but can someone help me out at all to fix this probem?
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6432

PostPosted: Mon Jun 12, 2006 10:37 am Reply with quote

Why would you upgrade from 4.4.0b2 to 4.4.0? You might want to skip that step and go to the next upgrade.

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
linksysinfo







PostPosted: Mon Jun 12, 2006 12:50 pm Reply with quote

because that is the way the instructions tell you to upgrade from cnbya.php

4.40.b2 -> 4.4.0
4.4.0 -> 4.4.1
4.4.1 -> 4.4.2
 
kguske







PostPosted: Mon Jun 12, 2006 7:07 pm Reply with quote

OK. So, by the code you posted, it looks like a record with the same primary key already existed in the config table, so you should be able to continue updating.

That's one of the problems with having so many released versions so close together - it's confusing and you can't remember what was added when, resulting in errors like this.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©