Support

Home Forums Event Espresso Premium Not possible to update venue for a published event

Not possible to update venue for a published event

Posted: June 6, 2017 at 3:18 am

Viewing 26 reply threads


Bosworthsgc

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
Jono


Tony

  • Support Staff

June 6, 2017 at 5:05 am

Hi Jono,

If you enable WP_DEBUG on the site and repeat the above does it show any errors?


Bosworthsgc

June 7, 2017 at 5:11 am

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


Tony

  • Support Staff

June 7, 2017 at 8:20 am

Just located my wp_config file and cant see the values to set for the debug

Did you click through to the above link?

define( 'WP_DEBUG', true );
define( 'WP_DEBUG', false );

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 /wp-content/debug.log however you don’t want to leave that active all the time and remember to clear out the old errors from the log when finished debugging.

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.


Bosworthsgc

June 7, 2017 at 9:04 am

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


Tony

  • Support Staff

June 7, 2017 at 10:29 am

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’m not sure what you mean here.

wp-config.php doesn’t have WP_DEBUG already included you mean? You can just add the above snippet above the line that has /* That's all, stop editing! Happy blogging. */

Like so – http://take.ms/vUIOR

I have also tried the snippet in a site specific plugin na dthere is no debug log either

The code I provided will not work in a plugin, its runs to late, it must be within wp-config.php


Bosworthsgc

June 8, 2017 at 6:01 am

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


Josh

  • Support Staff

June 8, 2017 at 7:23 am

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:
1) Contact your host and ask if mod_security is enabled.
2) If it’s enabled, ask them to check the mod_security logs for your activity that was blocked by the mod_security rules.
3) They’ll be able to see which rules were triggered and make the necessary adjustments.


Bosworthsgc

June 8, 2017 at 7:45 am

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
Any other ideas on this issue please


Josh

  • Support Staff

June 8, 2017 at 7:52 am

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.


Bosworthsgc

June 8, 2017 at 7:53 am

ah ok – sorry misunderstood


Tony

  • Support Staff

June 8, 2017 at 7:56 am

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.


Bosworthsgc

June 8, 2017 at 8:06 am

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?


Bosworthsgc

June 8, 2017 at 8:09 am

This is the link

http://help.1and1.co.uk/hosting-c40985/scripts-and-programming-languages-c40990/php-c41038/activate-php-error-logs-a792778.html


Josh

  • Support Staff

June 8, 2017 at 8:30 am

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.


Bosworthsgc

June 15, 2017 at 5:25 am

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.
Apparently, as we are on a shared hosting server we cannot have access to the mod_security logs. They tell me this is only possible if we have our own server and configure access to this.
I will try recently installed plugins to see if I can get it working again by de-activating any recent ones and see what happens


Tony

  • Support Staff

June 15, 2017 at 5:47 am

Apparently, as we are on a shared hosting server we cannot have access to the mod_security logs.

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:

They tell me this is only possible if we have our own server and configure access to this.

You don’t need your own server just to allow changes to mod_sec rules.

I will try recently installed plugins to see if I can get it working again by de-activating any recent ones and see what happens

We have some documentation on how you can rule out theme/plugin conflicts here:

https://eventespresso.com/wiki/troubleshooting-checklist/


Bosworthsgc

June 15, 2017 at 6:00 am

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


Tony

  • Support Staff

June 15, 2017 at 6:27 am

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.


Bosworthsgc

June 15, 2017 at 6:43 am

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


Tony

  • Support Staff

June 15, 2017 at 7:12 am

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.


Bosworthsgc

June 15, 2017 at 8:30 am

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.


Tony

  • Support Staff

June 15, 2017 at 8:46 am

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:

https://eventespresso.com/send-login-details/


Bosworthsgc

June 16, 2017 at 3:15 am

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


Tony

  • Support Staff

June 16, 2017 at 6:11 am

Looking over the site, I suspect this may be an issue with the max_input_vars setting on the server. max_input_vars basically tells your sever how many inputs are allowed on a page, any inputs after that value are simply ignored.

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?


Bosworthsgc

June 16, 2017 at 6:35 am

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
Jonathan


Tony

  • Support Staff

June 16, 2017 at 6:47 am

You’re most welcome.

Viewing 26 reply threads

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.

Event Espresso