Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Bug Reports
  3. strange code warning at bottom of page

strange code warning at bottom of page

Scheduled Pinned Locked Moved Bug Reports
3 Posts 2 Posters 51 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alasdair17
    wrote on last edited by
    #1

    hey @arminunruh, i'm reworking a website just now and updated lay to activate overlays. The following errors started being displayed at the bottom of the page and on other pages the errors were longer and mentioned my custom id tags I had applied to certain elements. I've reverted to 5.9.6 which doesn't display the error.

    Just a heads up.

    The errors:

    Warning: DOMDocument::loadHTML(): ID grid-css already defined in Entity, line: 49 in /home/customer/www/scapscotland.com/public_html/wp-content/themes/lay/frontend/assets/php/overlays/overlays.php on line 40

    Warning: DOMDocument::loadHTML(): ID phone-grid-css already defined in Entity, line: 160 in /home/customer/www/scapscotland.com/public_html/wp-content/themes/lay/frontend/assets/php/overlays/overlays.php on line 40

    Warning: DOMDocument::loadHTML(): Tag nav invalid in Entity, line: 219 in /home/customer/www/scapscotland.com/public_html/wp-content/themes/lay/frontend/assets/php/overlays/overlays.php on line 40

    Warning: DOMDocument::loadHTML(): Tag nav invalid in Entity, line: 236 in /home/customer/www/scapscotland.com/public_html/wp-content/themes/lay/frontend/assets/php/overlays/overlays.php on line 40

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

      yea

      its just a warning, not an error.
      you need to disable wp_debug in your wp-config.php so the warning wont show up

      define( 'WP_DEBUG', false );

      1 Reply Last reply
      0
      • arminunruhA Offline
        arminunruhA Offline
        arminunruh
        Global Moderator
        wrote on last edited by
        #3

        basically im traversing the html of pages to find all links to overlays, so i only pre-load overlays that are linked to on the current page

        because that html contains multiple elements of id "grid-css", that php shows a warning, because html is supposed to only have unique ids :D

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        I also code custom websites or custom Lay features.
        šŸ’æ Email me here: šŸ’æ
        info@laytheme.com

        Before you post:
        1. When using a WordPress Cache plugin, disable it or clear your cache.
        2. Update Lay Theme and all Lay Theme Addons
        3. Disable all Plugins
        4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

        This often solves issues you might run into

        When you post:
        1. Post a link to where the problem is
        2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
        3. If the problem is difficult to explain, post screenshots / link to a video to explain it
        Online Users
        dafvD
        dafv
        Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
        laytheme.com
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Recent
        • Tags
        • Popular
        • Users
        • Search