[Pmwiki-users] Odd bug: Edit mode textarea not "current"

Robin Martin robin_martin
Fri Feb 6 12:13:28 CST 2004


Fantastic, Patrick!  It works fine now.

Thanks a lot,
Robin

On Feb 6, 2004, at 9:54 AM, Patrick R. Michaud wrote:

> Robin and others-
>
> I've been able to duplicate the problem you're seeing in IE 6.  The
> problem is in the flexlayout script--the script isn't sending
> an "Expires:" header on output and so apache is putting a 60-second
> expiration time on the edit page, causing the browser to cache it for
> a minute before reloading or until the user explicitly hits "Reload".
> You can see that this is happening by doing the following:
>
> 1.  Edit a page and save some changes
> 2.  You should be able to observe that the page has your changes
> 3.  Click the "Edit Page" link
> 4.  The text box might show your changes in it, but if it doesn't,
>     then click the back button on your browser and hit "Edit Page"
>     again.  You can keep doing this for about 60 seconds, after
>     which the cached (incorrect) version will expire and the
>     correct version gets loaded.
>
> The problem is that flexlayout.php isn't sending the $HTTPHeaders
> containing the Expires: tag in the Edit page.  This can be fixed
> by changing the lines near the end of the script from:
>
>     $HandleEditFmt = array (
>         &$HTMLStartFmt,
>         &$PageEditFmt,
>         "wiki:PmWiki.EditQuickReference",
>         &$HTMLEndFmt
>     );
>
> to
>
>     $HandleEditFmt = array (
>         "headers:",
>         &$HTMLStartFmt,
>         &$PageEditFmt,
>         "wiki:PmWiki.EditQuickReference",
>         &$HTMLEndFmt
>     );
>
>
> Or, I've taken the liberty of updating the flexlayout.php script that
> is available in the Cookbook--you can just download the new version,
> install it, and all should be well.
>
> Pm
>
>
> On Thu, Feb 05, 2004 at 11:11:23AM -0800, Robin Martin wrote:
>> On Feb 5, 2004, at 11:01 AM, Patrick R. Michaud wrote:
>>
>>> I've heard this occur on systems and we've never been able to locate
>>> the problem.  I've always decided that the problem can be traced to
>>> an incorrectly configured cache or proxy server somewhere.  It's also
>>> worth checking that system clocks are set correctly.
>>>
>>>> Here's a link to see for yourself:
>>>> http://larcdma.sdsu.edu/agendawiki/index.php
>>>
>>> I'll give it a try later and see what I can find.
>>>
>>> Pm
>>
>> Thanks for getting back to me, Patrick.
>>
>> I'm not running any proxies or caching (that I know of) on the server.
>> I also double-checked that the server is syncing correctly with 
>> network
>> time.
>>
>> I'm running OS X Server, if this helps troubleshoot any.
>>
>> Robin
>>




More information about the pmwiki-users mailing list