<![CDATA[ ifEval edits to become PHP7 ready - My Forums]]> https://forums.modx.com/thread/?thread=104268 <![CDATA[ifEval edits to become PHP7 ready]]> https://forums.modx.com/thread/104268/ifeval-edits-to-become-php7-ready#dis-post-560812
I am using the ifEval addon in my site and noticed that following an upgrade to PHP7 on the server - the pages where I use ifEval server 500 error and display a blank white screen. In the apache log - it points to the cache folder version of this plugin - so think its the fact that ifEval (due to its age) is not PHP7 compatible... ?

So would anyone be able to edit ifEval (https://modx.com/extras/package/ifeval) and make tweaks to make it PHP7 compliant/ready?

Cheers,

dubbs.]]>
dubbs Aug 16, 2018, 07:52 AM https://forums.modx.com/thread/104268/ifeval-edits-to-become-php7-ready#dis-post-560812
<![CDATA[Re: ifEval edits to become PHP7 ready]]> https://forums.modx.com/thread/104268/ifeval-edits-to-become-php7-ready#dis-post-560848 http://php.net/manual/en/function.eval.php I think output modifiers sound like a much safer option.

I hope switching it over it wasn't too much work!]]>
andytough Aug 16, 2018, 11:44 PM https://forums.modx.com/thread/104268/ifeval-edits-to-become-php7-ready#dis-post-560848
<![CDATA[Re: ifEval edits to become PHP7 ready]]> https://forums.modx.com/thread/104268/ifeval-edits-to-become-php7-ready#dis-post-560844 Quote from: dubbs at Aug 16, 2018, 02:14 PM
Quote from: andytough at Aug 16, 2018, 10:53 AM
Could you use MODX Output Modifiers instead? https://docs.modx.com/revolution/2.x/making-sites-with-modx/customizing-content/input-and-output-filters-(output-modifiers)

Possibly yes, but was hoping to keep things as they are with an update to the core PHP for ifEval if someone is available to make the edits?

Have replaced the usage of ifEval with output modifiers - so thanks for the suggestion @andytough]]>
dubbs Aug 16, 2018, 09:41 PM https://forums.modx.com/thread/104268/ifeval-edits-to-become-php7-ready#dis-post-560844
<![CDATA[Re: ifEval edits to become PHP7 ready]]> https://forums.modx.com/thread/104268/ifeval-edits-to-become-php7-ready#dis-post-560822 Quote from: andytough at Aug 16, 2018, 10:53 AM
Could you use MODX Output Modifiers instead? https://docs.modx.com/revolution/2.x/making-sites-with-modx/customizing-content/input-and-output-filters-(output-modifiers)

Possibly yes, but was hoping to keep things as they are with an update to the core PHP for ifEval if someone is available to make the edits?]]>
dubbs Aug 16, 2018, 02:14 PM https://forums.modx.com/thread/104268/ifeval-edits-to-become-php7-ready#dis-post-560822
<![CDATA[Re: ifEval edits to become PHP7 ready (Best Answer)]]> https://forums.modx.com/thread/104268/ifeval-edits-to-become-php7-ready#dis-post-560815 https://docs.modx.com/revolution/2.x/making-sites-with-modx/customizing-content/input-and-output-filters-(output-modifiers)]]> andytough Aug 16, 2018, 10:53 AM https://forums.modx.com/thread/104268/ifeval-edits-to-become-php7-ready#dis-post-560815