Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • crono 58 posts 129 karma points
    May 21, 2015 @ 17:02
    crono
    0

    Can't create new documents in backend..

    Hi,

    For some reason, the backend is refusing to create new documents.

    Not sure when it started, but when I noticed it, the database was completely full (~0.3MB left).

    I've made space available in the db again (~35MB), but the issue persist.

    I can create nodes just fine if I use my own controller. The issue only appears in the backend.

    I've cleared all possible caches.

    Running Umbraco 7.2.4.

    This is the error I get:

    http://localhost:52099/umbraco/backoffice/UmbracoApi/Content/PostSave Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    
    angular.min.js?cdv=177235485:63 TypeError: data.indexOf is not a function
        at umbraco.services.js?cdv=177235485:6855
        at umbraco.services.js?cdv=177235485:6936
        at angular.min.js?cdv=177235485:100
        at o (angular.min.js?cdv=177235485:80)
        at o (angular.min.js?cdv=177235485:80)
        at angular.min.js?cdv=177235485:81
        at Object.e.$eval (angular.min.js?cdv=177235485:92)
        at Object.e.$digest (angular.min.js?cdv=177235485:90)
        at Object.e.$apply (angular.min.js?cdv=177235485:92)
        at j (angular.min.js?cdv=177235485:101)(anonymous function) @ angular.min.js?cdv=177235485:63
    

    I've encountered the error before, but only with datatypes that were storing more data than nvarchar could handle (fixed by setting to TEXT).

    But this is happening on all documents I throw at it - even completely raw document types.

    Any help would be much appreciated :)

  • Tessa 20 posts 72 karma points
    Jul 09, 2015 @ 19:17
    Tessa
    0

    I've actually come across the same error, but mine occurs when I try to save/publish a node after editing or creating anything.

    I created the site in Visual Studio and migrated the database to one of our SQL databases and updated the connection string. It works fine locally when its connected via Visual Studio, but when I go to our website to update the content connected to the same database, I can't make any changes.

    I want to say it's a permissions thing, but I'm a Frontend developer and shouldn't be playing in this stuff. :P

  • crono 58 posts 129 karma points
    Jul 10, 2015 @ 07:13
    crono
    0

    Hi,

    I believe we found the solution to that problem - and it had nothing to do with the database.

    We had changed a snip of code in the Publishing event, and it was causing exceptions when creating new documents from the backend.

    Maybe you should have a look at your events too?

  • David Sheiles 69 posts 339 karma points
    Sep 27, 2015 @ 14:06
    David Sheiles
    0

    Thanks for the reminder Crono,

    Why didn't I think of that! Same problem ended up being a custom publish event that I had written.

  • Tessa 20 posts 72 karma points
    Jul 10, 2015 @ 12:38
    Tessa
    0

    I had received help from one of our application developers, and he just checked a box for the user I created for that database to be an "owner" using SQL Server Management Studio and then it worked. I can't say I fully understood the problem or the solution, but mine works now too! Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft