01130: Pagelist evaluation crash on large lists

Summary: Pagelist evaluation crash on large lists
Created: 2009-08-03 22:29
Status: Closed. No bug. Replied
Category: Bug
From: Syv
Assigned:
Priority: 4
Version: 2.2.4
OS: Linux Centos 4.7/Apache 2/php 4.3.9

Description: My Site.LocalTemplates has:

[[#fotonews]]

(:div:)
>>lrindent round frame<<  
(:include {=$FullName} self=0 lines=4:)
[[<<]][[<<]]
>><<  

%right% [[{=$FullName} | {=$Titlespaced}: click here to read more...]]
(:divend:)

----
[[<<]]

[[#fotonewsend]]



{=$Titlespaced}: click here to read more...



The lrindent, round and frame come from wikistyleplus.

The pagelist in the Category.GroupFooter for the categories is:

----
[--'''{*$:Summary}'''--]
(:pagelist link={*$FullName} fmt=#fotonews:)

Pagelist evaluation crash on large lists

  • 00028 . . . by simon: organise not a typo (±0)
  • 01413 . . . by gnuzoo: fix spelling errs (-1)
  • 01403 . . . by gnuzoo: fix spelling errs (-3)
  • 00569 . . . by gnuzoo: fix spelling err (-1)



Recent Changes: click here to read more...



and it works properly for about 45 to 50 articles, after that I get:

Lightroom.Shortcut-keys-for-metadata-keywords self=0 lines=4 

----------------------------------------------------------------------------

Lightroom: Shortcut Keys For Metadata & Keywords: click here to read more... 

----------------------------------------------------------------------------

Lightroom.Shortcut-keys-for-metadata-keywords self=0 lines=4


Lightroom: Shortcut Keys For Metadata & Keywords: click here to read more...


and so on until the end of the list, but the links "page name + click here to read more..." are correct. At first I though that it was related to the skin skittlish, but the same happens with the PmWiki skin.

The same thing also happens with PmWiki's own teasers. I have counted, it occurs on page #49 with Teasers.

Thanks
syv@911networks.com

HansB August 04, 2009, at 03:39 PM: By default Pmwiki allows only maximum 50 page includes. Your template uses the (:include .... :) markup, so you should set the maximum higher in config.php, for instance

$MaxIncludes = 200;

Reference: LayoutVariables#MaxIncludes

Array
(
    [post_max_size] => 64M
    [$_POST keys] => 
    [$_REQUEST keys] => n
    [$_SERVER] => Array
        (
            [CONTEXT_DOCUMENT_ROOT] => /home/pmwiki/public_html
            [CONTEXT_PREFIX] => 
            [DOCUMENT_ROOT] => /home/pmwiki/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTPS] => on
            [HTTP_ACCEPT] => */*
            [HTTP_ACCEPT_ENCODING] => gzip, br, zstd, deflate
            [HTTP_HOST] => www.pmwiki.org
            [HTTP_REFERER] => http://www.pmwiki.org/wiki/PITS/01130
            [HTTP_USER_AGENT] => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
            [HTTP_X_HTTPS] => 1
            [PATH] => /bin:/usr/bin
            [PHP_INI_SCAN_DIR] => /opt/cpanel/ea-php70/root/etc:/opt/cpanel/ea-php70/root/etc/php.d:.
            [QUERY_STRING] => n=PITS%2f01130
            [REDIRECT_HTTPS] => on
            [REDIRECT_QUERY_STRING] => n=PITS%2f01130
            [REDIRECT_SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/01130
            [REDIRECT_SCRIPT_URL] => /wiki/PITS/01130
            [REDIRECT_SSL_TLS_SNI] => www.pmwiki.org
            [REDIRECT_STATUS] => 200
            [REDIRECT_UNIQUE_ID] => afRp-SfQtkI2YnBVWHtewgAAAJY
            [REDIRECT_URL] => /wiki/PITS/01130
            [REMOTE_ADDR] => 216.73.216.25
            [REMOTE_PORT] => 51658
            [REQUEST_METHOD] => GET
            [REQUEST_SCHEME] => https
            [REQUEST_URI] => /wiki/PITS/01130
            [SCRIPT_FILENAME] => /home/pmwiki/public_html/index.php
            [SCRIPT_NAME] => /index.php
            [SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/01130
            [SCRIPT_URL] => /wiki/PITS/01130
            [SERVER_ADDR] => 23.254.203.248
            [SERVER_ADMIN] => webmaster@pmwiki.org
            [SERVER_NAME] => www.pmwiki.org
            [SERVER_PORT] => 443
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [SSL_TLS_SNI] => www.pmwiki.org
            [TZ] => America/Los_Angeles
            [UNIQUE_ID] => afRp-SfQtkI2YnBVWHtewgAAAJY
            [PHP_SELF] => /index.php
            [REQUEST_TIME_FLOAT] => 1777625593.61
            [REQUEST_TIME] => 1777625593
            [argv] => Array
                (
                    [0] => n=PITS%2f01130
                )

            [argc] => 1
        )

)