تخطي إلى المحتوى تخطي إلى الشريط الجانبي

Open

Reported for: WPML Multilingual CMS 4.6.7

Topic Tags: Bug, Compatibility

Overview of the issue

If you are using a plugin as Flux Checkout, a fatal error may occur when the WPML String Translation plugin is activated and the admin language is switched to a secondary language:

Fatal error: Uncaught ValueError: Unknown format specifier "t" in .../wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php:100

Workaround

Please, make sure of having a full backup of your site before proceeding.

  • Open …/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php file.
  • After these lines:
    	private function get_file_path_pattern( $file_path, $original_domain ) {
    		$pathinfo  = pathinfo( $file_path );
    		$file_type = isset( $pathinfo['extension'] ) ? $pathinfo['extension'] : null;
    
  • Add this:
    $file_path = str_replace('%', '', $file_path);

رد واحد إلى “Flux Checkout - Fatal error: Uncaught ValueError: Unknown format specifier "t"...”

اترك ردًا

الرجاء البقاء في الموضوع واحترام الآخرين. إذا كنت بحاجة إلى مساعدة في مشكلات غير متعلقة بهذا المنشور، استخدم منتدى الدعم الخاص بنا لبدء محادثة أو تقديم تذكرة.

يمكنك استخدام هذه الوسوم:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>