[pmwiki-users] asciimath workaround?

David Spitzley dspitzle at wash.k12.mi.us
Thu Oct 25 13:33:57 CDT 2012


That certainly got rid of the error, and my equations still show up.  Thanks!  I don't know what the whole "collision" thing on the cookbook page was about, then...

From: Peter Bowers [mailto:pbowers at pobox.com]
Sent: Thursday, October 25, 2012 2:13 PM
To: David Spitzley
Subject: Re: [pmwiki-users] asciimath workaround?

I think you can just delete the ampersand on line 84 in cookbook/asciimath.php and everything will be perfect.

       $ascii_math =& new ASCIIMathPHP($symbol_arr, $ascii, $MathMLNSAlias);

will become

      $ascii_math = new ASCIIMathPHP($symbol_arr, $ascii, $MathMLNSAlias);

If it works post back to the group with the solution.  If it doesn't work I maintain a plausible deniability... :-)

-Peter
On Thu, Oct 25, 2012 at 4:12 PM, David Spitzley <dspitzle at wash.k12.mi.us<mailto:dspitzle at wash.k12.mi.us>> wrote:
After not visiting my wiki for a while, I've discovered that I'm getting the following PHP warning message:
Deprecated: Assigning the return value of new by reference is deprecated in [DIRECTORY_STRUCTURE]/cookbook/asciimath.php on line 84

I know a reasonable amount about PHP, but have never used the reference mechanism.  There's also a notice on http://www.pmwiki.org/wiki/Cookbook/ASCIIMath-Talk that "This recipe seems to have a collision with with markup like {$pagetextvar}. In other words, it seems to currently be broken, and I can't see how to fix it except to disable that markup in asciimath.php" .  Does that "collision" account for the deprecation warning above?  If so, how would I disable the markup causing the problem?  If not, any suggestions on a workaround?

_______________________________________________
pmwiki-users mailing list
pmwiki-users at pmichaud.com<mailto:pmwiki-users at pmichaud.com>
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20121025/9ab43458/attachment.html>


More information about the pmwiki-users mailing list