Martin
Forum Replies Created
-
Thank you very much for the valuable tip. The following code has now produced the desired result (although the metadata of the PDF remains unchanged, it doesn’t matter in my case).
function example_callback($file_name){
$submission = WPCF7_Submission::get_instance();
$new_filename = $submission->get_posted_data('name');
if(!empty($new_filename)){
$file_info = pathinfo($file_name);
$new_filename = sanitize_file_name($new_filename).'.'.$file_info['extension'];
$new_file_path = $file_info['dirname'].'/'.$new_filename;
rename($file_name,$new_file_path);
return $new_file_path;
}else{
return $file_name;
}
}
add_filter('nmr_create_attachment_file_name','example_callback',10,1);- This reply was modified 7 months ago by Martin.
Thank you very much for the response; the adjusted formula works excellently. Currently, no specific error message appears. How can I assign a specific error message to this field for this scenario? At the moment, it only indicates that not all fields have been filled in, which might not be clear to every form user.
Many thanks
Hi @mohammedeisa, thank you very much for the quick response; the Duplicator is now doing its job as expected. Perfect!
Hi @mohammedeisa, even when I deactivate all plugins except Duplicator and use a current standard WordPress theme, the same problem persists, it stays at 0%.
WP 6.5
Duplicator 1.5.8.1
PHP 8.2.16Hi varunmatomo, thanks for the reply, here is the report:
# Errors * Error MySQLi support: missing (Your PHP cli does not load the MySQLi extension. You might have archiving problems in Matomo but also others problems in your WordPress cron tasks. You should enable this extension) # Matomo * Matomo-Plugin-Version: 4.13.0 * Config existiert und ist schreibbar.: Ja ("$abs_path/wp-content/uploads/matomo/config/config.ini.php" ) * JS Tracker existiert und ist schreibbar.: Ja ("$abs_path/wp-content/uploads/matomo/matomo.js" ) * Plugin-Verzeichnisse: Yes ([{"pluginsPathAbsolute":"$abs_path\/wp-content\/plugins\/matomo\/plugins","webrootDirRelativeToMatomo":"..\/"}]) * Tmp-Verzeichnis schreibbar: Yes ($abs_path/wp-content/cache/matomo) * Matomo-Version: 4.13.0 * Matomo Blog idSite: 1 * Installierte Matomo-Version: 4.13.0 (Install date: 2023-01-16 00:01:30) * Upgrades outstanding: No * Upgrade in progress: No ## Endpoints * Matomo JavaScript Tracker URL: ($site_url/wp-content/uploads/matomo/matomo.js) * Matomo JavaScript Tracker - WP Rest API: ($site_url/wp-json/matomo/v1/hit/) * Matomo HTTP Tracking API: ($site_url/wp-content/plugins/matomo/app/matomo.php) * Matomo HTTP Tracking API - WP Rest API: ($site_url/wp-json/matomo/v1/hit/) ## Crons * Server-Zeit: 2023-01-15 23:11:24 * Blog-Zeit: 2023-01-16 00:11:24 (Die nachfolgenden Daten werden in der Blog-Zeitzone angezeigt) * Sync users & sites: Next run: 2023-01-17 00:05:15 (23 Stunden 53 Minuten) ( Last started: 2023-01-16 00:02:23 (-9 Minuten 1s). Last ended: 2023-01-16 00:02:23 (-9 Minuten 1s). Interval: daily) * Archive: Next run: 2023-01-16 01:05:15 (53 Minuten 51s) ( Last started: 2023-01-16 00:02:02 (-9 Minuten 22s). Last ended: 2023-01-16 00:02:17 (-9 Minuten 7s). Interval: hourly) * Update GeoIP DB: Next run: 2023-02-15 00:05:21 (29 Tage 23 Stunden) ( Last started: 2023-01-16 00:05:21 (-6 Minuten 3s). Last ended: 2023-01-16 00:05:23 (-6 Minuten 1s). Interval: matomo_monthly) ## Vorgeschriebene Prüfungen * PHP-Version >= : ok * PDO Erweiterung: ok * PDO\MYSQL Erweiterung: ok * MYSQLI Erweiterung: ok * Weitere erforderliche Anforderungen: ok * Erforderliche Funktionen: ok * Ben?tigte PHP Konfiguration (php.ini): ok * Verzeichnisse mit Schreibzugriff: ok * Verzeichnisse mit Schreibzugriff auf Tag Manager: ok ## Optionale Prüfungen * 64-bit PHP Bin?r: ok * Tracker-Status: ok * Speicherlimit: ok * Zeitzone: ok * ?ffnen einer URL: ok * PageSpeed ist deaktiviert: ok * GD > 2.x + FreeType (Grafiken): ok * Andere Erweiterungen: ok * Andere Funktionen: ok * Dateisystem: ok * Letzter erfolgreicher Abschluss der Archivierung: ok * Datenbankf?higkeiten: ok * Maximale Packetgr??e: ok * Standorterkennung: ok * Update über HTTPS: ok * Supports Async Archiving: No * Location provider ID: geoip2php * Location provider available: Yes * Location provider working: Yes * Matomo URL: Yes ($site_url/wp-content/plugins/matomo/app) ## Matomo Settings * Track mode: disabled * Track codeposition: footer * Track api endpoint: default * Track js endpoint: default * Version history: 4.13.0 * Core version: 4.13.0 * Last tracking settings update: 1673823737 * Last settings update: 1673823737 ## Logs * Keine: # WordPress * Home URL: $site_url * Site URL: $site_url * WordPress Version: 6.1.1 * Number of blogs: 1 * Multisite Enabled: No * Network Enabled: No * WP_DEBUG: No * WP_DEBUG_DISPLAY: Yes * WP_DEBUG_LOG: No * DISABLE_WP_CRON: - * FORCE_SSL_ADMIN: Yes * WP_CACHE: No * CONCATENATE_SCRIPTS: - * COMPRESS_SCRIPTS: - * COMPRESS_CSS: - * ENFORCE_GZIP: - * WP_LOCAL_DEV: - * WP_CONTENT_URL: $site_url/wp-content * WP_CONTENT_DIR: $abs_path/wp-content * UPLOADS: - * BLOGUPLOADDIR: - * DIEONDBERROR: - * WPLANG: - * ALTERNATE_WP_CRON: - * WP_CRON_LOCK_TIMEOUT: 60 * WP_DISABLE_FATAL_ERROR_HANDLER: - * MATOMO_SUPPORT_ASYNC_ARCHIVING: - * MATOMO_TRIGGER_BROWSER_ARCHIVING: - * MATOMO_ENABLE_TAG_MANAGER: - * MATOMO_SUPPRESS_DB_ERRORS: - * MATOMO_ENABLE_AUTO_UPGRADE: - * MATOMO_DEBUG: - * MATOMO_SAFE_MODE: - * MATOMO_GLOBAL_UPLOAD_DIR: - * MATOMO_LOGIN_REDIRECT: - * Permalink Structure: /%category%/%postname%/ * Possibly uses symlink: No * Upload base url: $site_url/wp-content/uploads * Upload base dir: $abs_path/wp-content/uploads * Upload url: $site_url/wp-content/uploads * Custom upload_path: * Custom upload_url_path: * Compatible content directory: Yes # WordPress Plugins * BBQ Firewall: 20221002 * Classic Editor: 1.6.2 * Classic Widgets: 0.3 * Cookiebot CMP by Usercentrics | The reliable, flexible and easy to use consent solution: 4.2.3 * Disable Author Archives: 1.3.1 * Duplicator: 1.5.1 (Network enabled) * Jetpack: 11.7 * Jetpack Boost: 1.6.0 * Kaya Login Captcha: 1.0.0 * Matomo Analytics - Ethical Stats. Powerful Insights.: 4.13.0 * Mobile Menu: 2.8.3 * OSM: 6.0.1 * Rank Math SEO: 1.0.106 * Rank Math SEO PRO: 3.0.27 * Remove Google Fonts References: 2.6 * Simple Job Board: 2.10.3 * W3 Total Cache: 2.2.11 (Network enabled) * WP-Optimize - Clean, Compress, Cache: 3.2.10 * WP Updates Notifier: 1.6.0 * Yoast Duplicate Post: 4.5 * Active Plugins: 16 (block-bad-queries classic-editor classic-widgets cookiebot disable-author-archives duplicate-post duplicator kaya-login-captcha matomo mobile-menu osm remove-google-fonts-references seo-by-rank-math-pro seo-by-rank-math simple-job-board wp-updates-notifier) * Theme: Divi (divi-child) # Server * Server Info: Apache * Apache AddHandler support: Supported * PHP OS: Linux * PHP Version: 8.1.13 * PHP SAPI: fpm-fcgi * PHP Binary Name: php81-fpm * PHP Maxmind DB extension: Not loaded * PHP Error Reporting: 4437 After bootstrap: 4437 * PHP Found Binary: php -q * Timezone: UTC * WP timezone: Europe/Berlin * Locale: de_DE * User Locale: de_DE * Memory Limit: 256M (At least 128MB recommended. Depending on your traffic 256MB or more may be needed.) * WP Memory Limit: 40M * WP Max Memory Limit: 256M * Timezone version: 0.system * Time: 1673824285 * Max Execution Time: 30 * Max Post Size: 200M * Max Upload Size: 209715200 * Max Input Vars: 3000 * Disabled PHP functions: No * zlib.output_compression is off: Yes * Curl Version: 7.68.0, OpenSSL/1.1.1f * Suhosin installed: No # PHP cli * PHP cli Version: 7.2.34-nmm6 * Error MySQLi support: missing (Your PHP cli does not load the MySQLi extension. You might have archiving problems in Matomo but also others problems in your WordPress cron tasks. You should enable this extension) # Database * MySQL Version: 10.5.18 * Mysqli Connect: Yes * Force MySQL over Mysqli: No * DB Prefix: wp_ * DB CHARSET: utf8mb4 * DB COLLATE: * SHOW ERRORS: No * SUPPRESS ERRORS: No * Uses Socket: No * Uses IPv6: No * Matomo tables found: 38 * DB tables exist: Yes * Matomo users found: 3 * Matomo sites found: 1 * Erforderliche Berechtigungen: OK # Browser * Browser: (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36) * Language: de-de,de,en-us,en
Hello, I have received the following reply from the theme author:
“Please note that the main JS file responsible for the slider is in Divi folder:
scripts.min.js
However, it is not the only file from where the slider scripts are coming. There are number of file from the script are coming and not recommended to alter the file as other modules are working on it as well.”It is then probably located in this folder:
/wp-content/themes/Divi/js/scripts.min.jsHello Nazaqat, unfortunately I don’t know the script or the cookie that plays a role here. If this is necessary, I can try to ask the theme author, but experience shows that you won’t get such profound answers there. I hope we can make some progress without this information.
Hi Nazaqat, here is a temporary link to the website:
https://www.temporary-url.com/402A2C
Visit the page and look at the position of the white box with text on the slider. This will jump from the horizontal centre of the slider to the correct destination when the page is loaded. Now to the cookie banner: Accept only the necessary cookies in the banner, reload the page, the box jumps again. Now open the cookie banner again, accept all cookies, reload the page, the box does not jump again. The process can be reproduced again and again in both directions.Thanks a lot
The input of the form is stored in a database, regardless of which language is currently used in WordPress, the same value should always be stored as the result of the query.
Example:
EN:
Gender:
Man -> will be saved -> | 1
Woman -> will be saved -> | 2DE:
Geschlecht:
Mann -> will be saved -> | 1
Frau -> will be saved -> | 2[radio {Geschlecht} "{Mann|1}" "{Frau|2}"]
Pipe is supported by CF7, also works well when saving in DB, but unfortunately not here with Multilingual Contact Form 7:
https://contactform7.com/selectable-recipient-with-pipes/Forum: Plugins
In reply to: [YITH Request a Quote for WooCommerce] SKU in Product Table of request E-Mail. /woocommerce/emails/request-quote.php <th scope="col" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Artikelnummer', 'yith-woocommerce-request-a-quote' ); ?></th> <td scope=”col” style=”text-align:left;”><?php echo $_product->get_sku() ?></td>
Forum: Themes and Templates
In reply to: [Ultra] Remove Google Font LinkThank you, we are using a child theme, we put:
function ultra_child_setup() {
siteorigin_webfonts_remove_font( ‘Muli’ );
siteorigin_webfonts_remove_font( ‘Lato’ );
}
add_action( ‘after_setup_theme’, ‘ultra_child_setup’, 100 );to the functions.php o
Forum: Plugins
In reply to: [Advanced WordPress Backgrounds] Parallax container is coveredOk, thanks
Forum: Themes and Templates
In reply to: [Premium Style] commercial useHello esmi and gopiplus,
thank you for answering my question.Forum: Plugins
In reply to: [Wordpress Portfolio Plugin (WP Portfolio)] DB error after deleting pluginHello,
it works. thank you.regards
Forum: Plugins
In reply to: [Wordpress Portfolio Plugin (WP Portfolio)] DB error after deleting plugin