-
AuthorPosts
-
nick mortensen Friend
nick mortensen
- Join date:
- September 2014
- Posts:
- 35
- Downloads:
- 18
- Uploads:
- 6
- Thanks:
- 10
- Thanked:
- 11 times in 2 posts
April 30, 2014 at 8:13 pm #197254I 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('/(+);/mei', "utf8_encode(chr(0x\1))", $source); // hex notationWith the Following Code:
$source = preg_replace_callback('/(d+);/mi', function($m){return utf8_encode(chr('0x'.$m[1]));}, $source); // decimal notation
$source = preg_replace_callback('/(+);/mi', function($m){return utf8_encode(chr('0x'.$m[1]));}, $source);// hex notationSeems 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=01 user says Thank You to nick mortensen for this useful post
MoonSailor FriendMoonSailor
- Join date:
- November 2011
- Posts:
- 1106
- Downloads:
- 0
- Uploads:
- 245
- Thanks:
- 89
- Thanked:
- 248 times in 223 posts
May 1, 2014 at 2:45 am #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 Friendteddypetcu2
- Join date:
- December 2012
- Posts:
- 17
- Downloads:
- 31
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
May 28, 2014 at 8:00 pm #536992it works… thank you
-
AuthorPosts
This topic contains 3 replies, has 3 voices, and was last updated by teddypetcu2 10 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum