Skip Navigation

[Resuelto] Views Shortcode Gives Security verification failed Error

This support ticket is created hace 7 años. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Etiquetado: ,

This topic contains 16 respuestas, has 3 mensajes.

Last updated by DavidAlexander hace 6 años, 9 meses.

Assisted by: Nigel.

Autor
Mensajes
#506545
1Capture.PNG

I am trying to add a Views Shortcode in Beaver Builder to pull the title but when I do it comes up with an error

"Security verification failed, please reload the page and try again" which I can't get passed. This feature always worked in the past but wondering if a recent change with either Beaver Builder or WP Types changed this.

I have attached a screenshot of this error. The plugin is definitely registered so I can't think what could be causing this.

Thanks

#506682

Nigel
Supporter

Languages: Inglés (English ) Español (Español )

Timezone: Europe/London (GMT+00:00)

Hi David

That message refers to a nonce error (https://codex.wordpress.org/WordPress_Nonces).

Can you clear your browser cache and cookies, log out of your site and back in again and retry?

(I've just been using Beaver Builder and Views in another ticket this morning and didn't encounter any problems to suggest a bug in our code has been introduced.)

Let me know how that goes.

#506875

Hi Nigel,

Okay thanks for that. I did try another site and noticed that was working but can't see what could be different with this site. I have tried to clear cache and cookies and no change. I tried using a different computer and have the same issue.

I tried to look at the dom part of firebug at the same time to look for an error but not sure I can see anything.

Would you be able to login and try adding a views post title shortcode to a template and see what happens?

I am looking into what could cause a nonce error.

Thanks

#506898

Nigel
Supporter

Languages: Inglés (English ) Español (Español )

Timezone: Europe/London (GMT+00:00)

Yes, I can try that.

I will mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.

What page should I edit?

#506964

Nigel
Supporter

Languages: Inglés (English ) Español (Español )

Timezone: Europe/London (GMT+00:00)

Hi David

I inserted a row with a text module and added the post title without problem on the Meet Our Instructors page. (It's still there, you can see it.)

Where exactly are you trying to insert the Views shortcode? It's not clear from your screenshot.

#506980

Hi Nigel,

I see where you added it. I was trying to add it into the title above in the hero area. I have a heading module there. It works if I copy and paste your shortcode but not if I try and manually insert it using the views menu system.

I created a new user account, that made no difference.

Have been on live chat with WPEngine and turned off all other plugins and that didn't make a change either.

We turned off all caching, object cache and everything server side and still no change.

They tested it and it worked for them, I have tested it on 4 browsers on 2 computers and consistently get the nonce validation error. Is that being displayed from the views plugin? or Beaver Builder?

Beaver Builder developers also can't replicate this and there is nothing in the error logs either. Might it be worth doing skype / screenshare and looking at it on my screen and then seeing if that shows us any more info in firebug?

#507264

Nigel
Supporter

Languages: Inglés (English ) Español (Español )

Timezone: Europe/London (GMT+00:00)

Hi David

A colleague suggested you create a new admin user for yourself and delete the user you have been using up to now. (You created a new user for me, and presumably did the same for WPE and BB support, too. Your user seems to be the common factor.)

Can you try that and let me know if it makes any difference?

#507466

Yeah I tried this also, no change. You were actually using my temp admin, so we used the same account. I created a new admin account and got the same result.

#507758

Nigel
Supporter

Languages: Inglés (English ) Español (Español )

Timezone: Europe/London (GMT+00:00)

Hi David

Everyone is at a loss to explain this.

What country are you located in?

#507938

Yeah it is really confusing. Of course I can work around it on this site for the time being by copy / pasting shortcodes but can't auto insert anything. I am in the United Kingdom. Site is hosted on WPEngine, but that is pretty typical for me.

#508142

Nigel
Supporter

Languages: Inglés (English ) Español (Español )

Timezone: Europe/London (GMT+00:00)

I was hoping you were going to say you were in China or something.

None of my colleagues can think of any rationale explanation.

I'm struggling to think how I can debug this, as it is only happening with you and other people with your credentials on your server cannot reproduce this.

I could take a duplicate of your site and test locally, but as I don't experience the problem on your server there is little reason to think I will on my own server.

If something occurs to me I'll come back to you, and if there are any changes at your end please let me know.

Why don't you get back to me after the weekend to confirm if it is still happening? (No need to reply now, or I will need to reply back to you.)

#509382

Hey folks...I just came across the exact same error today.

- Beaver Builder Theme & Plugin (also using Beaver Tunnels)
- Toolset Views
- Hosted on WPEngine

I've had one other wacky problem with this site...and it MAY be related.

My site is currently in development, and the staging URL is hidden link.

WPEngine - by default - forces all DASHBOARD (i.e. Back End) connections through their wildcard SSL.

In other words, when viewing the dashboard - you'll see HTTPS. When viewing the front-end of the site - you'll see HTTP.

I think this encryption setup/scheme is being throwing a wrench into this.

When I'm editing the Beaver Builder 'template', it's showing me a public preview of the site (i.e. front-end), and from there I'm editing some text in the text module. When I click the 'Fields and Views' button, that's when I get the error.

IF I just drop in the shortcode (not click the 'Fields and Views' button) - it works.

In summary, I think it's an SSL (HTTPS/HTTP mismatch) issue when using the 'Fields and Views' button when editing a Beaver Builder template.

Hope that narrows it down. Would love a solution! I've asked WPEngine to disable SSL on my staging site, but they can't...it's forced ON.

Thanks!
Craig

#509414

Quick update...

I copied a version of the site to my localhost (running Desktop Server).

No more errors...

Pretty sure this confirms my hunch.

Since I don't have any HTTPS (SSL) running on my local server, there's no protocol mismatch between front-end and back-end.

My two cents...I don't know if WPEngine is the only hosting provider that rolls this way (forced HTTPS on dashboard), but it may be worth coding a solution for this.

Best,
Craig

#509695

Nigel
Supporter

Languages: Inglés (English ) Español (Español )

Timezone: Europe/London (GMT+00:00)

Craig, thanks very much for your input, you appear to have identified the problem.

David, when I (and presumably everyone else you spoke to) tested the issue and launched the page builder from an edit page in the back end, it took me to the front end using https, and so I didn't have any problem with the ajax call which WPEngine forces to use https.

But if I manually altered the URL to use http on the same page, then, yes, I was able to reproduce your nonce error. (The nonces for http and https don't match: http://wordpress.stackexchange.com/questions/183034/ajax-requests-broken-due-to-https-for-wp-admin.)

Somehow your workflow must have brought you to the front-end page builder with http not https. If you ensure you are on https it will work.

I have created an internal ticket for our Views developers to dig deeper into this to see if we can prevent the problem in a later update, but there is not much else for me to add here.

#509697

Ah okay thanks. yeah odd it won't auto forward me to https. I will see if WPEngine know why that is, or the fact that their back end is ssl but not the front end if there isn't an SSL certificate available? Either way I know the issue now, thanks for looking into that.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.