Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter shamrock82

    (@shamrock82)

    Great! 🙂

    However, your plugin page https://ww.wp.xz.cn/plugins/wp-approve-user/ has the warning across the top:

    “This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.”

    … so it would be easy to assume it is stale or no longer supported. I’d recommend testing it with the latest versions of WP.

    Thread Starter shamrock82

    (@shamrock82)

    Could you update this thread or link to your release notes please if you push a fix that negates needing to manually implement the functions.php code fix above please? Thx.

    Thread Starter shamrock82

    (@shamrock82)

    To help others, I wanted to share that I’ve determined this is a conflict between MemberPress and this PDF Embedder plugin. It would be helpful if you could add this to the plugin’s documentation @slaffik

    MemberPress Support: “After checking the issue, I noticed a conflict between the PDF Embed plugin and MemberPress. I think that’s because the PDF Embed plugin adds its stylesheets into the body, not into the head, which is not the best practice. So, I came up with this code snippet to load the PDF Embed stylesheet into the head, add it to the site theme’s functions.php file, and the PDF enclosure renders correctly now for logged out users.”

    // Load the PDF Embed style add_action('wp_enqueue_scripts', function() { wp_enqueue_style( 'pdfemb_embed_pdf_css', plugins_url('pdf-embedder/assets/css/pdfemb.min.css') ); });

    I requested a code fix that would only load the PDF Embedder CSS if a PDF was actually embedded on a page, rather than loading it (potentially when not required) on EVERY page.

    // Load the PDF Embed style add_action('wp_enqueue_scripts', function() { if ( has_block('pdfemb/pdf-embedder-viewer') ) { wp_enqueue_style( 'pdfemb_embed_pdf_css', plugins_url('pdf-embedder/assets/css/pdfemb.min.css') ); } });

    Thread Starter shamrock82

    (@shamrock82)

    We’re using WP Offload Media on our site (by WP Engine).

    WP Engine are telling me:

    [Me] I’m assuming we don’t need to implement any extra customizations to the AWS Cloudfront server for Assets, is that correct?
     
    [WP Engine] Yes, as long as our Assets Pull guide was followed, it should be enough. The Assets Pull will take care of rewriting URLs for styles (CSS) and scripts (JS) which are registered through the WordPress enqueue system. If this isn’t the case for those scripts, you may try using the filter “as3cf_get_asset”, if possible. Please see documentation below on how it’s used:
     
    https://deliciousbrains.com/wp-offload-media/doc/get-asset-url/
     
    It may say at the top that it’s deprecated, but it’s only the old add-on plugin that is deprecated. The filter is still being used on the current code of WP Offload Media.

    Does PDF Embedder use the “WordPress enqueue system” to inject CSS calls into pages?

    Thread Starter shamrock82

    (@shamrock82)

    We don’t have caching enabled on our site because MemberPress advise against it and I have disabled the only plugin we had that optimizes/minifies CSS or JS (SWIS Performance).

    Have you tested your plugin with Beaver Builder? Are there customizations that need to be made to your plugin or to our Beaver Builder theme in order for PDF Embedder to work properly?

    Thread Starter shamrock82

    (@shamrock82)

    ChatGPT has determined that the PDF Embedder CSS and JS is not being loaded for logged out users.

    Link to chat (skip over the 2nd interaction, I was checking custom CSS we inject on our pages): https://chatgpt.com/share/67dca113-22d0-8010-aee0-3333c7ae1dca

    We haven’t implemented any MemberPress restrictions on this particular post, nor have we implemented any file-type-wide restrictions using MemberPress, so I can’t figure out what is causing this.

    Thread Starter shamrock82

    (@shamrock82)

    AppPresser have a solution for disabling WP plugins in the app version of one’s website:

    https://docs.apppresser.com/article/438-plugin-blocker

    • This reply was modified 1 year, 2 months ago by shamrock82.
    Thread Starter shamrock82

    (@shamrock82)

    This issue is also affecting MemberPress pages in WP Admin, specifically MemberPress > Settings initial navigation. Scrolling down restores the page layout, but the page appears weirdly blank until the user does that.

    Thread Starter shamrock82

    (@shamrock82)

    Thread Starter shamrock82

    (@shamrock82)

    Thanks!

    Thread Starter shamrock82

    (@shamrock82)

    Marking resolved

    Thread Starter shamrock82

    (@shamrock82)

    Ah, I came across this https://wp-pdf.com/docs/drag-and-drop-layout-builders/

    It says the Text module in Beaver Builder supports the [pdf-embedder url=””] shortcode. Thanks, I didn’t realize that.

    Thread Starter shamrock82

    (@shamrock82)

    Thanks Val! To clarify, I’ve never had this plugin working, it’s failed in the same way on 2 different WP instances (both WP Engine) I’ve tested on.

    Using Chrome Dev Tools, here’s what I see in the 502 Bad Gateway request response:

    General:

    Request URL: https://scldevlp.wpenginepowered.com/wp-json/media-cleaner/v1/extract_references
    Request Method: POST
    Status Code: 502 Bad Gateway
    Remote Address: 141.193.213.11:443
    Referrer Policy: strict-origin-when-cross-origin

    Response Headers:

    Alt-Svc: h3=":443"; ma=86400
    Cache-Control: private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Cf-Ray: 87c9b9234a002aa4-LAX
    Content-Length: 6412
    Content-Type: text/html; charset=UTF-8
    Date: Tue, 30 Apr 2024 18:53:04 GMT
    Expires: Thu, 01 Jan 1970 00:00:01 GMT
    Referrer-Policy: same-origin
    Server: cloudflare
    X-Frame-Options: SAMEORIGIN

    Request Headers:

    :authority: scldevlp.wpenginepowered.com
    
    :method:POST
    
    :path: /wp-json/media-cleaner/v1/extract_references
    
    :scheme: https
    
    Accept:
    
    */*
    
    Accept-Encoding: gzip, deflate, br, zstd
    
    Accept-Language: en-US,en;q=0.9
    
    Authorization: Basic c2NsZGV2bHA6ZWY5MTFhMzU=
    
    Cache-Control: no-cache
    
    Content-Length: 32
    
    Content-Type: application/json
    
    Cookie: wordpress_test_cookie=WP%20Cookie%20check; _ga=GA1.1.1962695284.1714252481; wp_lang=en_US; wpe-auth=5bfe14d731590d92644d4953a7571078250b240cbf177d37c89025ffd93ba290; wordpress_logged_in_2d395f41fe5c6d41f09beb0a010dcb18=donalrafferty%7C1715696081%7CwxHGTz0ZAEhCV5jL6ddzTNcc5b8f15RX4YbuOLDt1UK%7C0fbcf8fe03257b33f190ae00c9531e3dc6652f0f49e28382d010b921a5c9fbfe; wp-settings-13596=editor%3Dtinymce%26posts_list_mode%3Dlist%26libraryContent%3Dbrowse%26imgsize%3Dlarge%26nua_registration_complete_message_editor%3Dtmce%26nua_registration_message_editor%3Dtmce; wp-settings-time-13596=1714486481; _ga_R855W6FKQ7=GS1.1.1714500399.5.0.1714500399.0.0.0
    
    Origin: https://scldevlp.wpenginepowered.com
    
    Pragma: no-cache
    
    Priority:u=1, i
    
    Referer: https://scldevlp.wpenginepowered.com/wp-admin/upload.php?page=wpmc_dashboard
    
    Sec-Ch-Ua: "Chromium";v="124", "Google Chrome";v="124", "Not-A.Brand";v="99"
    
    Sec-Ch-Ua-Mobile: ?0
    
    Sec-Ch-Ua-Platform: "macOS"
    
    Sec-Fetch-Dest: empty
    
    Sec-Fetch-Mode: cors
    
    Sec-Fetch-Site: same-origin
    
    User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
    
    X-Wp-Nonce: 2f52d127f4

    Does anything here point to what the issue is?

    The HAR file for the request is here (which you can open in Chrome Dev Tools yourself) – you’ll find the 502 at line 409952 if viewing it in a text editor.

    Thread Starter shamrock82

    (@shamrock82)

    Adding relevant info here in the hopes of first time resolution 🙂

    Based on this I have requested WP Engine to add a cache exclusion on our server for the path:

    ^/wp-json/media-cleaner/ 

    I have reviewed https://meowapps.com/media-cleaner/debug-issues/ and tried to lighten the server load by adjusting Advanced Settings: https://drive.google.com/file/d/1ODiN40a1HHGjVDI7wXjzjw57lg-2TsVQ/view?usp=drive_link

    I have reviewed https://meowapps.com/fix-timeout-error-wordpress/ but it doesn’t mention 502 errors.

    We have the following plugins activated on our WP site, in case there are known conflicts you know of:

    • AddToAny Share Buttons
    • AdSanity
    • AdSanity – Rotating Ad Widget
    • AppPresser
    • Beaver Builder Plugin (Pro Version)
    • Beaver Themer
    • Better Notifications for WP
    • Blocks for Eventbrite
    • Custom Post Type UI
    • Disable Comments
    • Easy WP SMTP
    • FitVids for WordPRess
    • FV Top Level Categories
    • GP Google Sheets
    • GP Limit Checkboxes
    • GP Limit Submissions
    • Gravity Forms
    • Gravity Forms + Custom Post Types
    • Gravity Forms Dropbox Add-On
    • Gravity Forms Mailchimp Add-On
    • Gravity Forms PayPal Standard Add-On
    • Gravity Forms Polls Add-On
    • Gravity Forms Stripe Add-On
    • Gravity Forms Survey Add-On
    • Gravity Forms Zapier Add-On
    • Gravity Perks
    • JWT Authentication for WP-API
    • Media Cleaner
    • Media File Renamer: Rename for better SEO (AI-Powered)
    • MemberPress Beaver Builder Content Protections
    • MemberPress Corporate Accounts
    • MemberPress Developer Tools
    • MemberPress MailChimp 3.0
    • MemberPress PDF Invoice
    • MemberPress Pro
    • Members
    • Nav Menu Roles
    • PDF Embedder
    • PowerPack for Beaver Builder
    • Custom Mobile App Helper
    • Search Exclude
    • Swift SMTP (formerly Welcome Email Editor)
    • The Events Calendar
    • The Events Calendar Pro
    • The Events Calendar: Eventbrite Tickets
    • The Events Calendar: Filter Bar
    • Ultimate Addons for Beaver Builder
    • Under Construction
    • User Switching
    • WP All Import Pro
    • WP Approve User
    • WP Crontrol
    • WP Engine Smart Plugin Manager
    • WP Featherlight
    • WP Offload Media
    • WP-ShowHide
    • YIKES Simple Taxonomy Ordering
    • Yoast Duplicate Post
    • Yoast SEO

    I’ve also just confirmed that the “Unapprove Email” does NOT actually get sent when an Unapproved User is deleted, so it seems there’s a bug with the plugin there.

Viewing 15 replies - 1 through 15 (of 18 total)