adsim
Forum Replies Created
-
Thanks. Hm, replacing sanitize_file_name with sanitize_title removes the dot from the path, but it doesn’t remove the error.
If I try to delete a uploaded file I nevertheless get the “Unauthorized Request!” error.I tried some things. On my development site I gone to dnd_get_upload_dir() function in the dnd-upload-cf7.php and outputted some variables in my error log.
So at first I looked up $random_folder:ob_start();
print_r( $random_folder );
$contents = ob_get_contents();
ob_end_clean();
error_log( $contents );No dot.
Then I looked up $uploads_dir from the line below:ob_start();
print_r( $uploads_dir );
$contents = ob_get_contents();
ob_end_clean();
error_log( $contents );There it is, the dot.
So I looked up sanitize_file_name( $random_folder ):ob_start();
print_r( sanitize_file_name( $random_folder) );
$contents = ob_get_contents();
ob_end_clean();
error_log( $contents );Also a dot.
So, for whatever reasons, sanitize_file_name adds here the dot.
Really strange.
P.S. I tried something else. I added a
echo sanitize_file_name( '13603e0f-192b-436f-b4f7-17c05f7865a5' );to random development sites simply in the page.php. Different plugins, different custom themes. The output is everytime the same: the string with a trailing dot.
- This reply was modified 6 months, 1 week ago by adsim.
Thanks @glenwpcoder. Interesting. Am I right the random name of the directory of the path is generated with the dnd_cf7_generate_cookie() function?
There everything seems to be ok. The string in the cookie contains no dot.
So the erroneous manipulation must take place later.It seems to be not related to server settings, because on my development site at another hoster the problem also occures.
Thanks for your quick answer. Can you tell me in which path the dot is?
https://advanced-simple.de/drag-and-drop-uploader-settings.png
The settings and site info are from the staging site, but the error appears there too.
`### wp-core ###
version: 6.8.3
site_language: de_DE
user_language: de_DE
timezone: +02:00
permalink: /blog/%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 0
default_comment_status: undefined
environment_type: production
user_count: 5
dotorg_communication: true
### wp-paths-sizes ###
wordpress_path: /var/www/vhosts/bancos.com/staging.bancos.com
wordpress_size: 84,41 MB (88512317 bytes)
uploads_path: /var/www/vhosts/bancos.com/staging.bancos.com/wp-content/uploads
uploads_size: 746,21 MB (782453817 bytes)
themes_path: /var/www/vhosts/bancos.com/staging.bancos.com/wp-content/themes
themes_size: 9,40 MB (9853848 bytes)
plugins_path: /var/www/vhosts/bancos.com/staging.bancos.com/wp-content/plugins
plugins_size: 160,47 MB (168267809 bytes)
fonts_path: /var/www/vhosts/bancos.com/staging.bancos.com/wp-content/uploads/fonts
fonts_size: directory not found
database_size: 58,42 MB (61259776 bytes)
total_size: 1,03 GB (1110347567 bytes)
### wp-dropins (2) ###
advanced-cache.php: true
maintenance.php: true
### wp-active-theme ###
name: Theme for BANCOS (bancos-theme)
version: 1.7.4
author: Sven Albrecht
author_website: https://advanced-simple.de/
parent_theme: none
theme_features: core-block-patterns, automatic-feed-links, html5, post-thumbnails, editor-style, widgets-block-editor, menus
theme_path: /var/www/vhosts/bancos.com/staging.bancos.com/wp-content/themes/bancos-theme
auto_update: Deaktiviert
### wp-themes-inactive (1) ###
Twenty Twenty-Five: version: 1.3, author: Das WordPress-Team, Automatische Aktualisierungen deaktiviert
### wp-plugins-active (29) ###
AccelerateWP: version: 3.19.0.1-1.1-27, author: CloudLinux, Automatische Aktualisierungen deaktiviert
Advanced Custom Fields Multilingual: version: 2.1.5, author: OnTheGoSystems, Automatische Aktualisierungen deaktiviert
Advanced Custom Fields PRO: version: 6.6.2, author: WP Engine, Automatische Aktualisierungen deaktiviert
Advanced Editor Tools: version: 5.9.2, author: Automattic, Automatische Aktualisierungen deaktiviert
Breadcrumb NavXT: version: 7.4.1, author: John Havlik, Automatische Aktualisierungen deaktiviert
CCM19 Integration: version: 1.1.9, author: Papoo Software & Media GmbH, Automatische Aktualisierungen deaktiviert
CF7 Apps: version: 3.2.1, author: CF7Apps, Automatische Aktualisierungen deaktiviert
Classic Editor: version: 1.6.7, author: WordPress Contributors, Automatische Aktualisierungen deaktiviert
Contact Form 7: version: 6.1.3, author: Rock Lobster Inc., Automatische Aktualisierungen deaktiviert
Drag and Drop Multiple File Upload for Contact Form 7: version: 1.3.9.2, author: Glen Don L. Mongaya, Automatische Aktualisierungen deaktiviert
Enhanced Media Library: version: 2.9.4, author: wpUXsolutions, Automatische Aktualisierungen deaktiviert
etracker Analytics: version: 2.7.6, author: etracker GmbH, Automatische Aktualisierungen deaktiviert
Internal Links Manager: version: 3.0.3, author: webraketen, Automatische Aktualisierungen deaktiviert
Migrate Guru: version: 5.88, author: Migrate Guru, Automatische Aktualisierungen deaktiviert
Post Type Switcher: version: 4.0.1, author: Triple J Software, Inc., Automatische Aktualisierungen deaktiviert
Redirection: version: 5.5.2, author: John Godley, Automatische Aktualisierungen deaktiviert
Responsive video embed: version: 0.5.2, author: Luuptek, Automatische Aktualisierungen deaktiviert
Safe SVG: version: 2.4.0, author: 10up, Automatische Aktualisierungen deaktiviert
Shariff Wrapper: version: 4.6.15, author: Jan-Peter Lambeck & 3UU, Automatische Aktualisierungen deaktiviert
Simple History: version: 5.18.0, author: Pär Thernström, Automatische Aktualisierungen deaktiviert
Site Kit by Google: version: 1.165.0, author: Google (latest version: 1.166.0), Automatische Aktualisierungen deaktiviert
WPCode Lite: version: 2.3.1, author: WPCode, Automatische Aktualisierungen deaktiviert
WPML Media Translation: version: 3.0.0, author: OnTheGoSystems, Automatische Aktualisierungen deaktiviert
WPML Multilingual CMS: version: 4.8.4, author: OnTheGoSystems (latest version: 4.8.5), Automatische Aktualisierungen deaktiviert
WPML Multilingual for CF7: version: 1.3.3, author: OnTheGoSystems, Automatische Aktualisierungen deaktiviert
WPML String Translation: version: 3.4.1, author: OnTheGoSystems, Automatische Aktualisierungen deaktiviert
Yoast Duplicate Post: version: 4.5, author: Enrico Battocchi & Team Yoast, Automatische Aktualisierungen deaktiviert
Yoast SEO: version: 26.3, author: Team Yoast (latest version: 26.4), Automatische Aktualisierungen deaktiviert
Yoast SEO Premium: version: 25.0, author: Team Yoast, Automatische Aktualisierungen deaktiviert
### wp-media ###
image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1693
imagemagick_version: ImageMagick 6.9.13-25 Q16 x86_64 18639 https://legacy.imagemagick.org
imagick_version: 3.8.0
file_uploads: 1
post_max_size: 2G
upload_max_filesize: 2G
max_effective_size: 2 GB
max_file_uploads: 20
imagick_limits:
imagick::RESOURCETYPE_AREA: 736 GB
imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
imagick::RESOURCETYPE_FILE: 6144
imagick::RESOURCETYPE_MAP: 368 GB
imagick::RESOURCETYPE_MEMORY: 184 GB
imagick::RESOURCETYPE_THREAD: 1
imagick::RESOURCETYPE_TIME: 0
imagemagick_file_formats: 3FR, 3G2, 3GP, A, AAI, AI, APNG, ART, ARW, AVI, AVS, B, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FLV, FRACTAL, FTP, FTS, G, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, R, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCREENSHOT, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YCbCr, YCbCrA, YUV
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM
ghostscript_version: 9.27
### wp-server ###
server_architecture: Linux 4.18.0-553.37.1.lve.el8.x86_64 x86_64
httpd_software: Apache
php_version: 8.3.27 64bit
php_sapi: fpm-fcgi
max_input_variables: 5000
time_limit: 300
memory_limit: 2048M
max_input_time: 300
upload_max_filesize: 2G
php_post_max_size: 2G
curl_version: 7.61.1 OpenSSL/1.1.1k
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: true
static_robotstxt_file: true
current: 2025-11-20T10:26:07+00:00
utc-time: Thursday, 20-Nov-25 10:26:07 UTC
server-time: 2025-11-20T12:26:05+02:00
### wp-database ###
extension: mysqli
server_version: 10.6.21-MariaDB-cll-lve
client_version: mysqlnd 8.3.27
max_allowed_packet: 16777216
max_connections: 151
### wp-constants ###
WP_HOME: https://staging.bancos.com
WP_SITEURL: https://staging.bancos.com
WP_CONTENT_DIR: /var/www/vhosts/bancos.com/staging.bancos.com/wp-content
WP_PLUGIN_DIR: /var/www/vhosts/bancos.com/staging.bancos.com/wp-content/plugins
WP_MEMORY_LIMIT: 128M
WP_MAX_MEMORY_LIMIT: 128M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: true
CONCATENATE_SCRIPTS: true
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: undefined
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8
DB_COLLATE: undefined
### wp-filesystem ###
wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
fonts: does not exist
### acf ###
version: 6.6.2
plugin_type: PRO
update_source: ACF Direct
activated: true
activated_url: https://staging.bancos.com
license_type: Personal
license_status: active
subscription_expires: 1784620871
ui_field_groups: 42
php_field_groups: 0
json_field_groups: 0
rest_field_groups: 0
post_types_enabled: true
ui_post_types: 5
json_post_types: 0
ui_taxonomies: 8
json_taxonomies: 0
ui_options_pages_enabled: true
ui_options_pages: 0
json_options_pages: 0
php_options_pages: 5
rest_api_format: light
registered_acf_blocks: 0
blocks_per_api_version:
blocks_per_acf_block_version:
blocks_using_post_meta: 0
preload_blocks: true
admin_ui_enabled: true
field_type-modal_enabled: true
field_settings_tabs_enabled: false
shortcode_enabled: true
registered_acf_forms: 0
json_save_paths: 1
json_load_paths: 1
### google-site-kit ###
version: 1.165.0
php_version: 8.3.27
wp_version: 6.8.3
reference_url: https://staging.bancos.com
amp_mode: no
site_status: not-connected
user_status: not authenticated
verification_status: not-verified
connected_user_count: 1
active_modules: site-verification, search-console, ads, analytics-4, tagmanager, pagespeed-insights
recoverable_modules: none
required_scopes:
openid: ⭕
https://www.googleapis.com/auth/userinfo.profile: ⭕
https://www.googleapis.com/auth/userinfo.email: ⭕
https://www.googleapis.com/auth/siteverification: ⭕
https://www.googleapis.com/auth/webmasters: ⭕
https://www.googleapis.com/auth/analytics.readonly: ⭕
https://www.googleapis.com/auth/tagmanager.readonly: ⭕
capabilities:
googlesitekit_authenticate: ✅
googlesitekit_setup: ✅
googlesitekit_view_posts_insights: ⭕
googlesitekit_view_dashboard: ⭕
googlesitekit_manage_options: ⭕
googlesitekit_update_plugins: ⭕
googlesitekit_view_splash: ✅
googlesitekit_view_authenticated_dashboard: ⭕
googlesitekit_view_wp_dashboard_widget: ⭕
googlesitekit_view_admin_bar_menu: ⭕
googlesitekit_view_shared_dashboard: ⭕
googlesitekit_read_shared_module_data::["search-console"]: ⭕
googlesitekit_read_shared_module_data::["analytics-4"]: ⭕
googlesitekit_read_shared_module_data::["pagespeed-insights"]: ⭕
googlesitekit_manage_module_sharing_options::["search-console"]: ⭕
googlesitekit_manage_module_sharing_options::["analytics-4"]: ⭕
googlesitekit_manage_module_sharing_options::["pagespeed-insights"]: ⭕
googlesitekit_delegate_module_sharing_management::["search-console"]: ⭕
googlesitekit_delegate_module_sharing_management::["analytics-4"]: ⭕
googlesitekit_delegate_module_sharing_management::["pagespeed-insights"]: ⭕
enabled_features:
adsPax: ⭕
googleTagGateway: ⭕
gtagUserData: ⭕
privacySandboxModule: ⭕
proactiveUserEngagement: ⭕
setupFlowRefresh: ⭕
active_conversion_event_providers:
contact-form-7: contact
consent_mode: disabled
consent_api: not-detected
search-console_shared_roles: none
search-console_management: owner
analytics-4_shared_roles: none
analytics-4_management: owner
pagespeed-insights_shared_roles: none
pagespeed-insights_management: all_admins
key_metrics_status: Eingerichtet und aktiviert
key_metrics_source: Individualisierte Messwerte
search_console_property: sc-domain:bancos.com
ads_conversion_tracking_id: AW-1•••••••••
analytics_4_account_id: 3484•••••
analytics_4_property_id: 4811706••
analytics_4_web_data_stream_id: 1035•••••••
analytics_4_measurement_id: G-JZ••••••••
analytics_4_use_snippet: yes
analytics_4_available_custom_dimensions: googlesitekit_post_type
analytics_4_ads_linked: false
analytics_4_ads_linked_last_synced_at: undefined
analytics_4_site_kit_audiences: New visitors, Returning visitors
tagmanager_account_id: 6006••••••
tagmanager_container_id: GTM-M4G••••
tagmanager_amp_container_id: none
tagmanager_use_snippet: yesForum: Plugins
In reply to: [DHL Shipping Germany for WooCommerce] Fatal error after updatingHi @sal4sup,
I set up a staging site so I can easily test without interfering the business on the live site.
And surprise surprise, if I switch the language of the site to English everything is fine and I don’t get the error.
Well then? What can I do to get it work again with the language set to German?
I created a new user for you. So you should have got an email on your dhlsupport(at)progressus.io from https://raps-stage.advanced-web.dev
Hi @mahfuzurwp , we use a code snippet for this:
add_action( 'woocommerce_checkout_process', 'wc_minimum_order_amount' );
add_action( 'woocommerce_before_cart' , 'wc_minimum_order_amount' );
function wc_minimum_order_amount() {
// Set this variable to specify a minimum order value
$minimum = 20;
if ( WC()->cart->subtotal < $minimum ) {
if( is_cart() ) {
wc_print_notice(
sprintf( 'Der Mindestbestellwert beträgt %s, der Bestellwert Ihres Warenkorbs beträgt zur Zeit nur %s.' ,
woocommerce_price( $minimum ),
woocommerce_price( WC()->cart->subtotal )
), 'error'
);
} else {
wc_add_notice(
sprintf( 'Der Mindestbestellwert beträgt %s, der Bestellwert Ihres Warenkorbs beträgt zur Zeit nur %s.' ,
woocommerce_price( $minimum ),
woocommerce_price( WC()->cart->subtotal )
), 'error'
);
}
}
}I guess there should be a additional hook to be added?
Thanks.
Ok. I understand.
I could send you credentials for a test environment where the wrong behavior also happens.
I can confirm, that the parts do not get linked, come from the standard WordPress editor.
The “Glossar” custom post type uses only the standard content editor of WordPress and the texts containing keywords to get linked are also coming exclusivly from the standard content editor of WordPress.
The strange thing is, there are no “technical” differences I can see between the keywords that get linked and the keywords that don’t. They all come from the standard content editor. No custom fields, no shortcodes, nothing fancy.Sure. We use a custom build theme with several custom post types. No page builder.
What I tried so far:
1. Deactivating all plugins except Internal Link Juicer, Advanced Custom Fields and WPML (the last 2 because there are functions in the theme that rely on them)
2. Changing the theme to a standard theme (TwentyOne)
3. Change “$content = apply_filters(‘the_content’, get_the_content());” to “the_content;” inside the single template of the custom post type.
4. Copied the text of a custom post type post which contains keywords inside a normal post, to see if the keywords are grabbed in a normal post
5. Set up a dev enviroment at a different hostNothing changed something.
What’s weird is that it is working on a third of the keywords.
Hm, the scenario is I (or better my client) would like to have a retoure label for an already shipped order. So in this case the original label has been created and was used.
Our first thought was it must be possible to create the retoure label for this order in the moment we need it … as in AFTER the original label has been created (and was used!).
But that’s not possible because the option for the retoure label is now disabled.
You wrote I could delete the existing label, but can I do this if it was used for shipping the order?
Maybe I’m only confused because the German text of the link for deleting the label is “Label stornieren” which means “cancel the label” and this sounds like you get the money back for the shipping.It doesn’t work this way. Maybe I missed something, but I don’t know what it could be.
You can only generate one of both. If the retoure option is checked you can only create the retoure label, but not the shipping label. If the retoure option is NOT checked you can generate the shipping label, but have no chance to generate a retoure label.
You know what I mean?
You get an order in the WooCommerce shop, to send the ordered items you generate a shipping label for the order. Fine. But sometimes the customer want to send it back so you need a retoure label.
Any ideas what’s wrong?
Do you mean I must create the retoure label “preventive” together with every original label?
If the label has been created the retoure label option is disabled and the only way I found to enable it again is to set the status to “refunded”.