Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • nick mortensen Friend
    #197254

    I was having a struggle installing JA Sugite on my local installation of MAMP – sing the MAMP PRO Version 3.0.5 and PHP Version 5.5.10.

    The error message read:

    <blockquote>The most recent request was denied because it contained an invalid security token. Please refresh the page and try again.</blockquote>

    Tried and tried until I found a fix, which I will include here for posterity, lest anyone else have to endure such frustration.

    In the file YOURINSTALL/libraries/joomla/filter/input.php on or about on line 707 we see an instance of a fix added by joomlart to help with a bug in wamp 1.8.3.3 – as is explained within the comments.

    You’ll have to replace the Joomlart Added Code of:

    $source = preg_replace('/&#(d+);/me', "utf8_encode(chr(\1))", $source); // decimal notation
    $source = preg_replace('/&#x(+);/mei', "utf8_encode(chr(0x\1))", $source); // hex notation

    With the Following Code:

    $source = preg_replace_callback('/&#x(d+);/mi', function($m){return utf8_encode(chr('0x'.$m[1]));}, $source); // decimal notation
    $source = preg_replace_callback('/&#x(+);/mi', function($m){return utf8_encode(chr('0x'.$m[1]));}, $source);// hex notation

    Seems to be a fix that is used more frequently these days as the “e” modifier has been deprecated in php 5.5.10 (possibly earlier). I know I ran into the same problem and fix when I added the component Fabrik to a previous install of JA Appolio last week.

    The following is the link to the thread on the Forum at joomla.org regarding this issue. This is where I found the fix, but wanted to include it here and let everyone know the fix is still good in late April of 2014.
    http://forum.joomla.org/viewtopic.php?f=707&t=768918&start=0

    MoonSailor Friend
    #533065

    @nickmortensen : Thanks you for your suggestions.

    <blockquote>
    In the file YOURINSTALL/libraries/joomla/filter/input.php on or about on line 707 we see an instance of a fix added by joomlart to help with a bug in wamp 1.8.3.3 – as is explained within the comments.
    </blockquote>

    It’s bug of joomla quickstart install and http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=29944

    <blockquote>The following is the link to the thread on the Forum at joomla.org regarding this issue. This is where I found the fix, but wanted to include it here and let everyone know the fix is still good in late April of 2014.
    http://forum.joomla.org/viewtopic.ph…768918&start=0</blockquote>

    We’ll updated it soon.

    Thanks again.

    teddypetcu2 Friend
    #536992

    it works… thank you

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 3 voices, and was last updated by  teddypetcu2 10 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum