PHP Deprecated
-
Hi everybody,
I was writing the prices on the product pages of my website, and just after I finished, I realized that all the images, the prices and the links were suddenly gone, on all the products.
I have checked the links. I also have deactivated the plugins.The debug.log is : `
PHP deprecated : implode(): passing glue string after array is deprecated. Swap the parameters in document-gallery…./class-galery.php on line 544Here is the copy of the code, the line 544 is : “$comment .= ‘<!– Attachment IDs: ‘ . implode( $ids, ‘, ‘ ) . ‘ –>’ . PHP_EOL;”
// build pagination section if ( $this->atts['paginate'] && $this->atts['limit'] > 0 && $this->pg_count > 1 ) { $args = array( 'base' => '#%_%', 'format' => 'dg_page=%#%', 'total' => $this->pg_count, 'current' => $this->cur_pg, 'prev_text' => __( '«' ), 'next_text' => __( '»' ) ); $gallery_repl[2] .= '<div class="paginate">' . paginate_links( $args ) . '</div>'; $gallery_classes[] = 'dg-paginate-wrapper'; } $gallery_repl[] = implode( ' ', $gallery_classes ); $comment = self::$comment; if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { $ids = array(); foreach ( $this->docs as $doc ) { $ids[] = $doc->getId(); } $comment .= '<!-- Attachment IDs: ' . implode( $ids, ', ' ) . ' -->' . PHP_EOL; } return $comment . str_replace( $gallery_find, $gallery_repl, $gallery ); } }
I manage some other websites with the same plugins, and this one is the only one which has this issue.
Can someone help me? I don’t know how to fix it. Wordpress 5.9.3 Theme : Dazzling (with a local Child Theme) eCommerce Product Catalog for WordPress Version 3.0.57 Thanks
The page I need help with: [log in to see the link]
- The topic ‘PHP Deprecated’ is closed to new replies.