Posted: June 6, 2017 at 3:18 am
|
Hi I have an event and am trying to put in the event venue If I select, and then publish it doesn’t save it It used to – please can you help Thanks |
Hi Jono, If you enable WP_DEBUG on the site and repeat the above does it show any errors? |
|
|
Hi Tony Just located my wp_config file and cant see the values to set for the debug Another random thing that has started happening is that if I am logged in as Admin and a customer phones to book, when I click on the number of tickets and proceed it takes me to the backend dashboard instead of continuing as it used to do. I have tried to update venue again today after logging out then back in and its still the same Any help appreciated. thanks |
Did you click through to the above link?
Use true to enable it and then false to disable it. Or you can use this snippet: https://gist.github.com/Pebblo/4486cc5e567bc8e5f019b6a1d5057eda Which tells WordPress to log any erros within It sounds like you may be hitting a mod_sec rule on your server that is directing you back, but lets check for errors first with the above. |
|
|
Hi Tony This is very odd as I have put sites into debug mode before however when I try to do this the config file doesnt have any debug elements in it I have also tried the snippet in a site specific plugin na dthere is no debug log either At a bit of a loss as to how to get this informaiton to you |
I’m not sure what you mean here.
Like so – http://take.ms/vUIOR
The code I provided will not work in a plugin, its runs to late, it must be within |
|
|
Ok so managed to get that in the wp_config These are the errors Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor in /homepages/7/d588332988/htdocs/clickandbuilds/BosworthsGardenCentre/wp-content/plugins/vafpress-framework-plugin/vafpress-framework/includes/wpalchemy/MetaBox.php on line 61 Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /homepages/7/d588332988/htdocs/clickandbuilds/BosworthsGardenCentre/wp-content/plugins/vafpress-framework-plugin/vafpress-framework/includes/wpalchemy/MetaBox.php:61) in /homepages/7/d588332988/htdocs/clickandbuilds/BosworthsGardenCentre/wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php on line 473 Warning: Cannot modify header information – headers already sent by (output started at /homepages/7/d588332988/htdocs/clickandbuilds/BosworthsGardenCentre/wp-content/plugins/vafpress-framework-plugin/vafpress-framework/includes/wpalchemy/MetaBox.php:61) in /homepages/7/d588332988/htdocs/clickandbuilds/BosworthsGardenCentre/wp-includes/pluggable.php on line 1195 |
Hi Jonathon, You can reach out to the developer/support staff of the vafpress-framework-plugin and ask them to make their plugin compatible with PHP 7. That will clear up the logged errors. With regards to the issues you’re having with updating pages in the admin, what usually causes that is a tripped mod_security rule. Here’s how to fix: |
|
|
Hi Josh I have actually de-activated vafpress as I think this came with an old theme I was using. Unfortunately, this error still persists |
I already mentioned to you about the mod security rules and you can check with your host about those. The other plugin wasn’t causing the issues, it was causing the PHP warnings you saw in the logs, which is a separate issue. |
|
|
ah ok – sorry misunderstood |
Did you contact your host regarding mod_security? The warnings you posted above are unlikely to be related to the problem, disabling the plugin prevents those notices but you will still need to contact your host and confirm if you’re hitting a mod_sec rule. |
|
|
Ive just spoken to them We are on a shared hosting and they say they cannot access the mod_security or make changes to it They have however provided a link to see error logs Is this something I can paste here or can I send it privately? |
|
This is the link |
Hi Jonathan, We’ve already reviewed the PHP errors. Can your host at the very least check their own mod_security logs? If not, it’s time to find a new host! Short of a mod-security issue, the other avenue you can explore is you check for a plugin conflict. You’ve already checked PHP errors and found the error from the vafpress-framework-plugin. |
|
|
Hi Josh / Tony Have been on the phone to our hosting company today which is 1and1.co.uk and trying to explain to them what I need. |
So that can’t/won’t actually confirm if the request is even triggering a mod_sec rule on the server? (YOU don’t need access to the logs for this, they simply need to check the logs after you have made a request and confirm if it was blocked) If not that’s rather poor in my opinion. I have multiple shared hosting accounts with multiple different hosting companies, all which will at least let me know if a request is being blocked. However, on each of the hosts I’ve requested something similar they have adjusted the mod_sec rule for my site to accommodate. So with that said:
You don’t need your own server just to allow changes to mod_sec rules.
We have some documentation on how you can rule out theme/plugin conflicts here: |
|
|
Hi Tony It is very difficult to get them to understand what I am asking I have gone on to firefox to see if the browser is making a difference and immediately I load the page I get the following error message Script: https://bosworthsgc.co.uk/wp-c…scripts/jquery.validate.min.js:4 could it be a jquery error? Thanks |
Within the admin? It shouldn’t cause the venue info not to save even with that error. Did you run through troubleshooting to see if it there is a conflict? Also, do you have a development copy of the site on the same server? I’m guessing not but would highly recommend creating one. It allows you to de-activate plugins/themes on a pretty much identical version of the site without disrupting your visitors. |
|
|
i de-activated all the plugins i recently installed one by one and then tested the venue setting each time. it is strange as it has only started doing this – it was working fine The theme has had no update so the only thing new would be plugins which have been tested Cant seem to get the guys at 1and1 to help Any other ideas please? Its not a massive issue but would look better if I can resolve it. Thanks |
Possibly a server side change, your host may have updated the mod_sec rules which are now being trigger when you set the venue, previously they didn’t. Without knowing if that’s what is actually happening we can’t say for sure. Can you try contacting your host again and just ask them to confirm if the request you are making when updating the event is triggering one of their mod sec rules? They should be able to tell from the logs. |
|
|
ok – so having spoken to another “technician” there they have looked at the mod_sec rules and tell me there is nothing in the log and nothing is being triggered. |
You don’t sound very confident in their reply and to be honest, neither am I currently 🙂 Do you mind if I take a quick look in the admin to see if I can spot anything? You can send temp login details using this form: |
|
|
Hi Tony Im not very confident in their reply to be honest I have sent through the details by following the link you sent Thanks |
Looking over the site, I suspect this may be an issue with the max_input_vars setting on the server. I created a private event (now trashed) and set the Venue on that event without a problem. On your events you have a lot of datetimes/tickets and the number of inputs on your editor is greater than 1000 (which is the value set for max_input_vars on your site currently) I’d recommend contacting your host once again and have them up the max_input_vars limits to at least 2000, but I’d proably use 3000 just to give you extra room for additional datetimes/tickets if needed (one Event I view is at 1800 inputs). Once they have done that you can confirm in Event Espresso -> Maintenance -> System Information -> max_input_vars and check the value is no longer 1000. Then retry saving the event with a venue set, does it work? |
|
|
Thanks Tony I contacted them – they actually set it to 5000 and now it is working fine Thanks for taking the time to have a look at this for me Regards |
You’re most welcome. |
|
The support post ‘Not possible to update venue for a published event’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.