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.

Cannot view safecraker file in MSM child sites

September 19, 2012 7:29am

Subscribe [2]
  • #1 / Sep 19, 2012 7:29am

    jamesaa7

    37 posts

    This is really urgent as this but is live on our site, with 80,000 members!

    EE 2.5.3
    MSM 2.1.4
    PHP 5.3.15

    We use safecracker file type to store and display files / images in a channel entry.

    They work as expected in the parent site (although this only serves as a place to manage content by staff) files can be downloaded, images viewed as expected.

    However nothing appears in the child site, no link or image, the safecracker tag generates nothing. It is just a safecracker tag on its own, it worked perfectly in 2.1 then 2.3.1 and was fine prior to upgrading to 2.5.3. Unfortunately this problem slipped through the net on our test site.

    We tried uploading the old safecracker field code, but with no effect

    Thanks

  • #2 / Sep 19, 2012 9:12am

    jamesaa7

    37 posts

    If anyone else is having this problem, here is some code which you should be able to use as a temp fix for the file downloads. As the url for the file has a {filedir_#} at the start of it, it includes some php to strip it out.

    inside your channel entry tags…

    {exp:query sql="SELECT field_id_NUMBER FROM exp_channel_data WHERE entry_id = '{entry_id}' "}
    <?php
    $rest = substr("{field_id_NUMBER}", 11);
    echo "<a href="http://websitepath/filelocation/">Download</a>";
    ?>
    {/exp:query}

    Support guys not sure if it helps but when writing out the entry from the database the

    https://ellislab.com/asset/images/ent-partner-logo/

    was written as was and not parsed (dont know if this is a clue or as it should be!)

    Thanks

  • #3 / Sep 21, 2012 12:09pm

    Shane Eckert

    7174 posts

    Hey there jamesaa7,

    Please be on the lookout for an email from EllisLab.

    Thank you,

  • #4 / Oct 03, 2012 12:44pm

    jamesaa7

    37 posts

    Thanks - details on there way

  • #5 / Oct 03, 2012 9:52pm

    Shane Eckert

    7174 posts

    Hey jamesaa7,

    Thanks!!!

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

ExpressionEngine News!

#eecms, #events, #releases