• Resolved manuelraigada

    (@manuelraigada)


    Hi,

    I’m using the plugin with Elision and WP Visual Bakery. Whenever I try to save the translations of a secondary language I get this error:

    Warning: Missing argument 2 for CeceppaML::pre_post_link() in /homepages/32/d369391738/htdocs/wp-content/plugins/ceceppa-multilingua/ceceppaml.php on line 342
    
    Warning: Missing argument 3 for CeceppaML::pre_post_link() in /homepages/32/d369391738/htdocs/wp-content/plugins/ceceppa-multilingua/ceceppaml.php on line 342
    
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/32/d369391738/htdocs/wp-content/plugins/ceceppa-multilingua/ceceppaml.php:342) in /homepages/32/d369391738/htdocs/wp-admin/post.php on line 233
    
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/32/d369391738/htdocs/wp-content/plugins/ceceppa-multilingua/ceceppaml.php:342) in /homepages/32/d369391738/htdocs/wp-includes/pluggable.php on line 1178

    Any hint on what can be going wrong?
    Thanks in advance! 🙂

    https://wordpress.org/plugins/ceceppa-multilingua/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,
    it’s strange that those parameters are missing…
    Can you try to edit the ceceppaml.php file and change the lines:

    function pre_post_link( $permalink, $post, $leavename ) {
        if( is_preview() ) {

    in

    function pre_post_link( $permalink, $post = null, $leavename = null ) {
        if( is_preview() || null == $post ) {

    if so, can you tell me if the change works for you?

    Thread Starter manuelraigada

    (@manuelraigada)

    It looks like it worked!

    Thanks a lot! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error when saving secondary language’ is closed to new replies.