• Resolved Film Complet En Francais

    (@film-complet-en-francais)


    I chose to store cache in WordPress MySQL database, but when I switch back to store cache as files, movie information isn’t displayed anymore, if switched to database option it works again. Cache files created on the server are not empty and contain all the information, but the information is not displayed anymore.

    This problem exists only with posts that were loaded while an option to save cache in database was selected.

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

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

    (@thaikolja)

    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?

    Thread Starter Film Complet En Francais

    (@film-complet-en-francais)

    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

    Thread Starter Film Complet En Francais

    (@film-complet-en-francais)

    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.

    Plugin Author thaikolja

    (@thaikolja)

    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?

    Thread Starter Film Complet En Francais

    (@film-complet-en-francais)

    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.

    Plugin Author thaikolja

    (@thaikolja)

    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.

    Thread Starter Film Complet En Francais

    (@film-complet-en-francais)

    Also I tried disabling caching and all I get is "

    Plugin Author thaikolja

    (@thaikolja)

    Oh, and don’t forget to empty the cache since the escaping will only be applied to NEW movie details.

    Thread Starter Film Complet En Francais

    (@film-complet-en-francais)

    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: "

    Plugin Author thaikolja

    (@thaikolja)

    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.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Cache problem’ is closed to new replies.