Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #881116
    Danielle S
    Participant

    Hi,
    I installed WPML yesterday and am getting the following error on some of the pages:

    Warning: Missing argument 2 for Cornerstone_Integration_Conflict_Resolution::wpml_title() in /wp-content/plugins/cornerstone/includes/integrations/conflict-resolution.php on line 120

    I deactivated all the plugins except for those that came with X and the WPML plugins. I still go the same error, so I reactivated them.

    Are you able to help?

    Thanks

    Danielle

    #881120
    Danielle S
    Participant
    This reply has been marked as private.
    #881581
    Rue Nel
    Moderator

    Hello Danielle,

    This message:

    
    "Warning: Missing argument 2 for Cornerstone_Integration_Conflict_Resolution::wpml_title()..."

    is just a PHP warning message. It can be than WPML variable has been been initialized on this page. There is nothing to worry about this. Can you please disable WP_DEBUG mode? You can do this by opening wp-config.php and adding
    define( 'WP_DEBUG' , false ); just above /* That's all, stop editing! Happy blogging. */ For example:

    define('WP_DEBUG', false);
    
    /* That's all, stop editing! Happy blogging. */

    When you revisit the page, you should no longer be seeing this message. For the meantime, X 4.4.2 is now available in automatic updates! This release contains several bug fixes and a maintenance release in response to WordPress 4.5, so be sure to check out the changelog. Please do update to the latest version. After doing the updates, always remember to clear all caches when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

    Please let us know how it goes.

    #881776
    Danielle S
    Participant

    Hi,
    This didn’t work because the debug mode was already disabled and set to false. Any other thoughts? I have also updated X to 4.4.2

    thanks

    Danielle

    #882237
    Jack
    Keymaster

    Hi there Danielle,

    Thanks for writing back.

    Replace WP_DEBUG with the following:

    ini_set('log_errors','On');
    ini_set('display_errors','Off');
    ini_set('error_reporting', E_ALL );
    define('WP_DEBUG', false);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);

    That should stop the warning from displaying on the front-end of your site. 🙂

    Thanks!

    #883292
    Danielle S
    Participant

    Yep – that worked. Thanks very much! How great are you guys – I just love your support.

    Cheers

    Danielle

    #883629
    Prasant Rai
    Moderator

    Your satisfaction is a great compliment for us.

  • <script> jQuery(function($){ $("#no-reply-881116 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>