
...The layout goes fobar, because PHx crashes when there are many pictures on a single page. Things you can do to fix it is to make custom templates that don’t use PHx or use it lightly. Or enable paging in thumbnail view so there are less pictures per page. Or install PHx as plugin and increase the maximum passes value.
<li>
<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox[image[+maxigallery.pageinfo.id+]set]" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" title="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
</a>
<p style="width: [+maxigallery.picture_width_thumb+]px;">
[+maxigallery.picture.title:htmlent+]
</p>
</li>
[+maxigallery.managebutton:isnot=``:then=` <center>[+maxigallery.managebutton+]</center> <br /> `+] [+maxigallery.childgalleries:isnot=``:then=` <div class="childscontainer"> <ul class="thumbs"> [+maxigallery.childgalleries+] </ul> </div> `+] [+maxigallery.pagenumbers:isnot=``:then=` [+maxigallery.pagecount:isnot=`1`:then=` <div class="pagenumbers"> [+maxigallery.currentpage:is=`1`:then=` [+maxigallery.strings.previous+] | `:else=` <a href="[+maxigallery.previous_page_url+]">[+maxigallery.strings.previous+]</a> | `+] [+maxigallery.pagenumbers+] [+maxigallery.currentpage:is=`[+maxigallery.pagecount+]`:then=` [+maxigallery.strings.next+] `:else=` <a href="[+maxigallery.next_page_url+]">[+maxigallery.strings.next+]</a> `+] </div> `+] `+] <div class="thumbscontainer"> <ul class="thumbs"> [+maxigallery.pictures+] </ul> </div>