I don’t really get your last sentence. What do you mean with “loaded”? Created/saved in the admin area?
When I test the plugin on my servers, it works fine, with both caching modes. Can you tell me a bit more about your setup/code?
I use this code to display movie rating:
$imdbid = get_post_meta(get_the_ID(),'imdb-id',true);
$connector_movie = get_imdb_connector_movie($imdbid);
echo $connector_movie["imdbrating"]
When I first updated plugin to v0.3 I chose an option to store cache in database, but later I switched it back to file mode. Now some movie posts do not display any information (rating, runtime) while in file mode, but work fine in database mode.
I get this problem only with some movies, others work fine with both caching modes. I tried deleting cache, but it didn’t fix the problem.
Movies that give me this problem:
tt2802154
tt2294449
tt1646971
What I meant by “loaded” is that I visited those movie posts on my website while cache database storing option was enabled. Only those posts seem to be affected.
I can’t seem to replicate this problem with other movie posts anymore.
That’s weird because I can’t seem to reproduce that bug. Is there an error when you enable debug mode? Is the result the same when using get_imdb_connector_movie_detail()? Have you tried clearing the plugin cache?
The result is exactly the same with get_imdb_connector_movie_detail(). I don’t get any errors, but when I choose to cache movie details with poster then it gives me an error The movie tt2802154 could not be found. Please check your spelling. Everything works fine with database caching mode enabled, it’s just I can’t switch back to file caching mode due to those few movies not working. An yes, I tried deleting cache through plugin settings and manually through ftp.
Alright, I think I know why. If you look at the JSON of, for example, tt2802154, you’ll see that it contains double quotes in the plot description that aren’t escaped (\”) and destroy the whole format, making it unable to convert it intro an array.
I’m going to upload the update in a minute, let me know if that worked for you.
Also I tried disabling caching and all I get is "
Oh, and don’t forget to empty the cache since the escaping will only be applied to NEW movie details.
Both caching modes are working now. Thank you.
BTW, I noticed another problem. When caching is disabled only quotation mark is displayed instead of information: "
Yeah, you’re right, I forgot that part. Just fixed it, gonna upload the fixed version in a few minutes. Thanks for all your help.