Infuriating Problem (4 posts)

  1. mdoctor
    Posted 5 years ago #

    I installed and activated Wp-cycle Plugin. When I'm uploading images, I'm facing with this warning:

    Warning: basename() expects parameter 1 to be string, object given in /home/medicalt/public_html/wp-content/plugins/wp-cycle/wp-cycle.php on line 148

    Related line to wp-cycle.php file is here:

    // make the thumbnail
    $thumb_height = round((100 * $wp_cycle_settings['img_height']) / $wp_cycle_settings['img_width']);
    if(isset($upload['file'])) {
    $thumbnail = image_resize($file, 100, $thumb_height, true, 'thumb');
    $thumbnail_url = $upload_dir_url . basename($thumbnail); Line 148

  2. Samuel B

    Posted 5 years ago #

    do not bump the topic - be patient as we are all volunteers
    I tagged this so the plugin dev may see it

  3. syimen
    Posted 5 years ago #

    I have the same problem, how do I fix it?

  4. shagen
    Posted 4 years ago #

    Just had the same problem. Starting showing up after I tried to make the height auto, which in turn made the heigh zero after saving the settings. Once I set the height again, all appears to be normal.

    Would be nice if you could set the width and not worry about the height in case you have various image heights say for ads, etc.

Topic Closed

This topic has been closed to new replies.

About this Topic