• Resolved correctsurffit

    (@correctsurffit)


    Hi,

    I hope this message finds you well. I recently installed the “Automatic Featured Images from Videos” plugin on my WordPress site and have encountered an issue. The error logs indicate a PHP warning related to undefined variables $video_url and $video_embed_url in a specific file of the plugin on certain lines.

    Here’s a sanitized version of the error message from the logs:

    [Date and Time] [proxy_fcgi:error] [pid and tid details] AH01071: Got error ‘PHP message: PHP Warning: Undefined variable $video_url in /path/to/my/website/wp-content/plugins/automatic-featured-images-from-videos/sample-file.php on line XX PHP message: PHP Warning: Undefined variable $video_embed_url in /path/to/my/website/wp-content/plugins/automatic-featured-images-from-videos/sample-file.php on line XX’, referer: [sanitized referer URL]

    I’ve ensured that the plugin is updated to the latest version and have followed the installation and setup instructions correctly. I would appreciate any guidance or assistance you can provide to resolve this issue.

    Thank you for your time and support.

    Best regards,

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi

    Looking over our code, we do have spots where there’s slight potential that those 2 variables may not be set, but I’m looking at the “if statements” around them, and they shouldn’t be getting used because of other things not being set either.

    The other bigger question I have is about /plugins/automatic-featured-images-from-videos/sample-file.php because we don’t have a sample-file.php that ships with the plugin. So I’m a bit suspicious about that.

    Thread Starter correctsurffit

    (@correctsurffit)

    Thank you for your prompt response.

    I apologize for the confusion earlier. In an attempt to anonymize the error message for public forums, the file path was inadvertently changed to “sample-file.php”. That was my mistake. Here’s the actual error message with only the domain part obscured:

    AH01071: Got error 'PHP message: PHP Warning: Undefined variable $video_url in /wp-content/plugins/automatic-featured-images-from-videos/automatic-featured-images-from-videos.php on line 162PHP message: PHP Warning: Undefined variable $video_embed_url in /wp-content/plugins/automatic-featured-images-from-videos/automatic-featured-images-from-videos.php on line 163', referer: https://test.[hidden-domain]/wp-admin/post.php?post=XX006&action=edit

    Given this, I’m still facing issues with the plugin not functioning as expected. Could you please advise on any potential solutions or steps I can take to resolve this?

    Thank you for your understanding and support.

    Best regards,

    Plugin Support Michael Beckwith

    (@tw2113)

    The BenchPresser

    Outside of warnings, which shouldn’t be affecting things as long as information is found, how is it not functioning properly?

    What video URLs are you trying with?

    Biggest thing is that not all details are being found like expected, or there’s no generated thumbnails for the videos being tested with.

    Thread Starter correctsurffit

    (@correctsurffit)

    I believe there aren’t any specific settings required for the plugin, but when I make a post, I don’t see any changes. The plugin doesn’t seem to fetch any images, and they aren’t reflected as page covers either.

    I’m using the following URL for testing: https://vimeo.com/87XXXXX5?share=copy

    One thing I’m concerned about is that this Vimeo video is set to “Hide from Vimeo”. Could this setting be causing the plugin not to function properly?

    Plugin Support Michael Beckwith

    (@tw2113)

    The BenchPresser

    One thing I’m concerned about is that this Vimeo video is set to “Hide from Vimeo”. Could this setting be causing the plugin not to function properly?

    Yes, I’m logged in and not able to see it either, which is going to hinder our plugin from finding anything.

    For example we extract the video ID and drop it into a request to say https://www.vimeo.com/api/v2/video/87XXXXX5.json and hopefully get image information back that we upload media thumbnails from. However, this one is not giving me anything, though I’m also curious if you’ve X’d out some of the valid ID numbers too.

    Thread Starter correctsurffit

    (@correctsurffit)

    Thank you for your response. I apologize for the oversight. Here is the correct URL: https://vimeo.com/432680153?share=copy

    Currently, the video is set to “Hide from Vimeo”. Is there a way to fetch the thumbnail image with this setting in place?

    I appreciate your assistance.

    Plugin Support Michael Beckwith

    (@tw2113)

    The BenchPresser

    Coincidentally my employer has our monthly 5FTF event, this may be a good time for me to do some updates on some things.

    1. I’m seeing that requests to the json url I provided earlier is giving me a 301 redirect. So it looks like we need to update our code to point to https://vimeo.com and not https://www.vimeo.com.
    2. Even when I tested with the updated URL, your vimeo video ID gave me “not found” errors, which mean it’s going to need to be a public video for our plugin to work with it. I confirmed that the updated URL worked with a separate public video and it gave me the expected data.
    Thread Starter correctsurffit

    (@correctsurffit)

    Thank you for your detailed explanation. I’ve also confirmed that the plugin works as expected with publicly available videos. I apologize for the oversight on my part.

    While I understand that public videos can be fetched without issues, it would be extremely helpful if there’s a way to fetch images from non-public videos, perhaps by inputting an API key or through some other method. This feature would greatly enhance the utility of the plugin for our use case.

    Thank you for your continued support.

    Plugin Support Michael Beckwith

    (@tw2113)

    The BenchPresser

    We would need to explore that as an option, to add in authentication processes, but I can’t say for certain how much of a priority it would be. I definitely understand the interest and feasibility though.

    Thread Starter correctsurffit

    (@correctsurffit)

    I would be willing to consider a paid plan if it means having the capability for API integration. I truly believe it would be a valuable addition to the plugin. I’ve come to understand the current functionality of the plugin, so for now, this topic is resolved for me. Thank you for your assistance and understanding.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Issue with “Automatic Featured Images from Videos” Plugin’ is closed to new replies.