•  
      request #2379 Warning + notices while creating new project and the template is a project with wiki enabled.
    Infos
    #2379
    Nouha Terzi (terzino)
    2019-11-27 11:11
    2013-01-30 15:08
    1354
    Details
    Warning + notices while creating new project and the template is a project with wiki enabled.
    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Notice: unserialize() [function.unserialize]: Argument is not a string in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 693

    Warning: fileperms() [function.fileperms]: stat failed for /var/lib/codendi/wiki/1286/backend_log.patch in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 391

    Warning: copy(/var/lib/codendi/wiki/1286/backend_log.patch/0) [function.copy]: failed to open stream: No such file or directory in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 375

    Warning: fileperms() [function.fileperms]: stat failed for /var/lib/codendi/wiki/1286/backend_log.patch/0 in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 391

    Warning: chmod() [function.chmod]: Permission denied in /usr/share/codendi/src/common/wiki/lib/WikiCloner.class.php on line 377
    Project admin
    5.9
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Verified (disabled)
    Empty
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    last edited by: Bruno Gabrielli (bruno.gabrielli) 2019-11-27 13:05

    The problem is the trying of unserialize common strings (like 'yes') or numbers. 

    I get a solution from wordpress source code, a function called is_serialized(). This function test if the parameter is a string serialized.

    I've put this function in src/www/include/utils.php.

    I don't if it is the best place to put the function, but it solve the problem.

    User avatar
    last edited by: Bruno Gabrielli (bruno.gabrielli) 2019-11-20 12:00

    I've made some changes on source code to avoid this warnings related to wiki.

     

    This worked for me.

     

    I don't know why, but in this projects with old templates the variable $data (in the first file) is a boolean instead an array.

    In the second file, the array $_REQUEST do not contain the key 'hide_'.$svc, for some values of $svc.

    User avatar
    The same error occours with me. I'm trying to update a Tuleap server from 9.13.99.117 to 11.7.99.124.

    The error appears when I try to create a project using an old template.

    Thanks.

    ```
    ( ! ) Notice: unserialize(): Error at offset 0 of 10 bytes in /usr/share/tuleap/src/common/wiki/lib/WikiCloner.class.php on line 775
    Call Stack
    # Time Memory Function Location
    1 0.0000 408168 {main}( ) .../register.php:0
    2 0.0242 3078216 Project_OneStepCreation_OneStepCreationRouter->route( ) .../register.php:38
    3 0.0287 3180536 Project_OneStepCreation_OneStepCreationController->create( ) .../OneStepCreationRouter.class.php:68
    4 0.0618 3946568 Project_OneStepCreation_OneStepCreationController->doCreate( ) .../OneStepCreationController.class.php:124
    5 0.0731 4313408 ProjectCreator->build( ) .../OneStepCreationController.class.php:210
    6 0.0896 4319976 ProjectCreator->processProjectCreation( ) .../ProjectCreator.class.php:183
    7 0.0897 4319976 ProjectCreator->createProject( ) .../ProjectCreator.class.php:781
    8 0.2790 4577768 ProjectCreator->initWikiModuleFromTemplate( ) .../ProjectCreator.class.php:328
    9 0.2806 4571304 WikiCloner->CloneWiki( ) .../ProjectCreator.class.php:703
    10 0.2814 4571128 WikiCloner->cloneWikiPageTable( ) .../WikiCloner.class.php:108
    11 0.2929 4746368 WikiCloner->createNewPageData( ) .../WikiCloner.class.php:192
    12 0.2929 4746744 WikiCloner->_deserialize( ) .../WikiCloner.class.php:595
    13 0.2929 4746744 unserialize ( ) .../WikiCloner.class.php:775
    ```
    User avatar
    I confirm the bug, we already encounter it. We didn't investigate to know if it comes from a bad configuration (test data) or from a real issue.

    • Status changed from New to Verified (disabled)
    • Platform set to
    • Is an Enhancement or an internal improvement? set to
    User avatar
    Nouha Terzi (terzino)2013-01-30 15:16
    Yes, (Sorry I didn't noticed it before, I though it was due to the new feature.)

    • Summary
      -Warning + notices while creating new project in one step and the template is a project with wiki enabled. 
      +Warning + notices while creating new project and the template is a project with wiki enabled.