Copied to clipboard

Flag this post as spam?

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


  • Keith Petersen 67 posts 111 karma points
    Feb 28, 2011 @ 18:29
    Keith Petersen
    0

    Content in admin control suddenly becomes fubar (1.08)

    Hi, I have a mysterious problem with 1.08 on 4.5.2. It was and still is working fine on test, but in production the embedded content control becomes fubar without apparent reason.There's data in the page, but it appears gone:

    I reloaded the production site from scratch this weekend and transferred data from test using a package and Courier, and everything was fine when I left. I came in today and it was messed up-- and no users but me had logged in since Saturday. The page still looks right on the web site, but I wouldn't want to try publishing it. I'd try upgrading to 1.1, but since it's already screwed up, I doubt that would help, and I wouldn't be able to go back to 1.08 without reloading everything. I get this Javascript error in Firebug console when I load the page with the control:

    TheFarm.Umbraco.EmbeddedContent.PopulateListFromHiddenValue is not a function
    https://prod.mysite.com/umbraco/editContent.aspx?id=1303
    Line 85

    The datatype embedded content controls also look messed up.

    I've tried clearing the Client Dependency cache to no avail. Would the indexer be causing it? I'm baffled because I'm sure it was fine 2 days ago, no user has changed anything since, and it's still working in test. Maybe publishing after Courier did it? Yet I'm sure it was ok Saturday....

  • Sascha Wolter 615 posts 1101 karma points
    Mar 01, 2011 @ 02:00
    Sascha Wolter
    0

    Hi Keith,

    something seems to be wrong with the javascript. The data will most likely still be there, however the control initialization doesn't seem to work. I get an error like this usually when I have a syntax error in a javascript file as the browser will stop executing when it comes across the error. That your browser says 'xxx is not a function' indicates the same. What I would suggest you do is the following:

    - I've uploaded v1.08 again to the project page. Uninstall your current version and re-install v1.08 again. It might be that some things didn't get across properly, so re-installing the same version should be absolutely fine. 

    - Should that not work then I'd definitely try out version 1.1.1 (latest version only downloadable directly from the project page). In order to be able to revert to the 'old' schema do the following:

      * make a backup of the db
      * uninstall the current version and update to version 1.1.1 of Embedded Content
      * go to the developer section and check if the content controls get displayed correctly again, if yes then also check the content pages
      * if that doesn't seem to help uninstall version 1.1.1, install v1.08 and restore the db backup

    If that doesn't help then try creating a new Embedded Content data type and see if everything works fine with that. If so then something seems to be messed up with your Prevalue definition or the content (less likely the latter), in which case I'll give you instructions on how to extract the information so I can have a look at that. Should you not be able to create a new data type even after installing 1.1.1 then something else is probably messed up (as well), then we'll start all over.

    Let me know how it goes,

    Sascha

  • Keith Petersen 67 posts 111 karma points
    Mar 03, 2011 @ 00:17
    Keith Petersen
    0

    I fixed it. It was a bad URL rewrite rule blocking some of the scripts. Duh...

  • Sascha Wolter 615 posts 1101 karma points
    Mar 03, 2011 @ 00:22
    Sascha Wolter
    0

    Wonderful, glad you could fix it. :)

Please Sign in or register to post replies

Write your reply to:

Draft