From: Steve W. <sw...@wc...> - 2000-12-02 19:30:03
|
Thanks, I get the same error you do (Stack bounds exceeded in SetHTMLOutputMode). Most puzzling. The page is saved though. I'll try to fix this today. sw On Sat, 2 Dec 2000, Yann Forget wrote: > Steve Wainstead a écrit : > > > > Yes, if you could send the page source, that would tell us a lot... > > Here it is : > > #!/bin/sh > > ####################################################### > # syncmail_gore_ynternet_sn.sh > # > # version 0.01 (merci d'augmenter ce numero de version > # lors de toute modification, puis de > # m'informer de la modif) > # > # le 23/11/2000 > # > # ka...@yn... > # ra...@r4... > # > ######################################################## > # > # But: permettre l'echange de mail: > # - de Dakar vers le monde (dakar_to_world()) > # - de Lausanne (MX) vers Dakar > # > # Moyens: > # - gore.ynternet.sn recoit une ip dynamique, > # gnudip (gdipc.pl) la fixe dans le nameserver > # principal du domaine ynternet.sn > # - > # > # le TTL pour la zone ynternet.sn est de 60 (sec) > # je prevois donc une marge de 60 sec en plus > # apres quoi on peut faire le etrn pour lancer > # l'envoi du mail depuis Lausanne vers ici (gore.ynternet.sn) > # > # > # BUGS: le TTL est code ici, alors qu'il devrait etre > # recupere automatiquement ... le jour ou nous > # changerons ce parametre, ca va planter. > > logs_gnudip=/var/log/gnudip.log > logs_etrn=/var/log/etrn.log > > function attente_connexion { > echo "attente connexion (45 sec)" > sleep 45 # beark > } > > function attente_ttl { > echo "attente expiration TTL (60+20 sec)" > sleep 80 # mouarf > } > > function mail_sortant { > > echo "declanchement envoi du mail sortant" > killall -ALRM qmail-send # flush mqueue > } > > function mail_entrant { # ne fonctionne pas > > echo "declanchement reception du mail entrant (Lausanne)" > echo -n "$(date) " >> $logs_etrn > /usr/bin/expect -f /root/scripts/etrn.expect \ > >> $logs_etrn \ > 2>> $logs_etrn > } > > function adresse_ip { > > echo -n "mise a jour adresse ip" > localip=$(/sbin/ifconfig \ > | grep ppp0 -A 1| tail -1 \ > | tr ' ' '\n' | grep addr\ > | cut -d: -f2) > echo "($localip)" > > echo -n "$(date) " >> $logs_gnudip > /root/scripts/gdipc.pl \ > >> $logs_gnudip \ > 2>> $logs_gnudip > } > > > function monitoring() { > > echo -e "\n \ > \n\n$(/usr/bin/nslookup gore.ynternet.sn)\n \ > ETRN\n\n$(tail -8 $logs_gnudip) \ > \n\n$(tail -8 $logs_etrn)" \ > $(/sbin/ifconfig)\ > | /usr/sbin/sendmail ka...@ka... > } > > attente_connexion > adresse_ip > attente_ttl > mail_sortant > mail_entrant > monitoring > ...............................ooo0000ooo................................. Hear FM quality freeform radio through the Internet: http://wcsb.org/ home page: www.wcsb.org/~swain |
From: Steve W. <sw...@wc...> - 2000-12-02 19:35:49
|
As a temporary fix, if you indent all the lines in the file with a space, it will save OK, and it will render as well (as plain text, which for source code is probably what you want. sw ...............................ooo0000ooo................................. Hear FM quality freeform radio through the Internet: http://wcsb.org/ home page: www.wcsb.org/~swain |
From: Steve W. <sw...@wc...> - 2000-12-02 19:50:21
|
OK, I figured it out. This sh script you want to display contains lines like this: ####################################################### PhpWiki tries to interpret that as a line in a numbered list argument, i.e. it wants to render this as: 1. <no text here though> In fact it wants to render this as a numbered list 49 levels deep! This exceeds a hardcoded limit in the little stack class we use to track how many levels deep we are in nested lists like <UL>, <OL>, and <DT>. On line 327 in lib/stdlib.php, the limit is hardcoded to 10: if ($stack->cnt() > 10) { I just thought noone would ever want to nest lists that deep... and that assumption still holds true, since you don't want a numeric list, you want a comment line! This isn't quite a "bug" per se, more of a design limitation. What troubles me is that it seems obvious and intuitive to paste code samples into a Wiki like you did, but you don't want to render it in HTML, you want to render it in <pre></pre> tags. Indenting every line is a pain in the butt. I'll think about how to add this. In fact I know how (token substitution) but I don't know if we ever implemented this... it would probably work the same way we handle URLs. (I'm rambling at this point, so...) The way to deal with this is to indent with spaces like I mentioned before. cheers! sw On Sat, 2 Dec 2000, Steve Wainstead wrote: > > As a temporary fix, if you indent all the lines in the file with a space, > it will save OK, and it will render as well (as plain text, which for > source code is probably what you want. > > sw > > ...............................ooo0000ooo................................. > Hear FM quality freeform radio through the Internet: http://wcsb.org/ > home page: www.wcsb.org/~swain > > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > http://lists.sourceforge.net/mailman/listinfo/phpwiki-talk > ..............................ooo0000ooo................................. Hear FM quality freeform radio through the Internet: http://wcsb.org/ home page: www.wcsb.org/~swain |