• Resolved Be Dark

    (@b_dark)


    hello,

    when we add the define( ‘WPMS_ON’, true ); line in wp-config.php and click to save settings on theme options its goes and overwrite the native language of them with the translated new language. when we remove from define( ‘WPMS_ON’, true ); line from wp-config.php everything is working again fine without any problem

    • This topic was modified 3 years, 9 months ago by Be Dark.
Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi @b_dark,

    Thanks for reaching out. When you get a chance, could you please share the theme you’re using and the translation plugin if you’re using? They are probably using the same constant WPMS_ON to translate to another language and that created conflict with WP Mail SMTP.

    Regards,

    Thread Starter Be Dark

    (@b_dark)

    Hello Sanjeev,
    Yes, Houzez – Real Estate WordPress Theme by favethemes and wpml plugin

    Hi @b_dark,

    Thanks for the confirmation. I’m not aware that the WPML plugin is using the WPMS_ON constant. Could you please switch back to the default theme such as Twenty Twenty One and see if the issue still persists and also check your wp-config.php if WPMS_ON is already in use?

    Thanks!

    Thread Starter Be Dark

    (@b_dark)

    hello again @sanzeeb3 ,
    no extra WPMS_ON on config.php only your when i am add it.

    The theme “Houzez” use the framework “redux” its here free. When i save anything inside on framework the problem reproduisent

    Hi @b_dark,

    Thanks for the details. I’ve checked the framework you’ve shared and do not see the WPMS_ON constant being used. Could you please contact the theme developer and share about this conflict and let us know how it goes?

    Regards,

    Thread Starter Be Dark

    (@b_dark)

    hi @sanzeeb3 ,
    i download the theme and search with notepad++>ctrl+f>Find in files>WPMS_ON>Find All>Search “WPMS_ON” (0 hits in 0 files of 1490 searched)

    Is that is a correct way to find if something use the “WPMS_ON” i can try to download all my wp files and and i make a full check to see if something else use the “WPMS_ON”

    • This reply was modified 3 years, 9 months ago by Be Dark.
    • This reply was modified 3 years, 9 months ago by Be Dark.
    Thread Starter Be Dark

    (@b_dark)

    @sanzeeb3
    i just download all mu mu demo network and make a search

    Search "WPMS_ON" (11 hits in 7 files of 28737 searched)
      C:\Users\\Desktop\\wp-config.php (1 hit)
    	Line 109: define( ‘WPMS_ON’, true );
      C:\Users\\Desktop\\wp-content\languages\plugins\wp-mail-smtp-es_ES.po (1 hit)
    	Line 2542: #. translators: %1$s - wp-config.php file, %2$s - WPMS_ON constant name.
      C:\Users\\Desktop\\wp-content\plugins\wp-mail-smtp\assets\languages\wp-mail-smtp.pot (1 hit)
    	Line 2908: #. translators: %1$s - wp-config.php file, %2$s - WPMS_ON constant name.
      C:\Users\\Desktop\\wp-content\plugins\wp-mail-smtp\src\Migration.php (2 hits)
    	Line 372: 		if ( ! defined( 'WPMS_ON' ) || ! WPMS_ON ) {
    	Line 372: 		if ( ! defined( 'WPMS_ON' ) || ! WPMS_ON ) {
      C:\Users\\Desktop\\wp-content\plugins\wp-mail-smtp\src\Options.php (2 hits)
    	Line 640: 		$return = defined( 'WPMS_ON' ) && WPMS_ON === true;
    	Line 640: 		$return = defined( 'WPMS_ON' ) && WPMS_ON === true;
      C:\Users\\Desktop\\wp-content\plugins\wp-mail-smtp\src\Providers\OptionsAbstract.php (3 hits)
    	Line 340: 							/* translators: %1$s - wp-config.php file, %2$s - WPMS_ON constant name. */
    	Line 343: 							'<code>WPMS_ON</code>'
    	Line 348: 						define( 'WPMS_ON', false );
      C:\Users\\Desktop\\wp-content\plugins\wp-mail-smtp\wp_mail_smtp.php (1 hit)
    	Line 35: define( 'WPMS_ON', true ); // True turns on the whole constants support and usage, false turns it off.

    it doesn’t find anything except yours

    • This reply was modified 3 years, 9 months ago by Be Dark.
    • This reply was modified 3 years, 9 months ago by Be Dark.

    Hi @b_dark,

    Thanks for the detailed debugging. If ‘WPMS_ON’ isn’t found anywhere else than the WP Mail SMTP filesystem, I’m not sure how this changed the language in your site. Could you please try by moving define( 'WPMS_ON', true ); to the top of the wp-config.php file, and do you have any other custom constants defined in that file?

    Please let me know.

    Thread Starter Be Dark

    (@b_dark)

    Hi @sanzeeb3

    define( 'WP_CACHE', true ); // Added by WP Rocket
    define('WPMU_ACCEL_REDIRECT', true);
    /** Allow only admins to see contact form 7 settings in admin panel */
    define( 'WPCF7_ADMIN_READ_CAPABILITY', 'manage_options' );
    define( 'WPCF7_ADMIN_READ_WRITE_CAPABILITY', 'manage_options' );
    define( 'WPCF7_UPLOADS_TMP_DIR', '/wp-content/uploads/emailfiles' );
    /** WP Smush */
    define('WP_SMUSH_API_TIMEOUT', 150);
    define('WPML_ST_SYNC_TRANSLATION_FILES', true);
    // Turn debugging on
    define('WP_DEBUG', false);
    // Tell WordPress to log everything to /wp-content/debug.log
    define('WP_DEBUG_LOG', false);
    // Turn off the display of error messages on your site
    define('WP_DEBUG_DISPLAY', false);
    // For good measure, you can also add the follow code, which will hide errors from being displayed on-screen
    @ini_set('display_errors', 0);
    define('WP_POST_REVISIONS', false);
    define ('WP_AUTO_UPDATE_CORE', true);
    /* Multisite */
    define('WP_ALLOW_MULTISITE', true);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', 'mydomain.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    //define('COOKIE_DOMAIN', $_SERVER[ 'HTTP_HOST' ]);
    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIE_DOMAIN', '');
    //define('COOKIEPATH', '');
    //define('SITECOOKIEPATH', '');
    /** Memory Limit */
    define('WP_MEMORY_LIMIT', '256M');
    define( 'WP_MAX_MEMORY_LIMIT', '512M' );
    define('WORDFENCE_SCAN_FAILURE_THRESHOLD', 10000);
    /* That's all, stop editing! Happy blogging. */
    • This reply was modified 3 years, 8 months ago by Be Dark.
    Thread Starter Be Dark

    (@b_dark)

    [20-Jul-2021 19:00:03 Europe/Athens] PHP Warning: Use of undefined constant ‘WPMS_ON’ – assumed ‘‘WPMS_ON’’ (this will throw an Error in a future version of PHP) in /wp-config.php on line 109

    Thread Starter Be Dark

    (@b_dark)

    @sanzeeb3 @dovyp @kprovance @redux @smub @jaredatch @slaffik @wpforms @favethemes

    i test it to moving define( ‘WPMS_ON’, true ); to the top of the wp-config.php file and the same happen the problem is the define( ‘WPMS_ON’, true ) in combine with framework “redux” and Houzez – Real Estate WordPress when i click “save settings” on theme option in any page have the problem. i test betheme and Twenty Twenty-One and i don’t face the problem.

    • This reply was modified 3 years, 8 months ago by Be Dark.
    • This reply was modified 3 years, 8 months ago by Be Dark.
    • This reply was modified 3 years, 8 months ago by Be Dark.
    • This reply was modified 3 years, 8 months ago by Be Dark.
    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @b_dark,

    could it be, that you are using the wrong single quote characters? Please copy and paste this codedefine( 'WPMS_ON', true ); and replace it with your current WPMS_ON constant line in your wp-config.php file.

    Let me know if that resolved your issue.

    Also, please do not tag a wide range of people in your future messages.

    Take care!

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @b_dark,

    We haven’t heard from you in more than a week, so I’m going to go ahead and mark this ticket resolved. If you still have questions, though, please feel welcome to continue the conversation.

    Thanks!

    Thread Starter Be Dark

    (@b_dark)

    Hi @capuderg,
    Sorry for the delay but you know covid and fires in a country its not a good combo! :/

    so i test tet and i add your define( 'WPMS_ON', true ); and nothing deferent happen it doesn’t resolve anything.

    I do not tag random people I do those who are involved with my problem. Since 27 Feb 2020 and no solution has been found, so you understand my patience is exhausted.

    I have been using plugins / themes (free / premium) for 10+ years and I have never encountered anything like it. I’m sure the problem created only with framework “redux” and Houzez – Real Estate WordPress when i click “save settings” on theme option in any page have the problem. i test betheme and Twenty Twenty-One and i don’t face the problem. So, @dovyp @kprovance @redux @favethemes please fix the problem immediately, I’m sure the problem because you have active fields in Theme Options that can be translated via WPML too. You must add the translatable fields in one page and have an Enable / Disable option so that they are not affected when you have active WPML. After the last update (2.3.8) of the theme now and without define( 'WPMS_ON', true ); the problem is created that was not created before.

    Pity Us!!! We have translated it countless times your theme in our local language!!!!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘WPMS_ON create problems with WPML’ is closed to new replies.