Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1284473
    Alejandro Jose S
    Participant

    Hello guys,

    i’m encountering a problem when trying to create a page on cornerstone using WPML (the page would be a translated version of the original page)

    when i click the cornerstone button, i get an error:

    dashboard-post-editor.min.js:1 Uncaught TypeError: Cannot read property 'server' of undefined(…)(anonymous function) @ dashboard-post-editor.min.js:1dispatch @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,thickbox,utils,jquery-ui-core,jqu…:3r.handle @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,thickbox,utils,jquery-ui-core,jqu…:3

    that error gets thrown whenever i click the edit with cornerstone button.

    could you please help me solve this?

    Thanks!

    #1284480
    Alejandro Jose S
    Participant
    This reply has been marked as private.
    #1284531
    Christian
    Moderator

    Hey there,

    Please try creating a Cornerstone page separately then manually connecting it to the other page once done.

    Thanks.

    #1284782
    Alejandro Jose S
    Participant

    Can’t do that. i can’t even start cornerstone at all T_T the button keeps triggering that error.

    #1285075
    Lely
    Moderator

    Hi Alejandro,

    I saw the video and it doesn’t even load. But then I tried to load one page and it is working:http://screencast-o-matic.com/watch/cDliYgQbqh. But then I experience the issue when I tried to create a new page.

    Before we continue, would you mind disabling all the plugins especially the caching? Let’s test it out without those plugins. There is a javascript error which could be caused by one of your plugins. Thank you.

    #1285418
    Alejandro Jose S
    Participant

    Will do! let you know if i find a particular culprit, although i did it before and the culprit seems to be WPML, i’ll do a thorough cleaning on the server and test if there’s something else misbehaving and then come back with the results.

    #1285691
    Lely
    Moderator

    Ok then Alejandro. Will wait for the your plugin test results.

    Cheers!

    #1286650
    Alejandro Jose S
    Participant

    Tried a looot of combinations. wpml seems to be the problem, there must be something fishy going on in there T_T. do you have any idea of why would that be? maybe the version or something?

    #1287019
    Rad
    Moderator

    Hi there,

    I checked, created a duplicate translation of your Sponsors page, then hit edit with cornerstone and it works. I don’t see any error similar to your provided error. Is there any special action or procedure we should do first to reproduce this issue? Or are you referring to content after duplication/translation?

    Thanks!

    #1287215
    Alejandro Jose S
    Participant

    Check this video.
    https://www.opentest.co/share/0238f250bc7911e6ae0d814e8403f2e9

    if you try that in the page called “discover messina” or in any custom post type (escursioni, luoghi, ecc) you will encounter the problem. i don’t know what’s going on there really.

    #1287225
    Alejandro Jose S
    Participant

    sometimes it doesn’t even let me get to the cornerstone page!

    the error that it throws (when i click on the cornerstone tab and doesn’t open) is this one:

    Uncaught TypeError: Cannot read property 'getPostData' of undefined
        at HTMLButtonElement.<anonymous> (http://discovermessina.it/wp-content/plugins/cornerstone/assets/dist/js/admin/dashboard-post-editor.min.js:1:1915)
        at HTMLButtonElement.dispatch (http://discovermessina.it/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-c…bone,wp-util,plupload,jquery-ui-tooltip,jquery-ui-slider&ver=4.6.1:3:12444)
        at HTMLButtonElement.r.handle (http://discovermessina.it/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-c…kbone,wp-util,plupload,jquery-ui-tooltip,jquery-ui-slider&ver=4.6.1:3:9173)

    EDIT: i can confirm the problem is with theme X, i changed the theme to twentysixteen and cornerstone worked as expected T_T

    #1287838
    Rad
    Moderator

    Hi there,

    I checked it only happens on those post types. They could have some setting that conflicts with X theme. Especially the autosave and revision feature. Been trying to fix and re-initializing wp.autosave object with no success. Perhaps, we can disable the autosave, would you mind providing your FTP login credentials as well?

    Other post types have no issue regarding this.

    Thanks!

    #1288239
    Alejandro Jose S
    Participant
    This reply has been marked as private.
    #1288247
    Alejandro Jose S
    Participant

    I tested posts, pages, luoghi, escursioni and every single post type in that website and all of them give me the same problem T_T, for some reason (at least on my end) it happens everywhere. i’m stuck already, hope you find the root of the issue. the error_log is not trhowing any error. the only error i’m encounering are those 2 i told you about:

    when it’s the first time i create a page and still haven’t saved once, i get to access the cornerstone tab but then the button throws an error when clicked and can’t access cornerstone at all.

    if i save once, then the cornerstone tab becomes inaccessible and it’s the tab that throws an error when clicked.

    #1288479
    Rad
    Moderator

    Hi there,

    It should be okay now, it’s because of this code from your child theme’s functions.php

    add_action( 'init', 'stop_heartbeat', 1 );
    function stop_heartbeat() {
    wp_deregister_script('heartbeat');
    }

    I disabled it and it works, it’s part of autosave, disabling it caused this issue.

    Thanks!

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