We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44866
    • 50 Posts
    Hi Guys,
    I figure it is time I start to implement some of my changes into my production site.
    What better place to start that with the database backup.

    I have downloaded and installed the Databackup package and then clicked on the install button.
    I received the following text in a popup dialog box.

    Console running...
    Attempting to install package with signature: databackup-1.1.9-pl
    Package found...now preparing to install.
    Grabbing package workspace...
    Workspace environment initiated, now installing package...
    [b]snippet_err_createArray
    Error saving vehicle object of class modSnippet; criteria: Array ( [name] => backup ) 
    snippet_err_createArray
    Error saving vehicle object of class modSnippet; criteria: Array ( [name] => backupmany ) 
    Could not install related objects with locally owned keys for vehicle object of class modCategory; criteria: Array ( [category] => Databackup ) [/b]
    Successfully installed package databackup-1.1.9-pl


    When I go looking under the Elements -> Snippets folder i don't see the "Databackup" folder like I do in my test site.
    If I try to create a new category I'm told the category already exists.
    Sure enough if I expand the Categories folder Databackup is there.

    So I tried to create the Snippet manually and paste the code in from my test site. When I click save a "Please Wait... saving" progress bar comes up but never completes. Eventually I must close the page and nothing is created. I'm assuming this is for the same reason the install process above fails.

    I am logged in as a user named "Manager" and there is also a user named "Admin" for which I don't know the password.

    I'm not sure what the differences are between these two users. My test site was originally restored from my production site so I'm logged in as the same user on my test site.

    Can anyone think of why I would be receiving these error messages and how to fix them?

    Thanks
    David


    This question has been answered by pollardd. See the first response.

      • 44866
      • 50 Posts
      It seems this is a known issue likely related to the older version Modx I'm running (Rev 2.2.6) and the version of PHP running on the server.

      https://forums.modx.com/thread/89668/cannot-save-a-snippet-chunk-or-tv-on-new-box-install

      I'll try the work around until I'm confident enough to upgrade to the latest version.

      Production site version of PHP is 5.4.32
      Development site version of php is 5.4.36-0+deb7u3

      I'll post here again if I get stuck.
      David
      • discuss.answer
        • 44866
        • 50 Posts
        I made the changes to three files as detailed here https://github.com/modxcms/revolution/pull/11128/files

        I reinstalled databackup from the Package Management menu.

        Errors be gone smiley

        Console running...
        Attempting to install package with signature: databackup-1.1.9-pl
        Package found...now preparing to install.
        Grabbing package workspace...
        Workspace environment initiated, now installing package...
        Attempting to preserve files at /home/vjraycom/public_html/core/components/databackup into archive /home/vjraycom/public_html/core/packages/databackup-1.1.9-pl/modCategory/bfc7510eabc279ff11f41115d790d157.0.preserved.zip
        Skipping vehicle object of class modSystemSetting (data object exists and cannot be upgraded); criteria: Array ( [key] => databackup.folder ) 
        Skipping vehicle object of class modSystemSetting (data object exists and cannot be upgraded); criteria: Array ( [key] => databackup.temp ) 
        Skipping vehicle object of class modSystemSetting (data object exists and cannot be upgraded); criteria: Array ( [key] => databackup.purge ) 
        Successfully installed package databackup-1.1.9-pl


        And the Snippets were automatically created.

        So this is solved.
        Thanks
        David