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.

strange REL output instead of an image

June 21, 2007 2:55am

Subscribe [2]
  • #1 / Jun 21, 2007 2:55am

    ussher

    14 posts

    Hello,

    I have just migrated a live website to my testing server using the insrtuctions found here:
    http://expressionengine.com/knowledge_base/article/how_do_i_move_ee_to_another_server/

    I ran a search and replace on the SQL file to replace all the origional sites URL
    http://happyraft.com/
    with my demo sites url
    http://hostsaba.com/site/

    and did the same with the local server addresses. 
    I then ran a search and replace on all the files before uploading them to my test server. 

    I thought this would mean that i would have a duplicate of the origional site However i am experiencing some problems.

    1.) This type of string is being output instead of an image. {REL[407][type_photos]rgGSsT23REL}
    CAN BE SEEN HERE: http://hostsaba.com/site/en/?/tours/

    2.) The booking form has stopped working.
    CAN BE SEEN HERE: http://hostsaba.com/site/en/?/booking/
    origional is here: http://happyraft.com/en/booking/

    The templates in the origional and the testing server are the same So i if anybody could offer suggestions as to what i should try next to get them going that would be great.

    Thanks

    Ussher

  • #2 / Jun 21, 2007 10:00am

    Robin Sowell

    13255 posts

    First I’d double check your system/config.php file- make certain any paths in there have been updated to the new server.  If you’ve hit everything in the db, that’s the other spot to look.  Then- I’d go in and clear out the system/cache folder manually and double check that it is chmod 777.  Then I’d go to ‘Admin- Utilities- Clear cached data’ and clear those caches as well.  (That [REL bit is placeholder data- usually used with related entries.)

    Let’s see if that helps- and while it sounds like you hit all of the major stuff, you might want to double check this Kblog entry on moving to a new server.

    And as to the form- didn’t want to test it without asking first.  But- how is it not working?  And can you send mail via the communicate tab?  That’s a quick way to make sure mail in general is working.

  • #3 / Jun 22, 2007 12:15am

    ussher

    14 posts

    system/config.php - OK
    clear cache manually - OK
    (contents of hostsaba.com/site/cms/cache is: index.html, no sub directories)
    check cache is 777 - OK
    ‘Admin- Utilities- Clear cached data’ - OK

    I re-read the KBlog entry and had a look around the admin area for any left over happyraft.com to change to hostsaba.com but could not locate any. However I am very new to expression engine and admit that I dont know exactly where these places are
    General Configuration,
    Weblog Management,
    File Upload Preferences,
    Global Weblog Preferences,
    Membership Preferences,
    Captcha Preferences,
    Emoticon Preferences.

    I just looked arount the ‘Admin’ tab for any entries but could not locate any. (hoping that i got them all.)

    You are welcome to submit any form on the hostsaba.com site as it is just for me to use for testing and getting to know the system.
    The problems with the form are these.
    * when all the fillable fields are filled in and submitted an error is displayed ‘Your section entry must have a title.’
    * The ‘Tour Start Time’ dropdown field does not contain the tour times as it does in the origional.
    * The date selector is not visible on the demo site.

    The correct time field looks like this

    
        <label for="field_id_38">Tour Start Time</label>
    
        <select disabled="disabled" name="field_id_38" id="field_id_38" size="1">
            <option value="" selected="selected"> </option>
            <optgroup id="tour_3" class="tourtimes" label="Oboke Whitewater Rafting Tour (Half Day)">
    <option value="8">Morning Start (10:00 - 13:00)</option>
    <option value="9">Afternoon Start (14:00 - 17:00)</option>
    
            </optgroup>
            <optgroup id="tour_2" class="tourtimes" label="Koboke Whitewater Rafting Tour (One Day)">
    <option value="10">Morning Start (09:00 - 16:30)</option>
            </optgroup>
            <optgroup id="tour_4" class="tourtimes" label="Musasabi Canyoning Tour (Half Day)">
    <option value="8">Morning Start (10:00 - 13:00)</option>
    <option value="9">Afternoon Start (14:00 - 17:00)</option>
    
            </optgroup>
            <optgroup id="tour_5" class="tourtimes" label="Oboke Combo Tour (One Day)">
    <option value="37">Morning Start (Day 1: 10:00 - 1:00, Day 2: 14:00 - 17:00)</option>
            </optgroup>
            <optgroup id="tour_6" class="tourtimes" label="Koboke Combo Tour (One & Half Day)">
    <option value="11">Morning Start (Day 1: 09:00 - 16:30, Day 2: 10:00 - 13:00)</option>
    <option value="12">Afternoon Start (Day 1: 14:00 - 17:00, Day 2: 09:00 - 16:30)</option>
    
            </optgroup>
            <optgroup id="tour_7" class="tourtimes" label="Ultimate Combo Tour (Two Day)">
    <option value="13">Morning Start (Day 1: 10:00 - 17:00, Day 2: 09:00 - 16:30)</option>
            </optgroup>
        </select>
        <input name="field_ft_38" value="none" type="hidden">
    

    The test site is missing this table.  the test site looks like this

    
        <label for="field_id_38">Tour Start Time</label>
    
        <select name="field_id_38" id="field_id_38" size="1">
            <option value="" selected="selected"> </option>
            <optgroup id="tour_3" class="tourtimes" label="Oboke Whitewater Rafting Tour (Half Day)">
    </optgroup>
            <optgroup id="tour_2" class="tourtimes" label="Koboke Whitewater Rafting Tour (One Day)">
    </optgroup>
            <optgroup id="tour_4" class="tourtimes" label="Musasabi Canyoning Tour (Half Day)">
    
    </optgroup>
            <optgroup id="tour_5" class="tourtimes" label="Oboke Combo Tour (One Day)">
    </optgroup>
            <optgroup id="tour_6" class="tourtimes" label="Koboke Combo Tour (One & Half Day)">
    </optgroup>
            <optgroup id="tour_7" class="tourtimes" label="Ultimate Combo Tour (Two Day)">
    </optgroup>
        </select>
        <input name="field_ft_38" value="none" type="hidden">
    

    The code to create both of these entries is identical in the templates area. It looks like this

    
        <label for="field_id_38">{if site_lang == "en"}Tour Start Time{if:elseif site_lang == "ja"}午前午後を選択{/if}</label>
    
        <select name="field_id_38" id="field_id_38" size="1">
            <option value="" selected="selected"> </option>
    {exp:weblog:entries weblog="tours" orderby="date" sort="asc" dynamic="off" disable="categories|member_data|pagination|trackbacks" return="{site_url}booking/success"}        <optgroup id="tour_{entry_id}" class="tourtimes" label="{tour_name_{site_lang}}">
    {related_entries id="tour_times"}<option value="{entry_id}">{line_{site_lang}}</option>
    {/related_entries}        </optgroup>
    {/exp:weblog:entries}    </select>
        <input type="hidden" name="field_ft_38" value="none" />
    

    So if the code is identical then this leaves me woundering where to look for why the output is different.  Maybe the datbase.. but What am i looking for?

    The images not displaying is not so important since it is a testing site and they are working on the main site.  But i would like to get the bookings working as i have some things to do there.

    Thanks for your help

    I see that {/related_entries} here too. This could possibly be the source of the problem

  • #4 / Jun 22, 2007 11:39am

    Derek Allard

    3168 posts

    You’ll be able to find General Configuration, Weblog Management, File Upload Preferences, Global Weblog references, Membership Preferences, Captcha Preferences, Emoticon Preferences and all other things in the documentation, and specifically if you look through The admin page.  Many of those are actually under Admin > System Preferences.

    Its difficult to tell at this point if it was an installation error, a configuration error, or something else going on.  If going through those doesn’t fix it up, you may want to try a clean EE install on your dev machine first just to make sure EE runs there cleanly.

  • #5 / Jun 23, 2007 12:47am

    ussher

    14 posts

    Hi,

    I know i have made a mistake somewhere. Thanks for helping me track it down.

    I think the mistake is the address where REL is looking for its connection.

    This is what i have found when trying to locate that connection.

    Start by taking one of the REL that appear onscreen instead of the image on this page:
    http://www.hostsaba.com/site/en/

    weblog entry:
    HappyRaft has two great whitewater rafting…............ has this REL
    {REL[407][type_photos]VFn7ZotEREL}

    When i search the database for 407 the weblog entry appears in:
    ee_weblog_data
    entry_id 15
    weblog_id 10
    field_id_61 : 407 (I dont know what field_id_61 is a container for guessing REL)

    In the table: ee_relationships is this entry
    rel_id 407
    rel_parent_id 15
    rel_child_id 80
    rel_type blog
    rel_data
    reverse_rel_data

    I know that where {REL[407][type_photos]VFn7ZotEREL} is displayed,
    should be: /images/gallery/thumbs/mark.jpg

    mark.jpg appears in:
    ee_weblog_data
    entry_id 80
    weblog_id 9
    field_id_52 mark.jpg


    This trail establishes how the photo is linked to the weblog but does not lead me to the incorrectly set path. I could not locate
    /images/gallery/thumbs in the database at all.

    Im guessing that maybe it could be because i have located the site in a directory where as the origional site is in the root directory.

    Before installing the happyraft site i did install the core version of expressionengine and as much as i played with it appeared to work correctly.

    Ill keep looking.

    Thanks for the assistance.

  • #6 / Jun 23, 2007 12:50am

    ussher

    14 posts

    PS I checked the settings and i think my version of expression engine has been altered by the creator of the site as some of the areas dont line up with the documentation. I checked where i could.
    CP Home ›  Admin ›  System Preferences ›  General Configuration OK
    manual says Admin > Weblog Administration > Weblog Management but i dont have this section in my ‘admin’. maybe means
    CP Home ›  Admin ›  Section Administration ›  Section Management > Select (Section Name)> Path Settings OK
    manual says Admin > File Upload Preferences but i dont have this section i have found the same named section here:
    CP Home ›  Admin ›  Section Administration ›  File Upload Preferences OK

  • #7 / Jun 23, 2007 10:34am

    Derek Allard

    3168 posts

    EE is at 1.6 now.  Is your version 1.6?  If not, try an upgrade and then tackle it again.  Upgrading is a pretty straightforward process, but make sure you follow the update instructions and note in particularly the 1.6 specific notes.

  • #8 / Jun 24, 2007 5:47am

    ussher

    14 posts

    Thanks for the help but upgrading is not an option.  I have to work with the same version as mark is using on his server.

    The version he is using is version ExpressionEngine 1.5.2

    I have 90% useability so ill just have to live with this to try to fix his problems.

    Thanks for your time.  Somewhere amongst the program is a way to get it going and ill probably trip over it when looking for other things.

    Cheers.

  • #9 / Jun 24, 2007 10:55am

    Robin Sowell

    13255 posts

    Hm- I’d try hard to see if you can both upgrade.  I know there were quite a few tweaks to related entries- some to address the result you’re seeing above- in various 1.5.2 builds.  So it could be it’s fixed on the latest 1.5.2.  And then 1.6 has added quite a bit. 

    Realize it may not be something you can do immediately- but if you’re running into a ‘must solve’ problem, and upgrade is definitely going to be the first step.

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

ExpressionEngine News!

#eecms, #events, #releases