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

    (@kocmocq)

    Hi again,

    After a couple hours of digging the solution was simple.

    I changed this line:

    echo $taxonomy->labels->name . ' ' . implode( $terms_array, ', ' );

    To this:

    echo $taxonomy->labels->name . ' ' . implode( ', ', $terms_array );

    Now working.

    Can you confirm that this is the right solution?

    Thanks!

    Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @kocmocq!

    It sounds like you were hitting into an Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array error, and in which case, this is a good workaround. I am not saying this is the best workaround, but will look into this and update the snippet with a fix.

    Cheers!

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error with product attribute archive links’ is closed to new replies.