• Great plugin…!!

    I have this problem in many movies… why is that?

    Thankyou !

    Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\wp-content\plugins\imdb-connector\includes\functions.php on line 816

    Warning: Illegal string offset ‘title’ in C:\xampp\htdocs\wp-content\plugins\imdb-connector\includes\functions.php on line 397

    Warning: Illegal string offset ‘imdbid’ in C:\xampp\htdocs\wp-content\plugins\imdb-connector\includes\functions.php on line 398
    ……..

    https://www.ads-software.com/plugins/imdb-connector/

Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter jcandsv

    (@jcandsv)

    the error no longer appears
    The time is 00:00:00 in this movie:
    https://kinesis.tv/the-runner/movies/

    Rating = N/A

    Thank you !

    Thread Starter jcandsv

    (@jcandsv)

    I just upgraded the imdb connector and the rating is fixed… The problem of the time is the same.00.00.00 but now happens with all posts.

    Before I updated the version the time works fine… It seems to be an error in the last upgrade

    Plugin Author thaikolja

    (@thaikolja)

    How do you display the runtime? In PHP or via shortcode?

    Thread Starter jcandsv

    (@jcandsv)

    PHP

    Plugin Author thaikolja

    (@thaikolja)

    What PHP code do you use to display the runtime that results in 00:00:00?

    Thread Starter jcandsv

    (@jcandsv)

    <?php

    $movie = get_imdb_connector_movie(“Nombre de la película”);
    $timestamp = $movie[“runtime”][“timestamp”];
    $formatted_time = date(“H:i:s”, $timestamp);

    echo “$formatted_time”;
    ?>

    Plugin Author thaikolja

    (@thaikolja)

    First off, please download the unofficial updated version of IMDb Connector and replace it with the old one (the version number is the same).

    The API does not find any movie named “Nombre de la película” on IMDb.com. In these cases, it’d be better to use either the English title or – even better – the IMDb ID. If you replace “Nombre de la película” with – for example – “Sin Nombre”, the output will be:

    01:36:39

    Furthermore, please keep in mind that since IMDb Connector version 1.3.2, most PHP functions that start with get_imdb_connector_* are not deprecated, that means they have been replaced with functions beginning with imdb_connector_* for logical reasons. So, instead of using get_imdb_connector_movie("...") please use imdb_connector_get_movie("...") Here’s the full optimized code:`

    $movie = imdb_connector_get_movie(“Sin Nombre”);
    $timestamp = $movie[“runtime”][“timestamp”];
    $formatted_time = date(“H:i:s”, $timestamp);

    echo “$formatted_time”;`

    While you’re at it, I would like to ask you if you have a few minutes to test the new version which extenses the use of shortcodes. You can read more about the new shortcode attributes here, with two example screenshots. If there’s anything not working, please be so kind to report it before I push the official version.

    Many thanks!

    Thread Starter jcandsv

    (@jcandsv)

    You sent me this version: https://www.koljanolte.com/temp/8c2e0792.zip

    Works fine !! But the problem is with this post: https://kinesis.tv/the-runner/movies/

    When I upgrade with this version: https://drive.google.com/file/d/0B581Nph7ZvaQRDVtaUZWTk1sMkU/view?usp=sharing

    The Writers, Director, Time and Country not shown

    I use the ID for the movies… “Nombre de la película” was an example, nothing else.

    Thank you!

    Plugin Author thaikolja

    (@thaikolja)

    Does the error still persist? If yes, please delete the cache, remove the plugin and install it again. Then show me the error as a screenshot and copy the code that triggers it to pastebin.net and post the link here so I can reproduce the bug.

    Thread Starter jcandsv

    (@jcandsv)

    I did everything you told me.

    The Runner Movie and others :

    Warning: mktime() expects parameter 2 to be long, string given in /home/kinesis/public_html/wp-content/themes/twentyfourteen/content.php on line 148
    00:00:00

    Fear the walking dead : STARS = N/A
    PLOT = N/A

    Thanks!

    Plugin Author thaikolja

    (@thaikolja)

    Please send the file /home/kinesis/public_html/wp-content/themes/twentyfourteen/content.php to my e-mail address so I can see what code you’re using. My e-mail is kolja.nolte AT gmail.com

    Another user recently asked a similar question. Maybe my answer helps you a bit:

    https://www.ads-software.com/support/topic/error-with-the-language-country-time-and-stars?replies=2

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘Warning: Illegal string offset 'title' in wp-content\plugins…’ is closed to new replies.