• I have the following image code in WordPress admin post edit screen.

    <figure class="alignright tcenter fs90p fwbold">
    <img src="https://wondervegas.s3.amazonaws.com/wp-content/uploads/2022/01/11082553/kidsintheatticowners.png" alt="Kids in the Attic Owners" width="178" height="203"/>
    <figcaption>Kids in the Attic</figcaption>
    </figure>

    but on the outside when viewing the page the image doesn’t show because it is being rewritten as such:

    https://wondervegas.com/wp-content/uploads/2022/01/kidsintheatticowners.png

    I have Rewrite Media URLs turned on.

    Thanks John

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter johnzenausa

    (@johnzenausa)

    Here are my diagnostic information:

    site_url(): https://wondervegas.com
    home_url(): https://wondervegas.com
    Database Name: dbisudmipicsgj
    Table Prefix: vwu_
    WordPress: 5.8.3 Multisite (subdomain)
    Multisite Site Count: 2
    Domain Mapping: Disabled
    Web Server: Apache
    PHP: 7.4.27
    MySQL: 5.7.32
    ext/mysqli: yes
    PHP Memory Limit: 768M
    WP Memory Limit: 64M
    Memory Usage: 32 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: Yes
    SCRIPT_DEBUG: No
    WP Max Upload Size: 1 MB
    PHP Time Limit: 120
    PHP Error Log: php_errorlog
    WP Cron: Enabled
    fsockopen: Enabled
    allow_url_fopen: Enabled
    OpenSSL: OpenSSL 1.1.1l FIPS  24 Aug 2021
    cURL: 7.66.0
    Zlib Compression: Enabled
    PHP GD: 2.2.5
    Imagick: Disabled
    Basic Auth: Disabled
    Proxy: Disabled
    
    Media Files: 38
    Offloaded Media Files: 18
    Not Offloaded Media Files: 20
    
    Number of Image Sizes: 16
    
    Names and Dimensions of Image Sizes: 
    thumbnail (150x150)
    medium (300x300)
    medium_large (768x0)
    large (1024x1024)
    1536x1536 (1536x1536)
    2048x2048 (2048x2048)
    thumbnail (150x150)
    medium (300x300)
    medium_large (768x0)
    large (1024x1024)
    woocommerce_thumbnail (300x300)
    woocommerce_single (600x0)
    woocommerce_gallery_thumbnail (100x100)
    shop_catalog (300x300)
    shop_single (600x0)
    shop_thumbnail (100x100)
    
    WP_CONTENT_DIR: /home/customer/www/wondervegas.com/public_html/wp-content
    WP_CONTENT_URL: https://wondervegas.com/wp-content
    UPLOADS: Not defined
    WP_PLUGIN_DIR: /home/customer/www/wondervegas.com/public_html/wp-content/plugins
    WP_PLUGIN_URL: https://wondervegas.com/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://wondervegas.com/wp?content/uploads/2022/01/photo.jpg
    Offload URL:
    https://wondervegas.s3.amazonaws.com/wp?content/uploads/2022/01/11094552/photo.jpg
    
    OME Metadata Version: 8
    
    Custom tables:
    vwu_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: wondervegas
    Region: (empty)
    Block All Public Access: Disabled
    
    Copy Files to Bucket: On
    Enable Path: On
    Custom Path: wp-content/uploads/
    Use Year/Month: On
    Object Versioning: On
    
    Delivery Provider: Amazon S3
    Rewrite Media URLs: On
    
    Force HTTPS: Off
    
    Remove Files From Server: On
    
    Active Theme Name: Storefront
    Active Theme Version: 3.9.1
    Active Theme Folder: storefront
    
    Active Plugins:
    MULTISITE MENU (v1.0.2) by John Cardell, Andrey Islentiev
    Network Posts Ext (v7.5.8) by John Cardell, Andrey Islentiev
    WP Offload Media Lite (v2.5.5) by Delicious Brains
    Plugin Author Delicious Brains

    (@deliciousbrains)

    On that page, the closest HTML I can see is the following…

    <figure class="alignright tcenter fs90p fwbold">
    <img src="https://wondervegas.com/wp-content/uploads/2022/01/kidsintheatticowners-min.png" alt="Kids in the Attic Owners" width="178" height="203">
    <figcaption>Kids in the Attic</figcaption>
    </figure>

    The image’s filename is kidsintheatticowners-min.png rather than kidsintheatticowners.png.

    Maybe the theme or another plugin is doing a client side JavaScript/AJAX rewrite?

    Or at render time it’s substituting in that “-min” which does not match any known Media Library item offloaded by WP Offload Media?

    -IJ

    Thread Starter johnzenausa

    (@johnzenausa)

    It’s okay, wasn’t worth the hassle so I redid it by uploading the files to my domains server.

    Thanks for the help.

    Note: That’s why the url is different.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Media url being rewritten on page’ is closed to new replies.