TTW Theming by copying the existing Barceloneta theme

When applying the the custom theme by following ( TTW Theming II: Create A Custom Theme Based On Barceloneta – Plone 5 Theming — Plone Training 2022 documentation ).
I get an error

>>> Traceback (innermost last):
  Module ZPublisher.WSGIPublisher, line 162, in transaction_pubevents
  Module ZPublisher.WSGIPublisher, line 371, in publish_module
  Module ZPublisher.WSGIPublisher, line 266, in publish
  Module ZPublisher.mapply, line 85, in mapply
  Module ZPublisher.WSGIPublisher, line 63, in call_object
  Module plone.app.theming.browser.mapper, line 297, in getFrame
  Module lxml.etree, line 602, in lxml.etree.XSLT.__call__
lxml.etree.XSLTApplyError: Undefined variable

Any help will be appreciated :slightly_smiling_face: