dylandawg
Forum Replies Created
-
Forum: Plugins
In reply to: [Any Post Import Export with ACF] Only works for Posts of the type POST?Hello, i made changes to the plugin. I can send you my copy for your comparison:
https://www.mediafire.com/file/3l6q4prd1n296lh/any-post-import-export-with-acf-bugfix.zip/file
1. Fatal error during export: undefined function
Bug
- PHP fatal error:
Call to undefined function handle_acf_field() - Triggered when clicking Export
Cause
- Function was defined as:
apie_handle_acf_field() - But called as:
handle_acf_field() - Missing plugin prefix caused runtime failure
Fix
- All calls updated to:
apie_handle_acf_field()
2. ACF recursive export silently broken for nested fields
Bug
- Nested ACF structures (group, repeater, gallery) exported incompletely or not at all
Cause
- Recursive calls referenced the wrong function name
- Execution stopped before recursion could complete
Fix
- Corrected recursive calls to use the prefixed handler
- Recursion now works reliably for deeply nested ACF fields
3. Export produced βweird symbolsβ in JSON output
Bug
- Exported JSON contained HTML entities like:
" ' < > - JSON was technically valid but semantically corrupted
Cause
- JSON output was passed through:
echo esc_html($json_data); esc_html()is not valid for JSON output- It converts quotes and special characters into HTML entities
Fix
- Removed HTML escaping from JSON output
- JSON is now emitted raw using:
echo $json_data; - Content, ACF fields, and Elementor data now deserialize correctly
4. ACF import: wrong media upload function name
Bug
- Galleries and image fields failed to import
- No PHP error, fields silently empty
Cause
- Import helper called:
image_upload_and_get_id() - Actual function name:
apie_image_upload_and_get_id()
Fix
- Corrected all calls to the prefixed function
5. ACF import: unreachable and duplicate logic paths
Bug
- Some branches in
apie_process_acf_field_values()were never executed
Cause
- Multiple redundant conditions:
elseif (isset($value['url'])) elseif (isset($value['url']) && $value['type'] == 'image') - Second condition could never be reached
Fix
- Collapsed logic into a single valid branch
- Ensured nested recursion always executes
6. Media upload overwrite risk
Bug
- Uploaded files could overwrite existing files in
wp-content/uploads
Cause
- Manual file write using:
file_put_contents($upload_path, $data) - No filename uniqueness check
Status
- Identified but not changed, by design
- Left intact to preserve original plugin behavior
7. Inconsistent download methods for media
Bug
- Images used
wp_remote_get() - Files used
file_get_contents()
Risk
file_get_contents()fails ifallow_url_fopenis disabled
Status
- Documented but not refactored
- Kept to avoid altering original logic
8. JSON import safety
Bug
- Import relied on decoded JSON without validating structure
Risk
- Invalid JSON could cause silent failures
Status
- Behavior confirmed and accepted
- No structural changes made to importer flow
Forum: Plugins
In reply to: [Any Post Import Export with ACF] Only works for Posts of the type POST?Nvm You vibe coded this, is a disaster full of major bugs.
i have disabled minification because it happens.
Forum: Plugins
In reply to: [Taxonomy Switcher] Didn’t work as expectedHi I don’t technically know how this plugin work.
I can tell you I moved core tag terms to a custom taxonomy and none of the posts had that term associated to them on the dashboard. They showed up as still having the core tag on the post list (even though the tag didn’t exist any more, it moved the tag not the associations).
So I did the inverse procedure, I moved all terms from the new custom taxonomy back to core tags.
And tried this plugin > https://wordpress.org/plugins/term-taxonomy-converter/I don’t know how they are doing it different than you but that plugin besides moving all tags to custom tax also associated all posts to the moved terms.
You should check it out and see if you wanted.
Hope that helps.Hello! I’ve disabled minify for logged in users since we don’t need it and it’s 1 less thing to worry about.
As for purging Cloudflare no. I don’t do that since CF doesn’t cache HTML and when I clear W3 caches it generates new minified files with new names so clearing the old cached assets that are no longer linked in the html won’t change the outcome.Correct me If I’m wrong.
Hi Marko thanks for helping me out.
Both logged in and out users get minified assets (but they have different names). If there is a way to disable that for logged in users I couldn’t find it.
If by update you mean if I click the button “Update media query string” ? No. I never click it cos clear all caches (I assume) randomized filenames and strings for me.
site url:
cdromance.orgThanks again for your assistance I appreciate it.
Forum: Plugins
In reply to: [EWWW Image Optimizer] Help with very poor scale quality on Media LibraryDone, let me know if you received it.
Forum: Requests and Feedback
In reply to: Move attachments serialized data to it’s own tablelet’s be honest here WP will never change this even if it benefits them.
thanks π
would you be interested on adding a setting to disable this log? It can get quite populous on big sites. We could use smaller backups.
i think by ‘no role’ they mean users that are not logged in.
will the logged out see no cache like an editor/author/admin or cache like a subscriber?
Forum: Plugins
In reply to: [Query Monitor] Fatal Errorit was my fault.
it drove me crazy.
it happens when you add some widget (classic widget) to a widget area. But that widget area is not included in the theme template.
I guess you can disregard this cos no one will be that stupid.
For admin user it doesn’t cache:
<!-- X-LiteSpeed-Cache-Control: no-cache,esi=on -->
<!-- Full varies: admin_bar:1;guest_mode:1;logged-in:1;role:99 -->I don’t know where it’s getting the no-cache from.
Thanks it tried. It’s so inconsistent, I’m testing same URL as guest incognito mode and the cache time keeps changing, I don’t know what settings to pick to make it stay calm.
<!-- Page cached by LiteSpeed Cache 6.5.2 on 2024-11-27 20:25:42 -->
<!-- X-LiteSpeed-Cache-Control: public,max-age=604800 -->
<!-- Full varies: +webp -->
<!-- Page cached by LiteSpeed Cache 6.5.2 on 2024-11-27 20:26:09 -->
<!-- X-LiteSpeed-Cache-Control: public,max-age=604800 -->
<!-- Full varies: +webp -->
<!-- Page cached by LiteSpeed Cache 6.5.2 on 2024-11-27 20:29:28 -->
<!-- X-LiteSpeed-Cache-Control: public,max-age=604800,esi=on -->
<!-- Full varies: guest_mode:1+webp -->
<!-- Page cached by LiteSpeed Cache 6.5.2 on 2024-11-27 20:32:57 -->
<!-- X-LiteSpeed-Cache-Control: public,max-age=604800,esi=on -->
<!-- Full varies: guest_mode:1+webp -->
<!-- Page cached by LiteSpeed Cache 6.5.2 on 2024-11-27 20:30:59 -->
<!-- X-LiteSpeed-Cache-Control: public,max-age=604800,esi=on -->
<!-- Full varies: guest_mode:1+webp -->Settings: (3 images inside)
View post on imgur.com
It happens with ajax enabled.
- PHP fatal error: