1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 What's going on? Illegal String Offset

Discussion in 'Troubleshooting and Problems' started by 3rd AnGle, Jan 24, 2013.

  1. 3rd AnGle

    3rd AnGle Well-Known Member

    What kind of a sick error is this? I don't know if this caused the problem..We moved from one server to another.. and had imported the sql dump.

  2. 3rd AnGle

    3rd AnGle Well-Known Member

    this error is shown above the header in each of the thread view..
  3. Brandon Sheley

    Brandon Sheley Well-Known Member

  4. 3rd AnGle

    3rd AnGle Well-Known Member

    oh no... looks like trouble. I am still on xF 1.1.2 and i don't know what version of PHP my host is running. Probably PHP 5.4. Looks like i have gotta wait.

    And thanks for your help Brandon.
  5. Chris D

    Chris D XenForo Developer Staff Member

    In XF 1.1.3 the error still shows but only if debug mode is switched on.

    So the quickest solution maybe to upgrade to XF 1.1.3.

    There's not many reasons to not to. It wasn't exactly ground-breaking in terms of new functionality and breaking changes so the chance that anything else will break as a result is pretty slim.
    Jake Bunce likes this.
  6. Luke F

    Luke F Well-Known Member

    My live site runs 1.1.2, it's just as easy to patch it for 5.4 support
  7. 3rd AnGle

    3rd AnGle Well-Known Member

    and how is that done Sir?
  8. Luke F

    Luke F Well-Known Member

    I don't think it's any different from 1.1.3 (not sure if the 'filename' error also occurs in 1.1.3)
    3rd AnGle likes this.
  9. 3rd AnGle

    3rd AnGle Well-Known Member

    ok.. i followed Ragtek's solution and removed this "<xen:set var="$attachment"></xen:set>" from Attachment editor template... and yes everything "looks" normal now :D Whether it affects the functionality or not.

    <Edit: Thanks everyone for the help>
  10. 3rd AnGle

    3rd AnGle Well-Known Member

    i running into trouble here again.. looks like the problem is with the UserAlbums add-on.
    Anyone one knows what kind of edit i have to make again? I have looked up the xfr_useralbums_add_images template but not sure what should be edited..

    Help would be highly appreciated
  11. 3rd AnGle

    3rd AnGle Well-Known Member

    This is the template i am refering to
    <xen:title>{xen:phrase xfr_useralbums_add_delete_images}</xen:title>
    <xen:h1>{xen:phrase xfr_useralbums_add_delete_images}</xen:h1>
        <xen:breadcrumb source="$breadCrumbs" />
    <form action="{xen:link 'useralbums/save-images', $album}" method="post"
        class="xenForm AutoValidator"
            <dl class="ctrlUnit">
                <dd><xen:include template="xfr_useralbums_image_upload_button" /></dd>
            <xen:if is="{$imageParams}">
                <dl class="ctrlUnit AttachedFilesUnit">
                    <dt><label for="ctrl_uploader">{xen:phrase xfr_useralbums_uploaded_images}:</label></dt>
                    <dd><xen:include template="xfr_useralbums_image_editor" /></dd>
        <dl class="ctrlUnit submitUnit">
                <input type="submit" value="{xen:phrase save}" accesskey="s" class="button primary" />
        <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
    Any idea which line could probably be removed to circumvent the issue?
  12. cclaerhout

    cclaerhout Well-Known Member

    You might need to check the include template (xfr_useralbums_image_editor) as well and may be more in particular this part of the code:
    <xen:set var="$image"></xen:set>
    Edit: if it doesn't work, you should directly post in this addon thread to notice the problem to the developer.

    Edit2: you should check also this template: xfr_useralbums_image_editor_image
    I would make actually more sense with your error message.
    Jake Bunce and 3rd AnGle like this.
  13. 3rd AnGle

    3rd AnGle Well-Known Member

    removed this <xen:set var="$image"></xen:set>

    and it worked ... Thanks for your help Cedric
    cclaerhout and Jake Bunce like this.

Share This Page