Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorstuhartley
    • CommentTimeJul 22nd 2005
     # 1
    I wouldn't call this a bug as its simply a problem that my php isn't the right version.

    html_entity_decode() was introduced in php 4.3.0. I have 4.2.2, so whenever I try to save forum settings I can't, getting an undefined function error instead. I also got the same problem doing an automatic install, and I don't now where else html_entity_decode() might be used.

    I'm guessing this means vanilla has a minimum requirement of php 4.3.0, unless anyone has any nifty workarounds?

    Is this time for me to nag to my host to upgrade php?
    •  
      CommentAuthorlech
    • CommentTimeJul 22nd 2005
     # 2
    Hmmm, I think in php versions pre 4.3.x it was called something else. Perhaps a switch to detect versions and switch to the correct handler to fall back on might be in order here.
    •  
      CommentAuthorlech
    • CommentTimeJul 22nd 2005
     # 3
    But yeah, I'd be nagging my host for the latest stable php 4.x release.
    •  
      CommentAuthorMark
    • CommentTimeJul 22nd 2005
     # 4
    No, don't tell your host to upgrade.

    That is an easy bug to fix, and it will be fixed in the next revision. In the meantime you can fix it yourself by doing this: open up the library/utility.functions.php and add this to the bottom of the page (before the ?>):

    // Create the html_entity_decode function for users prior to PHP 4.3.0
    if (!function_exists("html_entity_decode")) {
    function html_entity_decode($String) {
    $TranslationTable = get_html_translation_table(HTML_ENTITIES);
    $TranslationTable = array_flip($TranslationTable);
    return strtr($String, $TranslationTable);
    }
    }
    •  
      CommentAuthorramsey
    • CommentTimeJul 22nd 2005
     # 5
    Hosts should seriously upgrade to at least 4.3.11 for security concerns, but I digress.
  1.  # 6
    This isnt funny. I definately posted a response to this, cause i put in a funny little quirk about 'teeny' problems.
    •  
      CommentAuthorstuhartley
    • CommentTimeJul 22nd 2005
     # 7
    Wow, this just keeps getting better, thanks mark.

    So how did that quirk go then?
Add your comments
    Username Password
  • Format comments as