Problem with Script "move_assets.php"

Can anyone suggest what might be wrong, to cause the error

     Unable to initialise Create Link HIPO, no assets specified [HIPO0026]

when using the script "move_assets.php"?

    php move_assets.php /var/www/mysource_matrix_3.28.4 6933 7533 form_submission 3

Here is a partial dump of the variable "$child_assetids" from the function "moveAssets" at line 104

    Array
    (
    [0] => Array
        (
            [0] => 7204
            [1] => 7205
            [2] => 7212
            [3] => 7217
            [4] => 7218
            [5] => 7244

and here's a dump of the variable "$vars" from the function "moveAssetChunk" at line 149

    Array
    (
    [link_action] => move
    [assets] => Array
        (
        )
    
    [to_parent_assetid] => 7573
    [to_parent_pos] => 0
    )


Any ideas will be appreciated.... thanks

regards
Polonius

[quote]
Can anyone suggest what might be wrong, to cause the error

     Unable to initialise Create Link HIPO, no assets specified [HIPO0026]

when using the script "move_assets.php"?

    php move_assets.php /var/www/mysource_matrix_3.28.4 6933 7533 form_submission 3

Here is a partial dump of the variable "$child_assetids" from the function "moveAssets" at line 104

    Array
    (
    [0] => Array
        (
            [0] => 7204
            [1] => 7205
            [2] => 7212
            [3] => 7217
            [4] => 7218
            [5] => 7244

and here's a dump of the variable "$vars" from the function "moveAssetChunk" at line 149

    Array
    (
    [link_action] => move
    [assets] => Array
        (
        )
    
    [to_parent_assetid] => 7573
    [to_parent_pos] => 0
    )


Any ideas will be appreciated.... thanks

regards
Polonius
[/quote]


Hi,
The Script is good :). You might have to try running the script as below
    php move_assets.php /var/www/mysource_matrix_3.28.4 6933 7533 form_submission 4

form_submissions as linked type 3 but it evaluates to 4.
Extract from core/include/init.inc

    
    define('SQ_LINK_TYPE_1', 1); // link is displayed on frontend and backend navigation
    define('SQ_LINK_TYPE_2', 2); // same power/rank as a TYPE_1 link but is only displayed on backend navigation
    define('SQ_LINK_TYPE_3', 4); // same power/rank as a TYPE_1 link, but is not displayed on any navigation
    define('SQ_LINK_NOTICE', 8); // for information purposes only, (eg register HREF's from one asset to another)



Cheers,
Ash

Thank You Ash,
It worked!



regards

Polonius

(p.s. It would be good if that info could be included in the "PrintUsage" function in the script.)