-
AuthorPosts
-
December 11, 2015 at 6:36 am #702582
Hello.
Since updating to the latest X version, WordPress 4.4 and plugins I’ve had quite a few problems that I’ve managed to solve, such as fonts being completely different from what I had, plugin conflicts, layout changes, etc. After some hours of work I have managed to fix most of my problems.
However, Cornerstone is giving me too much of a hard time:
I’m trying to edit a form that I have set up on a page, but Cornerstone will not load the Cornerstone framework in that specific page. The Cornerstone logo would loop endlessly and finally I would get an “connection time out error”. As it turns out, I could not access my site anymore. It was down. No matter what page I tried to visit.
When I contacted my host, they told me my IP had been banned because of too many failed login authentication attempts. They unbanned me and I was able to get my site back up again. Here’s the transcript.
I tried setting up a NEW page, I added a new RAW element and pasted my form html code. What happened? My site went down again. So I contacted them again. We went through the same process. They suggested I open a support ticket in order to investigate the issue. The ticket has been submitted and I haven’t received an answer yet, but I know the issue comes from Cornerstone, which is triggering some kind of problem.
I tried disabling all of my 3rd party plugins, the problem persists. Whenever I create a new page and add my form code, Cornerstone goes crazy, the preview page content disappears and I’m only left with the header and footer of the page. (It has happened with other pages too, in which case reloading the page will make all my preview content appear again).
This is the output I get from the console when I add a RAW element:
At this point, even though the console outputs that error, I’m able to add some html code to the RAW element and it will render and display fine. The page will save and everything will work.
But this is what I get when I add my form code to the RAW element:
At this point, my form will not appear in the preview area. All I see is the header and footer of my page. It keeps refreshing and refreshing, and eventually if I let it go on, my IP will be banned again due to many authentication attempts.
As I’ve mentioned, I tried doing it with all of my plugins deactivated but the problem persists. My WordPress version is 4.4, X version is 4.2.2, Cornerstone is 1.0.11, and every plugin is up to date. I’ve cleared my browser’s cache, I’ve tried in incognito mode (I use Chrome).
Finally, this is my form’s code. It might not be even close to perfection but it used to work before updating, and it does not anymore:
<html><body><form id="acceso" action="http://186.3.32.106/ecuanotas/" method="post" name="acceso" target="_blank"> <div class="module"> <div class="module-inner"> <span style="font-size: 24px;">USUARIO:</span> <div class="module-content clearfix"> <div class="custom clearfix"> <div class="userdata"> <div id="form-login-username" class="control-group"> <div class="controls"> <div class="input-prepend input-append"><input id="modlgn-username" class="input-small" tabindex="1" type="text" name="txtuser" size="18"></div> </div> </div><br> <div id="form-login-password" class="control-group"> <div class="controls">CONTRASEÑA: <div class="input-prepend input-append"><input id="modlgn-passwd" class="input-small" tabindex="2" type="password" name="txtclave" size="18"></div> </div> </div> <div id="form-login-remember" class="control-group checkbox"> </div> <div id="form-login-submit" class="control-group"> <div class="controls"><button class="btn" tabindex="3" name="entrar" type="submit">Identificarse</button></div> </div> </div> </div> </div> </div> </div> </form></body></html>
I’m totally lost as to how to solve this problem. The page works on the frontend, the thing is I can’t edit my existing form in that existing page, and I cannot create a new page with a new form. The page in question is this one.
Please help me.
Thank you very much.
December 11, 2015 at 6:42 am #702589This reply has been marked as private.December 11, 2015 at 11:26 am #702957Hi there,
I have tested tested the code in my current setup but without the html and the body tag in the form markup and it seems to work well. I am able to save and edit the page in Cornerstone.
Please try creating a new page and add this code and see if it works:
<form id="acceso" action="http://186.3.32.106/ecuanotas/" method="post" name="acceso" target="_blank"> <div class="module"> <div class="module-inner"> <span style="font-size: 24px;">USUARIO:</span> <div class="module-content clearfix"> <div class="custom clearfix"> <div class="userdata"> <div id="form-login-username" class="control-group"> <div class="controls"> <div class="input-prepend input-append"> <input id="modlgn-username" class="input-small" tabindex="1" type="text" name="txtuser" size="18"> </div> </div> </div> <br> <div id="form-login-password" class="control-group"> <div class="controls">CONTRASEÑA: <div class="input-prepend input-append"> <input id="modlgn-passwd" class="input-small" tabindex="2" type="password" name="txtclave" size="18"> </div> </div> </div> <div id="form-login-remember" class="control-group checkbox"> </div> <div id="form-login-submit" class="control-group"> <div class="controls"> <button class="btn" tabindex="3" name="entrar" type="submit">Identificarse</button> </div> </div> </div> </div> </div> </div> </div> </form>
If it still does the same thing, you could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.
Hope this helps.
December 11, 2015 at 11:34 am #702974Hello.
I’ve tried what you suggested, but the problem persists. The form won’t show up, and Cornerstone seems to reload the page over and over.
As I mentioned, I’ve already tried to make it work with all 3rd party plugins deactivated.
I still get the same 418 (unused) conflict on the console.
December 11, 2015 at 4:56 pm #703403Hi there,
Hmm, your wordpress version is 4.4, please check these related thread.
https://community.theme.co/forums/topic/bakery-problems/page/3/
https://community.theme.co/forums/topic/cornerstone-not-working-well-after-update-to-wordpress-4-4/With issues from 4.4, it’s really hard to find what causes. Is it really cornerstone or from wordpress itself. How about downgrading your wordpress?
Or it could be your hosting’s issue, please check this http://stackoverflow.com/questions/17117632/wget-gives-response-error-418-unused ( not related but same error )
Those error that you see are header responses from your hosting, and they are the only one that able to trigger them. I suggest to contact your hosting too.
Thanks.
December 12, 2015 at 11:27 am #704082It was indeed a problem with my server. For those of us who use Dreamhost, it seems that mod_security is detecting some Cornerstone request as malicious. Since I cannot edit mod_security rules I tried disabling it, and now I can edit my page and I’m able to edit my form.
As per the other problems, Cornerstone is still acting weird.
The console always shows:
“Uncaught ReferenceError: ajaxurl is not defined” as soon as Cornerstone loads, wether creating a new page or editing an existing one.Also, sometimes while editing a page, the content on the preview will disappear, leaving just the header, footer and title of the page. It does that quite a lot. I have to save and refresh the page to continue editing.
December 12, 2015 at 6:57 pm #704363Hi there,
Looks like related to your recent upgrade. This file which is not part of cornerstone,
/wp-includes/js/wp-lists.min.js?ver=4.4
Is trying to call ajaxurl() that doesn’t exist.
This may also help https://wordpress.org/support/topic/ajaxurl-is-not-defined-1
Thanks.
-
AuthorPosts