the error no longer appears
The time is 00:00:00 in this movie:
http://kinesis.tv/the-runner/movies/
Rating = N/A
Thank you !
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
How do you display the runtime? In PHP or via shortcode?
What PHP code do you use to display the runtime that results in 00:00:00?
<?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”;
?>
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!
You sent me this version: http://www.koljanolte.com/temp/8c2e0792.zip
Works fine !! But the problem is with this post: http://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!
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.
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!
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://wordpress.org/support/topic/error-with-the-language-country-time-and-stars?replies=2