• An error of type E_ERROR was caused in line 50 of the file /nas/content/live/tenthward/wp-content/plugins/slider-wd/admin/models/Sliders.php. Error message: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /nas/content/live/tenthward/wp-content/plugins/slider-wd/admin/models/Sliders.php:50
    Stack trace:
    #0 /nas/content/live/tenthward/wp-content/plugins/slider-wd/admin/models/Sliders.php(50): implode(Array, ‘,’)
    #1 /nas/content/live/tenthward/wp-content/plugins/slider-wd/admin/controllers/Sliders.php(195): SlidersModel_wds->get_layers_row_data(Array)
    #2 /nas/content/live/tenthward/wp-content/plugins/slider-wd/admin/controllers/Sliders.php(87): SlidersController_wds->edit(2)
    #3 /nas/content/live/tenthward/wp-content/plugins/slider-wd/slider-wd.php(293): SlidersController_wds->execute()
    #4 /nas/content/live/tenthward/wp-includes/class-wp-hook.php(308): WDS->admin_pages_new(”)
    #5 /nas/content/live/tenthward/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)
    #6 /nas/content/live/tenthward/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #7 /nas/content/live/tenthward/wp-admin/admin.php(259): do_action(‘toplevel_page_s…’)
    #8 {main}
    ? thrown

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter cdiazorases

    (@cdiazorases)

    I found this line of code: $rows = $wpdb->get_results(‘SELECT * FROM ' . $wpdb->prefix . 'wdslayer WHERE slide_id IN (‘ . implode($slide_ids, ‘,’) . ‘) ORDER BY depth ASC’);
    and changed it to this: $rows = $wpdb->get_results(‘SELECT * FROM ‘ . $wpdb->prefix . ‘wdslayer WHERE slide_id IN (‘ . implode(‘,’, $slide_ids) . ‘) ORDER BY depth ASC’);
    and the plugin works now with no errors. This may be something you need to fix and push an update.

    Thread Starter cdiazorases

    (@cdiazorases)

    public function get_layers_row_data( $slide_ids = array() ) {
    global $wpdb;
    //// below is the updat I put in ///
    $rows = $wpdb->get_results('SELECT * FROM ' . $wpdb-  >prefix . 'wdslayer WHERE slide_id IN (' . implode(',', $slide_ids) . ') ORDER BY depth ASC');
    //////  below is where the error is ////
    #$rows = $wpdb->get_results('SELECT * FROM ' . $wpdb->prefix . 'wdslayer WHERE slide_id IN (' . implode($slide_ids, ',') . ') ORDER BY depth ASC');
    Plugin Support Zhanna Khachatryan

    (@zhannak)

    Hi @cdiazorases,

    Thanks for reaching out.

    Please note that with our latest version there is no such issue, can you please write which version of the plugin you use?

    Thread Starter cdiazorases

    (@cdiazorases)

    This is from the slider-wp.php file:

    <?php
    /**
     * Plugin Name: Slider by 10Web
     * Plugin URI: https://10web.io/plugins/wordpress-slider/
     * Description: This is a responsive plugin, which allows adding sliders to your posts/pages and to custom location. It uses large number of transition effects and supports various types of layers.
     * Version: 2.2.17
     * Author: 10Web
     * Author URI: https://10web.io/pricing/
     * License: GNU/GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
     */

    Thread Starter cdiazorases

    (@cdiazorases)

    my question is: to update past the 2.2.17 version, does it require license purchase or is the free plugin updated as well?

    Plugin Support Zhanna Khachatryan

    (@zhannak)

    Dear @cdiazorases,

    You get product updates if you have an active subscription with us. However, regarding the pro plan questions, please contact us at [email protected], on WordPress forum we reply only free plugin related inquiries.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error when updated to PHP 8.0’ is closed to new replies.