• Resolved OgdenNews

    (@ogdennews)


    Support,

    We are using the wp all import to download our images to an s3 bucket and images are not able to be created on the s3 bucket. We are currently running wordpress 6.4 and the lastest version of OffLoad Lite and the site was running fine up to the feb 11th update. There is no permission problem with the s3 because we allow public access to the s3 bucket.

    Here is the warning we are getting

    [Tue Feb 20 06:21:29.392073 2024] [php7:warn] [pid 28388] [client 10.5.4.25:13136] PHP Warning: getimagesize(https://{s3 BucketURI}/{domain}/images/2024/02/20010619/Dennis_Passow_picjpghffalsevffalse.jpeg): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden\r\n in /usr/web/{domain}/wp-content/themes/coreV2/header.php on line 49

    Any help would be appreciated.

    Thanks, Shawn

    • This topic was modified 1 year ago by OgdenNews.
    • This topic was modified 1 year ago by OgdenNews.
Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support Delicious Brains Support

    (@dbisupport)

    Hi @ogdennews,

    WP Offload Media Support Team here. Thanks for reaching out with your query, we would be happy to assist!

    I’m not familiar with WP All Import being able to download images directly to an S3 bucket. Could you give us more information about this? Are you maybe importing your Media Library using WP All Import and they are not getting offloaded to your S3 bucket?

    Just to confirm, if you upload an image via the Media Library, does it get saved to your S3 bucket?

    The error below:

    [Tue Feb 20 06:21:29.392073 2024] [php7:warn] [pid 28388] [client 10.5.4.25:13136] PHP Warning: getimagesize(https://{s3 BucketURI}/{domain}/images/2024/02/20010619/Dennis_Passow_picjpghffalsevffalse.jpeg): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden\r\n in /usr/web/{domain}/wp-content/themes/coreV2/header.php on line 49

    … seems to be about your theme header trying to access an image directly from your bucket. Does the image “Dennis_Passow_picjpghffalsevffalse.jpeg” exist in the path above?

    Looking forward to your response.

    Thread Starter OgdenNews

    (@ogdennews)

    Hello,

    I’m sorry I was a bit confusing we are using the WP ALL IMPORT to download images in the media library and them OFFLOAD LITE sends them to the s3 bucket. We noticed we were getting access denied, and the image was not sent to the s3 bucket which has full public access. We can confirm images so far that was updated on WordPress is making to the s3 bucket. We also noticed its stop working with WP-ALL IMPORT after the offload lite update from 2/11/2023. Any Help would be greatly appreciated.

    In Offload delivery settings we are getting this error

    Delivery provider status cannot be determined. An error was encountered while attempting to offload a temporary file for Public delivery.

    Thanks, Shawn

    • This reply was modified 1 year ago by OgdenNews.
    Plugin Support Delicious Brains Support

    (@dbisupport)

    Hi @ogdennews,

    Thank you for your response. To confirm, you’re using WP All Import to download images and put them in the media gallery. And since the latest update of WP Offload Media, images imported are no longer offloaded. Are these correct?

    WP Offload Media uses WordPress hooks and filters for uploading media and serving their URLs, aiming for compatibility with other plugins, though it may not work with all as plugins can be built differently. For more info on plugins compatible with WP Offload Media, please check this page: https://deliciousbrains.com/wp-offload-media/doc/compatibility-with-other-plugins/

    It’s possible that WP All Import is conflicting with WP Offload Media. But to help us understand your setup, would you be able to send us the diagnostic information from the Support tab on your install?

    1. Go to the Support tab of your install
    2. Scroll down to the “Diagnostic Info”
    3. Copy the contents and send it with your reply here. You may remove any private info that you don’t want to share.
    Thread Starter OgdenNews

    (@ogdennews)

    The images are not offloading through wp import the rest works in a different bucket. This stopped on the Feb 11th update. We even updated to the Feb 13th update thinking that it was bug and released an update to fix but it was still the same. WP ALL IMPORT was updated yesterday as well and the same problem exists.

    site_url(): https://www.domain.com
    home_url(): https://www.domain.com
    Database Name:
    Table Prefix: prefix_
    WordPress: 5.8.9
    Web Server: Apache/2.4.57 () PHP/7.4.33
    PHP: 7.4.33
    MySQL: 8.0.32
    ext/mysqli: yes
    PHP Memory Limit: 256M
    WP Memory Limit: 40M
    Memory Usage: 7 MB
    Blocked External HTTP Requests: None
    WP Locale: en_US
    Organize offloads by month/year: Enabled
    WP_DEBUG: No
    WP_DEBUG_LOG: No
    WP_DEBUG_DISPLAY: No
    SCRIPT_DEBUG: No
    WP Max Upload Size: 100 MB
    PHP Time Limit: 300
    PHP Error Log:
    WP Cron: Enabled
    fsockopen: Enabled
    allow_url_fopen: Enabled
    OpenSSL: OpenSSL 1.0.2k 26 Jan 2017
    cURL: 8.2.1
    Zlib Compression: Enabled
    PHP GD: bundled (2.1.0 compatible)
    Imagick: Enabled
    Basic Auth: Disabled
    Proxy: Disabled
    
    Total Media Items: 40,936
    Total Offloaded Media Items: 40,932
    Total Not Offloaded Media Items: 4
    
    Media Library Items: 40,936
    Offloaded Media Library Items: 40,932
    Not Offloaded Media Library Items: 4
    
    Number of Image Sizes: 6
    
    Names and Dimensions of Image Sizes:
    thumbnail (470x300)
    medium (800x500)
    large (1100x840)
    1536x1536 (1536x1536)
    2048x2048 (2048x2048)
    
    WP_CONTENT_DIR: /usr/web/www.domain.com/wp-content
    WP_CONTENT_URL: https://www.domain.com/wp-content
    UPLOADS: Not defined
    WP_PLUGIN_DIR: /usr/web/www.domain.com/wp-content/plugins
    WP_PLUGIN_URL: https://www.domain.com/wp-content/plugins
    
    AS3CF_PROVIDER: Not defined
    AS3CF_BUCKET: Not defined
    AS3CF_REGION: Not defined
    AS3CF_SETTINGS: Not defined
    
    Local URL:
    https://www.domain.com/wp-content/uploads/2024/02/example.jpg
    Offload URL:
    https://domain.s3.amazonaws.com/www.domain.com/images/2024/02/27143401/example.jpg
    
    OME Metadata Version: 12
    
    Custom tables:
    prefix_as3cf_items: Ok
    
    Storage Provider: Amazon S3
    Use Server Roles: Off
    Key File Path: N/A
    Access Keys Set: Yes
    Access Key ID Define: AWS_ACCESS_KEY_ID
    Secret Access Key Define: AWS_SECRET_ACCESS_KEY
    
    Bucket: images
    Region: (empty)
    
    Offload Media: On
    Remove Local Media: On
    Enable Add Prefix to Bucket Path: On
    Custom Prefix for Bucket Path: www.domain.com/images/
    Add Year & Month to Bucket Path: On
    Add Object Version to Bucket Path: On
    
    Delivery Provider: Amazon S3
    Deliver Offloaded Media: On
    
    Force HTTPS: Off
    
    Active Theme Name: Newspaper Core V2
    Active Theme Version: 1.0
    Active Theme Folder: coreV2
    
    Active Plugins:
    Automatic Post Date Filler (v1.2) by Devtard
    Classic Editor (v1.6.3) by WordPress Contributors
    Classic Widgets (v0.3) by WordPress Contributors
    CloudSearch (v2.12.0) by Andrea Landonio
    Comet Cache Pro (v170220) by WebSharks, Inc.
    Custom Registration (v1.1) by Mark Henry
    Facebook Comments by Vivacity (v1.4.1) by Vivacity Infotech Pvt. Ltd.
    File Uploads Addon for WooCommerce (v1.7.1) by Imaginate Solutions
    Gravity Forms (v2.8.4) by Gravity Forms
    Gravity Forms reCAPTCHA Add-On (v1.4.0) by Gravity Forms
    Image Widget (v4.4.9) by The Events Calendar
    MWW Scheduled Post Trigger (v3.2) by Moss Web Works
    ManageWP - Worker (v4.9.19) by GoDaddy
    No Category Base (WPML) (v1.3) by Marios Alexandrou
    Ogden - Custom Modifications Plugin (v1.22) by Ogden Newspapers - Jim George
    PublishPress Future (v3.1.3) by PublishPress
    Raw HTML (v1.6.4) by Janis Elsts
    TotalPoll Pro (v3.3.3) by MisqTech
    UpdraftPlus - Backup/Restore (v2.24.1.26) by UpdraftPlus.Com, DavidAnderson
    WP All Import Pro (v4.8.5) by Soflyy
    WP Better Attachments (v1.3.11) by Dan Holloran
    WP Crontrol (v1.16.1) by John Blackbourn & crontributors
    WP Downgrade | Specific Core Version (v1.2.6) by Reisetiger
    WP Offload Media Lite (v3.2.7) by Delicious Brains
    WPMU DEV Dashboard (v4.11.24) by WPMU DEV
    
    Must-use Plugins:
    ManageWP - Worker Loader (v1.0.0) by GoDaddy
    
    Drop-ins:
    advanced-cache.php - advanced-cache.php
    db.php - HyperDB

    Here is the diagnostic tool results.

    • This reply was modified 1 year ago by OgdenNews.
    Plugin Support Delicious Brains Support

    (@dbisupport)

    Hi @ogdennews,

    Thanks for sending that in. Regarding this error: “Delivery provider status cannot be determined. An error was encountered while attempting to offload a temporary file for Public delivery.” This usually means that WP Offload Media couldn’t upload a temp file (a txt file) to your bucket.

    Are you using a custom policy? If so, kindly check our documentation below for custom policies in Amazon S3.

    https://deliciousbrains.com/wp-offload-media/doc/custom-iam-policy-for-amazon-s3/

    I see in your diagnostics that debugging is disabled. Would you please try editing your wp-config.php file and replace this line –

    define( ‘WP_DEBUG’, false );

    With these lines –

    define(‘WP_DEBUG’, true);
    define(‘WP_DEBUG_LOG’, true);
    define(‘WP_DEBUG_DISPLAY’, false);

    This means that any errors are logged to /wp-content/debug.log, because some errors are not visible on screen. More details about that at https://www.ads-software.com/support/article/editing-wp-config-php/#wp_debug

    Can you click the “Check again” link in the Delivery provider notice? If it fails again, kindly check the debug.log file for any mention of S3.

    Another thing I noticed is that you seem to be using the old constants AWS_ACCESS_KEY_ID and AWS_ACCESS_KEY_KEY. We have received reports before of customers having issues using the old constants.

    Kindly check our guide below on how to setup AWS access using the new method. Please remove/comment out the old constants when using the new one.

    https://deliciousbrains.com/wp-offload-media/doc/amazon-s3-quick-start-guide/#save-access-keys

    Let us know how it goes for you.

    Thread Starter OgdenNews

    (@ogdennews)

    Same thing with new constants no errors about s3 in the debug.log and still does not work.

    site_url(): https://www.messengernews.net
    home_url(): https://www.messengernews.net
    Database Name:
    Table Prefix: oniStagingV2_
    WordPress: 6.2.4
    Web Server: Apache/2.4.57 () PHP/7.4.33
    PHP: 7.4.33
    MySQL: 8.0.32
    ext/mysqli: yes
    PHP Memory Limit: 256M
    WP Memory Limit: 40M
    Memory Usage: 55 MB
    Blocked External HTTP Requests: None
    WP Locale: en_US
    Organize offloads by month/year: Enabled
    WP_DEBUG: Yes
    WP_DEBUG_LOG: Yes
    WP_DEBUG_DISPLAY: No
    SCRIPT_DEBUG: No
    WP Max Upload Size: 100 MB
    PHP Time Limit: 300
    PHP Error Log: /usr/web/www.messengernews.net/wp-content/debug.log
    WP Cron: Enabled
    fsockopen: Enabled
    allow_url_fopen: Enabled
    OpenSSL: OpenSSL 1.0.2k 26 Jan 2017
    cURL: 8.2.1
    Zlib Compression: Enabled
    PHP GD: bundled (2.1.0 compatible)
    Imagick: Enabled
    Basic Auth: Disabled
    Proxy: Disabled Total Media Items: 40,090
    Total Offloaded Media Items: 40,071
    Total Not Offloaded Media Items: 19 Media Library Items: 40,090
    Offloaded Media Library Items: 40,071
    Not Offloaded Media Library Items: 19 Number of Image Sizes: 6 Names and Dimensions of Image Sizes:
    thumbnail (470x300)
    medium (800x500)
    large (1100x840)
    1536x1536 (1536x1536)
    2048x2048 (2048x2048) WP_CONTENT_DIR: /usr/web/www.messengernews.net/wp-content
    WP_CONTENT_URL: https://www.messengernews.net/wp-content
    UPLOADS: Not defined
    WP_PLUGIN_DIR: /usr/web/www.messengernews.net/wp-content/plugins
    WP_PLUGIN_URL: https://www.messengernews.net/wp-content/plugins AS3CF_PROVIDER: Not defined
    AS3CF_BUCKET: Not defined
    AS3CF_REGION: Not defined
    AS3CF_SETTINGS: Defined
    AS3CF_SETTINGS Keys: access-key-id, provider, secret-access-key Local URL:
    https://www.messengernews.net/wp-content/uploads/2024/03/example.jpg
    Offload URL:
    https://ogden_images.s3.amazonaws.com/www.messengernews.net/images/2024/03/04092009/example.jpg OME Metadata Version: 12 Custom tables:
    oniStagingV2_as3cf_items: Ok Storage Provider: Amazon S3
    Use Server Roles: Off
    Key File Path: N/A
    Access Keys Set: Yes
    Access Key ID Define: Not defined
    Secret Access Key Define: Not defined Bucket: ogden_images
    Region: (empty) Offload Media: On
    Remove Local Media: On
    Enable Add Prefix to Bucket Path: On
    Custom Prefix for Bucket Path: www.messengernews.net/images/
    Add Year & Month to Bucket Path: On
    Add Object Version to Bucket Path: On Delivery Provider: Amazon S3
    Deliver Offloaded Media: On Force HTTPS: Off Active Theme Name: Ogden Newspaper Core V2
    Active Theme Version: 1.0
    Active Theme Folder: coreV2 Active Plugins:
    Automatic Post Date Filler (v1.2) by Devtard
    Categories Images (v3.1.0) by Muhammad El Zahlan
    Classic Editor (v1.6.3) by WordPress Contributors
    Classic Widgets (v0.3) by WordPress Contributors
    CloudSearch (v2.12.0) by Andrea Landonio
    Comet Cache Pro (v170220) by WebSharks, Inc.
    Custom Registration (v1.1) by Mark Henry
    Gravity Forms (v2.8.4) by Gravity Forms
    Gravity Forms reCAPTCHA Add-On (v1.4.0) by Gravity Forms
    Hummingbird Pro (v3.7.2) by WPMU DEV
    Image Widget (v4.4.9) by The Events Calendar
    MWW Scheduled Post Trigger (v3.2) by Moss Web Works
    ManageWP - Worker (v4.9.19) by GoDaddy
    MarketPress (v3.3.0) by WPMU DEV
    No Category Base (WPML) (v1.3) by Marios Alexandrou
    Ogden - Custom Modifications Plugin (v1.22) by Ogden Newspapers - Jim George
    PublishPress Future (v3.2.0) by PublishPress
    Raw HTML (v1.6.4) by Janis Elsts
    Smush Pro (v3.15.5) by WPMU DEV
    TotalPoll Pro (v3.3.3) by MisqTech
    UpdraftPlus - Backup/Restore (v2.24.1.26) by UpdraftPlus.Com, DavidAnderson
    WP All Import Pro (v4.8.6) by Soflyy
    WP Better Attachments (v1.3.11) by Dan Holloran
    WP Crontrol (v1.16.1) by John Blackbourn & crontributors
    WP Offload Media Lite (v3.2.7) by Delicious Brains
    WPMU DEV Dashboard (v4.11.24) by WPMU DEV Must-use Plugins:
    ManageWP - Worker Loader (v) by ManageWP Drop-ins:
    advanced-cache.php - advanced-cache.php
    db.php - HyperDB
    • This reply was modified 1 year ago by OgdenNews.
    Thread Starter OgdenNews

    (@ogdennews)

    Hello,

    I wanted to let you know this was an issue with smush pro 3.15.5 on Feb 6th update has an issue with wp all import and Offload media lite. Thank you very much.

    -Shawn

    Thread Starter OgdenNews

    (@ogdennews)

    Hello,

    Smush pro plugin developers is saying that ?“Delivery provider status cannot be determined. An error was encountered while attempting to offload a temporary file for Public delivery.” is causing the issue with import.

    Any help would be appreciated.

    Plugin Support Delicious Brains Support

    (@dbisupport)

    Hi @ogdennews,

    You mentioned that it was an issue with Smush Pro. May we know how you found out? Could you try deactivating that plugin, then doing the import by WP All Import again? Does the issue still happen?

    If you have a staging site, we recommend performing the same process while all other plugins are deactivated. Please also try using a default WordPress theme like Twenty Twenty, to help rule out any conflicts.

    Let us know how it goes for you.

    Thread Starter OgdenNews

    (@ogdennews)

    Thanks for the information. We have deactivated the plugin and the folks at smush pro could replicate the issue. Right now we’re waiting back to hear more information.

    • This reply was modified 11 months, 3 weeks ago by OgdenNews.

    Hey there @ogdennews, have you heard back from Smush Pro folks? I believe we may be running into a similar issue and I’m curious if you’ve learned more.

    Thanks in advance!

    Thread Starter OgdenNews

    (@ogdennews)

    The smush pro folks are still looking into the issue. I will let you know when its resolved.

    Thread Starter OgdenNews

    (@ogdennews)

    Hello,

    Update smush pro to the lastest version 3.16.1.

    • Improvement: Better compatibility with page builders
    • Improvement: General code improvements
    • Fix: WP Offload integration preventing some formats from getting offloaded

    Thanks, Shawn

    Plugin Author Delicious Brains

    (@deliciousbrains)

    Thanks for letting us know that Smush Pro has been released with a fix for the issue.

    –IJ

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Access Denied’ is closed to new replies.