• Resolved Protoss78

    (@protoss78)


    I just tried to add a core-animated-pages element (to be used as an image slider) to a post and got the following crash:
    ( ! ) Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\system\wp-content\plugins\polymer-components\polymer-components.php on line 211

    Here is the code that I added:

    <core-animated-pages transitions="cross-fade">
      <section>
        <div cross-fade>Image 1</div>
      </section>
      <section>
        <div cross-fade>Image 2</div>
      </section>
    </core-animated-pages>

    I also tried it with the short code, but it lead to the same result. I’m quite familiar with Polymer, but a newbie in WordPress so maybe I forgot something here.

    https://www.ads-software.com/plugins/polymer-components/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Protoss78

    (@protoss78)

    Ok my fault. I tried to add polymer code to a custom type (using this plugin: https://www.ads-software.com/plugins/types/). This lead to the above described crash. When I try it in a regular post it works without any issues.

    Thread Starter Protoss78

    (@protoss78)

    Not an issue. Maybe worth considering for a future enhancement. ??
    Thanks for the great work.

    Plugin Author Mattia Roccoberton

    (@blocknotes)

    Hi Protoss.
    You were right ?? there was a small bug in that line (211)
    I have just put a small update that should correct that warning.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘core-animated-pages leads to crash’ is closed to new replies.