I've uploaded a fix for this bug, a way to break out of the infinite loop.

So, no need to set the "easy fix" variable I suggested earlier, unless you otherwise need it. BTW what it does is documented here:

  http://www.pmwiki.org/wiki/Cookbook/Attachtable#references

Petko

---
Change log     :  http://www.pmwiki.org/wiki/PmWiki/ChangeLog
Release notes  :  http://www.pmwiki.org/wiki/PmWiki/ReleaseNotes
If you upgrade :  http://www.pmwiki.org/wiki/PmWiki/Upgrades


On 2017-07-07 00:35, Monte Padget wrote:
That worked!

I was just trying an old version I still had locally and it is working
there and I have more than 8 pages in the group.

The infinite loop makes sense, I had set $EnableDiag = 1; and was
getting a memory error on the server. On my local I was getting a 30
second timeout.

Thank you,

Monte


________________________________
From: pmwiki-users <pmwiki-users-boun...@pmichaud.com> on behalf of
Petko Yotov <5...@5ko.fr>
Sent: Thursday, July 6, 2017 4:21 PM
To: Pmwiki Users
Subject: Re: [pmwiki-users] Cookbook Recipe Attachtable problem

There is an infinite loop somewhere when a markup directive called by
MarkupToHTML calls MarkupToHTML itself (attachtable.php line 169). To
the server quickly runs out of memory with a fatal PHP error or a 500
Internal Server Error, or with 503 Service Unavailable. On production
servers you may not see the error message but a blank page.

This fixes it, in config.php, before the "switch" line:

   $AttachtableProperReferenceLookupMaxPages = 0;

This way Attachtable will use its own function to search for file links,
instead of calling MarkupToHTML. This is the default setting if there
are more than 8 pages in your group. I assume most people have more
pages and have not noticed the bug.

Petko


_______________________________________________
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to