ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Safecracker not updating P&T fields on MSM site

June 27, 2012 2:17am

Subscribe [1]
  • #1 / Jun 27, 2012 2:17am

    Paul_B

    86 posts

    Hi - I’m putting together an MSM subsite (site B) of a main site (site A), and have a safecracker form where users can post info. This is working fine on the new site except that the matrix field and P&T switch fields aren’t populated with any data on the edit screen. all other fields are populated fine - I’ve talked to Brandon about this in this forum and he’s under the impression that it’s a safecracker issue.

    OK. My guess is that it’s a SafeCracker issue. P&T Switch is a relatively simple fieldtype. If it’s getting initialized properly, except for the fact that it doesn’t remember the original value, than that means that SafeCracker just isn’t passing its old data to it when it calls its display_field() function.

    Has anyone else reported this as an issue/bug? Anything I can do to get it working?

  • #2 / Jun 28, 2012 11:19am

    Dan Decker

    7338 posts

    Hi Paul,

    I would love to get you some help on this, but I need some more dirt, so to speak.

    I’ve seen Field Pack fieldtypes and Matrix used with SafeCracker before, so we should be able to get it sorted out.

    However, can you tell me the version numbers of what you are using? ExpressionEngine, Matrix, etc?

    And, your SafeCracker template code so we can troubleshoot it.

    Thanks!

    I look forward to helping you with this.

  • #3 / Jun 28, 2012 11:29am

    Paul_B

    86 posts

    Hi Dan

    Everything’s bang up to date (as of posting!) - EE v2.5.2, Matrix is v2.4.1 and Switch is 1.0.4

    I also have a new problem with a safecracker file field! Because this is an MSM site I don’t think that the siteB field knows where to look for the images - I get this error:

    “The selected Upload Directory for a SafeCracker File field no longer exists.”

    Do I have to set a site=”” parameter for any fields?

    The safecracker code is pretty lengthy, I’m going to edit it to just the pertinent bits:

    {exp:safecracker id="job-post" channel="jobs-opps" return="jobs-opportunities/post/success/ENTRY_ID" site="default_site" datepicker="no" include_jquery="no" class="nice"}
     <!-- problem field 1, Safecracker File-->
      <div class="row">
       <div class="four columns"><label for="job-image">Logo / image (if applicable)</label></div>
       <div class="eight columns">{field:job-image}</div>
      </div>
     <!-- problem field 2, Matrix-->
      <div class="row">
       <div class="four columns"><label for="job-multi-event">Multiple dates/venues?</label><br>Click the '+' icon to add another row</div>
       <div class="eight columns">{field:job-multi-event}</div>
      </div>
     <!-- problem field 3, P&T Switch-->
      <div class="row">
          <div class="ten columns"><label for="job-syndicate">We can also post listings on partner websites that offer career advice to specific sectors. If your listing is relevant, would you like us to promote it on these sites?</label></div>
       <div class="two columns">
        {field:job-syndicate}
          </div>
      </div>
    {/exp:safecracker}
  • #4 / Jun 29, 2012 5:21pm

    Dan Decker

    7338 posts

    Hi Paul,

    Did you duplicate channels and entries when you created your second site?

    Cheers,

  • #5 / Jun 29, 2012 6:00pm

    Paul_B

    86 posts

    No, this is a different site that I’m pulling some data across to from the original site fo a shared section, it has different channels & fields

  • #6 / Jun 30, 2012 2:53am

    Paul_B

    86 posts

    Is there a pro-support forum? I seem to remember something about a paid-for quick response service… I need to get this working and with one response a day at best we’re not going to have this fixed until July.. 😊

  • #7 / Jul 02, 2012 3:30pm

    Dan Decker

    7338 posts

    Hi Paul,

    Is there a pro-support forum? I seem to remember something about a paid-for quick response service… I need to get this working and with one response a day at best we’re not going to have this fixed until July.. 😊

    We promise 2 business day response times during the business week. I am sorry for your frustration, and I’m sure you didn’t mean to be correct in your assessment.

    I can’t say exactly what is on the horizon for support, but it won’t be a “pro-forum” 😉

    No, this is a different site that I’m pulling some data across to from the original site fo a shared section, it has different channels & fields

    I’d like to get us in for a closer look. Be on the lookout for an email from EllisLab.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases