Fixing Fontis’ Parse Error when using Direct Deposit

In: Feeling guru|Techie Daw

7 Oct 2013

Is your checkout page failing whenever you enable Fontis’ Direct Deposit payment option? Try checking your logs to see if there’s a similar error like the one below:

Parse error: parse error in /app/design/frontend/base/default/template/fontis/australia/ payment/directdeposit/form.phtml on line 42

Some would ask you to check the file permission while others would tell that you need to turn off compilation. If you did all these already and still see the error, I would suggest for you to check if short_open_tag is enabled in your php.ini file. This setting enables the syntax <? ... ?> to work instead of typing <?php … ?>.

Upon checking the form.phtml file, the code in line 31 would show that it is using the short_open_tag (see code below) so you must change it from:


to this:

<?php endif;?>

Refresh your page to see the now working Direct Deposit block.

About the author

Richard Feraro is a Magento Enterprise Certified developer from Manila, Philippines with 14 years of solid open-source development experience using Linux, Apache, MySQL & PHP.

1 Response to Fixing Fontis’ Parse Error when using Direct Deposit



May 21st, 2014 at 11:02 pm

Well done Richard. I’d got as far as opening up looking through the logs and identifying the form.phtml file but then thought I’d have a quick google and there was your answer. Worked like a charm. Thanks!

Comment Form

About my blog

This blog is targeted towards all levels of developers and also designers. Various topics are discussed such as Magento, PHP & MySQL, jQuery, WordPress, CSS and HTML.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 5,249 other subscribers

WordPress + Magento

Recent Trackbacks



All entries in this blog are my opinion and don't necessarily reflect the opinion of my employer or my mom.