Tagged: x
-
AuthorPosts
-
December 7, 2016 at 6:27 am #1284473
Alejandro Jose SParticipantHello 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…:3that error gets thrown whenever i click the edit with cornerstone button.
could you please help me solve this?
Thanks!
December 7, 2016 at 6:33 am #1284480
Alejandro Jose SParticipantThis reply has been marked as private.December 7, 2016 at 7:15 am #1284531
ChristianModeratorHey there,
Please try creating a Cornerstone page separately then manually connecting it to the other page once done.
Thanks.
December 7, 2016 at 10:49 am #1284782
Alejandro Jose SParticipantCan’t do that. i can’t even start cornerstone at all T_T the button keeps triggering that error.
December 7, 2016 at 2:43 pm #1285075
LelyModeratorHi 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.
December 7, 2016 at 7:18 pm #1285418
Alejandro Jose SParticipantWill 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.
December 8, 2016 at 12:09 am #1285691
LelyModeratorOk then Alejandro. Will wait for the your plugin test results.
Cheers!
December 8, 2016 at 4:34 pm #1286650
Alejandro Jose SParticipantTried 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?
December 8, 2016 at 10:18 pm #1287019
RadModeratorHi 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!
December 9, 2016 at 4:55 am #1287215
Alejandro Jose SParticipantCheck this video.
https://www.opentest.co/share/0238f250bc7911e6ae0d814e8403f2e9if 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.
December 9, 2016 at 5:20 am #1287225
Alejandro Jose SParticipantsometimes 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
December 9, 2016 at 5:16 pm #1287838
RadModeratorHi 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!
December 10, 2016 at 4:34 am #1288239
Alejandro Jose SParticipantThis reply has been marked as private.December 10, 2016 at 4:47 am #1288247
Alejandro Jose SParticipantI 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.
December 10, 2016 at 2:05 pm #1288479
RadModeratorHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1284473 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
