Viewing 3 replies - 1 through 3 (of 3 total)
  • I am trying this exact same thing now. I have just taken over a client site, and they are running v1.3.32 – when I upgrade to v2.10.2 the data is all lost.

    Am I able to upgrade the data and keep it too? Can I export from the old and import to the new? I cant see an option to do this in the old system though.

    I have had a good look into this and I can see that the upgrade script for 1.3.x is there, but appears not to be working correctly.

    To get this to even occur I forced the plugin to arrange an update

    // Simple way of checking if an it's an update or not.
    //if ( !empty($oldVersion) && (version_compare($oldVersion, WPSQT_VERSION) < 0) ){
    	update_option('wpsqt_update_required',true);
    	update_option('wpsqt_old_version','1.3.27');
    //}

    Then changed the way the Upgrade.php calls the /Upgrade/1322.php class.

    Upgrade.php: line 179 (wpsqt core no longer has a getObject method)

    //$objUpdate = Wpsqt_Core::getObject( 'Wpsqt_Upgrade_1322' );
    $objUpdate = new Wpsqt_Upgrade_1322();
    $objUpdate->execute();

    This runs the execute in 1322.php however I now get

    Warning: Invalid argument supplied for foreach() in /home/adviserv/public_html/wp-content/plugins/wp-survey-and-quiz-tool/lib/Wpsqt/Upgrade/1322.php on line 152

    foreach ( $sections as &$section ){
    
    					foreach ( $section['questions'] as $key => &$value ){
    
    						$value['name'] = $value['text'];
    						unset($value['text']);
    
    					}
    
    				}

    This is where my PHP runs out.

    Data is all still in the old tables, which is great, and I can see in _wpsqt_quiz_surveys I have some data, so I am close.

    If I can get help to get over this last hurdle, I would really appreciate it!

    Thanks!

    I have found this hint on the GitHub repo

    1. Make sure you have the latest version of the plugin
    1. Deactivate plugin
    1. Activate plugin
    1. In the WPSQT menu click Maintenance
    1. Select the Upgrade tab
    1. Click the Upgrade button
    1. Repeat all previous steps once more

    And tried this, but the scripts only create the new tables, they don’t upgrade the data too.

    I really need to make this upgrade happen. Please can I get some help – I am willing to pay!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP Survey And Quiz Tool] Update From 1.3.32 Deletes Quizzes’ is closed to new replies.