Title: Error class Last update
Last modified: October 5, 2021

---

# Error class Last update

 *  Resolved [Alex Caravaca Ponce](https://wordpress.org/support/users/alex-caravaca-ponce/)
 * (@alex-caravaca-ponce)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/error-class-last-update/)
 * Hi, we have an error on the website after the last update.
    I am looking forward
   to your response
 * Thanks
 * — Console —
    print_elements.js?ver=1.0:16 Uncaught TypeError: Cannot read properties
   of undefined (reading ‘classList’) at _preserve (print_elements.js?ver=1.0:16)
   at _attachPrintClasses (print_elements.js?ver=1.0:43) at _walkTree (print_elements.
   js?ver=1.0:54) at Object._print [as print] (print_elements.js?ver=1.0:64) at 
   printomat.js?ver=2.0.1:52

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Contributor [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/error-class-last-update/#post-14939841)
 * what does the shortcode look like?
 *  Thread Starter [Alex Caravaca Ponce](https://wordpress.org/support/users/alex-caravaca-ponce/)
 * (@alex-caravaca-ponce)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/error-class-last-update/#post-14940104)
 * You can check by clicking on the print icon: [https://1821bm4b6b0y.labsmetacom.es/productos-quimicos/air-ac-plus-limpiador-acido-bateria/](https://1821bm4b6b0y.labsmetacom.es/productos-quimicos/air-ac-plus-limpiador-acido-bateria/)
 * Thank you for answering so quickly
 *  Thread Starter [Alex Caravaca Ponce](https://wordpress.org/support/users/alex-caravaca-ponce/)
 * (@alex-caravaca-ponce)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/error-class-last-update/#post-14940109)
 * ** shortcode **
 * [print-me title=”Ficha técnica” target=” .module-product-title, .woocommerce-
   product-details__short-description, .fichadescripcion, .referencia, .product-
   images-carousel, .iconsector, .fichapropiedades, .fichaccomposicion, .fichamodoempleo,.
   fichaaplicacion, .fichaformato, .flexcat” do_not_print=”.videoficha, i”]
 *  Plugin Contributor [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/error-class-last-update/#post-14941803)
 * We were able to recreate the issue – it seems that one or more of the provided
   targets do not exist on the page. We have addressed this in version 2.0.2 that
   was just released. Let us know if this resolves the issue for you.
 *  Thread Starter [Alex Caravaca Ponce](https://wordpress.org/support/users/alex-caravaca-ponce/)
 * (@alex-caravaca-ponce)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/error-class-last-update/#post-14943170)
 * Ok the still not working well, I suspect I have to move the my custom print CSS
   to the custom CSS that the plugin offers, can that be?
 * Url experience:
    * duplicate header and no show custom print ** [https://1821bm4b6b0y.labsmetacom.es/productos-quimicos/air-ac-plus-limpiador-acido-bateria/](https://1821bm4b6b0y.labsmetacom.es/productos-quimicos/air-ac-plus-limpiador-acido-bateria/)
 *  Plugin Contributor [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/error-class-last-update/#post-14943359)
 * [@alex-caravaca-ponce](https://wordpress.org/support/users/alex-caravaca-ponce/).
   There are two issues:
    The first issue was that if a target was given that does
   not exist on the page, a JS error was thrown. That issue was fixed in version
   2.0.2 (also the current version: 2.0.3). Note: on the link provided there are
   _two_ print triggers. the first one using the shortcode shared above, and a second
   one under the ‘AIR AC PLUS’ title that is targeting the ‘article’ element that
   does not exist on this page – therefore the trigger exits without triggering 
   a print.
 * The second issue is the custom print CSS. The plugin will use the standard print
   page css using [@media](https://wordpress.org/support/users/media/) print:
 *     ```
       @media print{
          ...print css goes here...
       }
       ```
   
 * This CSS can be added to the child-theme’s quick CSS section, WordPress’ CSS 
   Customizer, or in the Custom Print Page Style section of the plugin’s option 
   page.
    Note: CSS entered into the Custom Print Page Style section will be automatically
   wrapped inside the [@media](https://wordpress.org/support/users/media/) print
   query, so just enter the CSS rules in this section.
 * Hopefully this helps get you pointed in the right direction Let us know if you
   have any further questions or if we can be of additional help.
 *  Thread Starter [Alex Caravaca Ponce](https://wordpress.org/support/users/alex-caravaca-ponce/)
 * (@alex-caravaca-ponce)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/error-class-last-update/#post-14943510)
 * Ok, perfect.
 * ** Print Page Top HTML**
    This field is displayed on the web, not just when printing
 * ** recover previous versions **
    The new version supposes me to make adjustments
   in the css that I had not foreseen.
 * Where can I download older versions of the plugin to replace it on the real web
   until I fix it.
 * Thank you`
 *  Plugin Contributor [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/error-class-last-update/#post-14943544)
 * New Issue:
 * > Print Page Top HTML always displayed:
 * We just took a look and the HTML “test dasd as sd as dasd” is only showing on
   the print page. We do not see this on the display page at all in Chrome, Firefox
   or Safari. Is this issue happening only on a specific browser? Try clearing the
   cache or viewing it in an private tab.
 * > The new version supposes me to make adjustments in the css that I had not foreseen.
 * Yes, version 2.0 was a complete rewrite, if you have significant CSS changes,
   you can roll back to a pre 2.0 version here:
    [https://wordpress.org/plugins/print-o-matic/advanced/](https://wordpress.org/plugins/print-o-matic/advanced/)

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Error class Last update’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/print-o-matic_b2b2b2.svg)
 * [Print-O-Matic](https://wordpress.org/plugins/print-o-matic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/print-o-matic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/print-o-matic/)
 * [Active Topics](https://wordpress.org/support/plugin/print-o-matic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/print-o-matic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/print-o-matic/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/error-class-last-update/#post-14943544)
 * Status: resolved