Start free No card. Free forever level.

Water Smart calculator fixed

The Water Smart calculator was not working. Not slow, not partly working, completely dead for every visitor who opened it. We found the cause and fixed it. The page stores its calculator as custom HTML inside the post itself. WordPress has a habit of rewriting a plain “&&” into an HTML code when it processes…

The GardenBuddy.au Water Smart calculator showing a completed watering result after the fix

On this page

    The Water Smart calculator was not working. Not slow, not partly working, completely dead for every visitor who opened it. We found the cause and fixed it.

    The page stores its calculator as custom HTML inside the post itself. WordPress has a habit of rewriting a plain “&&” into an HTML code when it processes that content for display, and that turned three working conditions inside the calculator’s logic into broken code the browser refused to run. One garbled line was enough to stop the whole script, so nothing on the page calculated anything, not water needs, not growth stage, not the daily litres per plant.

    We rewrote those conditions so WordPress cannot touch them, then tested the calculator in a real browser with a real crop and planting date to confirm it now returns a proper number end to end.

    If you tried Water Smart recently and it just sat there doing nothing, that is why, and it is sorted now. Give it another go on gardenbuddy.au/water-smart/.

    The GardenBuddy.au team

    Get the weekly cheap-to-grow list

    Every Sunday: the biggest supermarket veg price moves across Woolworths, Coles, Aldi and IGA, and what's worth growing instead of buying. Free, one email a week.

    Grow your own, track the savings

    Get the free weekly price alert and turn this into a plan for your patch. Starter is $3.99 a month or $29 a year, cancel any time.

    Contact / report an issue