• Resolved moviesteve

    (@moviesteve)


    Hi there, The latest update is causing my site to jam up. I just get a timeout. “A timeout occurred. Error code 524. Visit cloudflare.com for more information.”

    Completely no way to get into WordPress any more so went into the back end and disabled it. All was fine again. Have now gone back to 4.3 and that seems to be working OK again.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 25 total)
  • Plugin Author JCV

    (@psykonevro)

    Hi Steve,

    Sorry you face an issue!

    I can’t replicate it on my own. Apparently, this kind of issue is triggered by the local machine:
    https://community.cloudflare.com/t/community-tip-fixing-error-524-a-timeout-occurred/42342

    I can think of various reasons, but I’m gonna need your help to investigate.
    1/ The version you reverted back (4.3) should display widgets. However, I see your site doesn’t. Could you confirm you installed 4.3? Sounds strange.

    2/ Could you tell me if you use auto widget? How do you display the widget, on a post basis (saying which movie you want to display) or automatically?

    3/ Do you use cloudfare for your website?

    4/ Could you paste the info about your server? Go to https://moviesteve.com/wp-admin/site-health.php?tab=debug and look in the dropdown list at “server”.

    Plugin Author JCV

    (@psykonevro)

    Could you tell me the difference between this post (no widget) and this one (widget properly displayed)? How do you call the movies in both posts? By “imdbid”, by “title”?

    Thread Starter moviesteve

    (@moviesteve)

    Hi JCV and thanks for the quick response. I also cannot replicate the timeout. Maybe it was a separate issue. Though I did just go into Lumiere settings and clicking on “manage cache” and that caused a timeout again (was looking to see if I could clear the cache, as you suggested somewhere).

    Tried updating to 4.3.2.1 again – immediately stopped displaying the imdb info in the right sidebar (just said [lumiereWidget]IMDb information[/lumiereWidget]. Went back to 4.3 and all was OK again.

    I am calling the titles using “imdbid”. And there is no difference now in the two posts you refer to above – both either don’t display (4.3.2.1) or do display (4.3).

    I do use Cloudflare, yes, and I don’t use the auto display.

    Here is the server info:

    Server architectureLinux 5.10.0-32-cloud-amd64 x86_64Web serverApache/2.4.62 (Debian)PHP version8.2.27 (Supports 64bit values)PHP SAPIfpm-fcgiPHP max input variables3000PHP time limit300PHP memory limit500MMax input time60Upload max filesize100MPHP post max size100McURL version7.74.0 OpenSSL/1.1.1wIs SUHOSIN installed?NoIs the Imagick library available?YesAre pretty permalinks supported?Yes.htaccess rulesCustom rules have been added to your .htaccess file.Current time2025-01-26T11:37:18+00:00Current UTC timeSunday, 26-Jan-25 11:37:18 UTCCurrent Server time2025-01-26T11:37:15+00:00

    Thanks for the help. Don’t bust a gut – it’s Sunday and it’s working for now on the old version.

    Steve

    Thread Starter moviesteve

    (@moviesteve)

    Just adding a couple of screenshots. What I’m getting on the front end with 4.3.2.1 and the widget area, with the right (I think) imdb ref for that film.

    Plugin Author JCV

    (@psykonevro)

    Hi Steve,

    Thanks for reporting back!

    For the timeout cloudfare issue, I’m pretty much certain it is due to the refresh of your entire cache when you visit the “manage cache”. The plugin tries to download all missing information for all movies/people you have on the website. I guess you have many, so the imdb cloudfare (not yours) fails in so doing.
    As a temporary measure, I would suggest to check the option “Do not show cache” in the “cache options”

    The thing is that the second issue you mention is a brand new thing to me. You use Generatepress theme, right? Is it highly customized? I installed it, but I couldn’t reproduce your issue. I see you’re using a child theme, would you mind telling me if you use custom posts, ie? Or anything that would create non-standardized areas.

    I made recently a few changes to allow the plugin to be displayed on many areas for a user asking for it. Seems like I was too permissive.

    Thread Starter moviesteve

    (@moviesteve)

    Hi JCV,

    Thanks for your efforts. The frustrating thing is it works so seamlessly most of the time.

    Your points: First your guess that I have a lot of posts. Correct – 2.5K. I’ve clicked the Do not show cache option.

    Second: Yes, a Generatepress child theme. I do have a few custom fields (three) created using Pods, and there are fields that have been added by plugins, like Schema Pro (a lot), Yet Another Star Rating (one) and Lumiere (two).

    Apart from that it is pretty bare bones.

    Hope this is useful.

    Thanks again

    Steve

    Plugin Author JCV

    (@psykonevro)

    Thanks for your efforts. The frustrating thing is it works so seamlessly most of the time.

    No problem. We’re gonna find the best way for you to use the plugin, no worries. The thing is that I deeply changed the way the plugin works (since v4.3) and uses the official IMDb API now, instead of just downloading IMDb pages. Such dramatic change was required in terms of maintainability and sustainability; it had become impossible to get most of the information from IMDb.
    But those changes will need much fine-tuning ?? Sorry for that.

    Your points: First your guess that I have a lot of posts. Correct – 2.5K. I’ve clicked the Do not show cache option.

    Well, that’s indeed explain a lot! When you visit the cache it probably brings your server to the knees. However, if v4.3 works for you (which implements a new caching system for the new IMDb API), and v4.3.2.1 doesn’t (no change in the caching system), I need to find a way to replicate your issue.

    I’m gonna investigate, may take me time to build a cache of a thousand of movies ?? In the meantime, you have two options:
    1/ Do not display the cache, as advised. This won’t solve anything, though.
    2/ Change the delay in calling the IMDb API. Go to “Main Options -> Advanced -> Delay queries time” and set a value of 30 seconds, for a start. It will make you requests slower when creating a new post and retrieving information from IMDb, but may solve the cloudfare issue.
    3/ Last resort: just refresh the manage cache many times. I suspect that the plugin is trying to download the pictures for your +2.5k movies, which takes a looooot of requests. Eventually, it will be done.

    > Second: Yes, a Generatepress child theme. I do have a few custom fields (three) created using Pods, and there are fields that have been added by plugins, like Schema Pro (a lot), Yet Another Star Rating (one) and Lumiere (two).

    This is probably the easiest issue to solve. Since you seem to use WordPress in an advanced way, could you kindly remove the two occurences of

    if ( $this->is_forbidden_areas() === true ) {
    $this->logger->log()->debug( ‘[Lumiere][Widget_Frontpage] This is a forbidden area for displaying the widget, process stopped.’ );
    return ”;
    }

    in

    yourblog/wp-content/plugins/lumiere-movies/class/frontend/class-widget-frontpage.php

    and let me know if your widget is displayed again? This is to me the most urgent issue to solve, the cache is secondary, since you do not neeed to visit that page to get your site working ??

    Plugin Author JCV

    (@psykonevro)

    About the cache: I tried to display the cache with a hundred more movies with no issue.
    In order for me to understand if it is related to photo generation, could you try to tick the box
    “Cache options -> Simplified cache data”, then visit the page “Cache management” to see if you still have that issue?

    Thread Starter moviesteve

    (@moviesteve)

    Hi again JCV,

    This is with 4.3 version of plugin:

    Set Main>Advanced>Delay queries time to 30. Updated settings.

    Tried Cache>Simplified cache data (ticked)>Do not show cache (unticked). Updated settings and hit Manage Cache. Timeout.

    Updated plugin to 4.3.2.1 (because it works fine with 4.3)

    Removed if ( $this->is_forbidden_areas() === true ) { etc etc etc as requested in both places.

    Has not worked. IMDb info not displaying.

    Steve

    Plugin Author JCV

    (@psykonevro)

    Ok, let’s prioritize the widget. Could you tell me what the log says with v4.3.2.1 when you visit one post with the widget? (Main -> Advanced ->Debug Lumière! ).

    I’m in the dark. I installed a standard generatepress theme, and the widget is correctly shown.

    Thread Starter moviesteve

    (@moviesteve)

    Is this what you’re looking for?

    [DEBUG] [Lumiere][config][cachefolder] Cache folders exist and permissions are ok.

    [Lumière options] [“imdbplugindirectory_partial” => “/wp-content/plugins/lumiere-movies/” ], [ “imdbpluginpath” => “/home/937783.cloudwaysapps.com/pmyemqgzjt/public_html/wp-content/plugins/lumiere-movies/” ], [ “imdburlpopups” => “/lumiere/” ], [ “imdbkeepsettings” => “1” ], [ “imdburlstringtaxo” => “lumiere-” ], [ “imdbcoversize” => “0” ], [ “imdbcoversizewidth” => “375” ], [ “imdbmaxresults” => “10” ], [ “imdbdelayimdbrequest” => “30” ], [ “imdbpopuptheme” => “white” ], [ “imdbpopuplarg” => “540” ], [ “imdbpopuplong” => “500” ], [ “imdbintotheposttheme” => “grey” ], [ “imdblinkingkill” => “0” ], [ “imdbautopostwidget” => “0” ], [ “imdblanguage” => “US” ], [ “imdbdebug” => “1” ], [ “imdbdebuglog” => “0” ], [ “imdbdebuglogpath” => “/home/937783.cloudwaysapps.com/pmyemqgzjt/public_html/wp-content/debug.log” ], [ “imdbdebuglevel” => “DEBUG” ], [ “imdbdebugscreen” => “1” ], [ “imdbwordpress_bigmenu” => “1” ], [ “imdbwordpress_tooladminmenu” => “0” ], [ “imdbpopup_modal_window” => “bootstrap” ], [ “imdbtaxonomy” => “0” ], [ “imdbHowManyUpdates” => “20” ], [ “imdbseriemovies” => “movies+series” ], [ “imdbplugindirectory” => “https://moviesteve.com/wp-content/plugins/lumiere-movies/” ], [ “imdbirpdisplay” => “0” ], [ “imdburlstringtaxo_terms” => “1” ]

    [/Lumière options]

    Plugin Author JCV

    (@psykonevro)

    I’m looking for the debug text in your posts to see if there is a specific error message.
    This is the debugging in the cache administration. Please copy-paste what is displayed in a post (a frontpage displaying the widget)

    Thread Starter moviesteve

    (@moviesteve)

    Sorry, I don’t quite understand. I”m not that techy. Here’s what I copied from the debug log in wp-content. Can’t see anything displayed in a post.

    [27-Jan-2025 16:39:19 UTC] RewriteRules.NOTICE: [Lumiere][RewriteRules] Added rewrite rules using add_rewrite_rule() {“file”:”/home/937783.cloudwaysapps.com/pmyemqgzjt/public_html/wp-content/plugins/lumiere-movies/class/alteration/class-rewrite-rules.php”,”line”:167,”class”:”Lumiere\Alteration\Rewrite_Rules”,”callType”:”->”,”function”:”lumiere_add_rewrite_rules”}
    [27-Jan-2025 16:39:19 UTC] RewriteRules.NOTICE: [Lumiere][RewriteRules] Added rewrite rules using add_rewrite_rule() {“file”:”/home/937783.cloudwaysapps.com/pmyemqgzjt/public_html/wp-content/plugins/lumiere-movies/class/alteration/class-rewrite-rules.php”,”line”:167,”class”:”Lumiere\Alteration\Rewrite_Rules”,”callType”:”->”,”function”:”lumiere_add_rewrite_rules”}
    [27-Jan-2025 16:39:19 UTC] RewriteRules.NOTICE: [Lumiere][RewriteRules] Rewrite rules for Lumière was missing, flushed 2 lumiere/([^/]+)/?
    ([a-zA-Z]{2}|?+)/?lumiere/([^/]+)/? {“file”:”/home/937783.cloudwaysapps.com/pmyemqgzjt/public_html/wp-content/plugins/lumiere-movies/class/alteration/class-rewrite-rules.php”,”line”:208,”class”:”Lumiere\Alteration\Rewrite_Rules”,”callType”:”->”,”function”:”need_flush_rules”}
    [27-Jan-2025 16:39:19 UTC] cacheToolsClass.DEBUG: [Lumiere][config][cachefolder] Cache folders exist and permissions are ok. {“file”:”/home/937783.cloudwaysapps.com/pmyemqgzjt/public_html/wp-content/plugins/lumiere-movies/class/admin/class-cache-tools.php”,”line”:665,”class”:”Lumiere\Admin\Cache_Tools”,”callType”:”->”,”function”:”lumiere_create_cache”}

    Plugin Author JCV

    (@psykonevro)

    > I”m not that techy.
    No problem, no worries ?? So you confirm that if you go to
    https://moviesteve.com/review-testament-dr-mabuse/

    there is no extra information above/below “[lumiereWidget]IMDb information[/lumiereWidget]”, correct?

    Thread Starter moviesteve

    (@moviesteve)

    Yes, that’s all I can see –?[lumiereWidget]IMDb information[/lumiereWidget]

Viewing 15 replies - 1 through 15 (of 25 total)
  • You must be logged in to reply to this topic.