• Resolved herukrayz

    (@herukrayz)


    I got this error
    “PHP Catchable fatal error: Argument 1 passed to imdb_connector_get_movies() must be of the type array, string given, called in /home/sndl/public_html/wp-content/themes/themes/functions.php on line 13 and defined in /home/sndl/public_html/wp-content/plugins/imdb-connector/includes/functions.php”

    and this my php code
    function autoset_featured($post) {
    $imdb_movie_id = get_post_meta( $post->ID, “Checkbx2”, true );
    $imdb_get = imdb_connector_get_movies($imdb_movie_id);
    $image_url = $imdb_get[“poster”];

    {

    Thanks before

    https://wordpress.org/plugins/imdb-connector/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author thaikolja

    (@thaikolja)

    You mixed up the function imdb_connector_get_movie with imdb_connector_get_movies (note the “s” at the end). The latter only accepts movie IDs or titles as an array. If you only want to parse one movie, you have to use the first function.

    Thread Starter herukrayz

    (@herukrayz)

    Ok problem solved.
    i use imdb_connector_has_movie
    but i got other error, i’ll crete new topic.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Catchable fatal error’ is closed to new replies.