Support

Home Forums Event Espresso Premium event registration page broken

event registration page broken

Posted: March 22, 2015 at 4:00 pm


sal cincotta

March 22, 2015 at 4:00 pm

WordPress Version:
4.1.1
PHP Version:
5.3.20
MySQL Version:
5.0.96
Event Espresso Version:
4.6.11.p
WordPress Address (URL):

https://www.behindtheshutter.com

Site address (URL):
https://www.behindtheshutter.com/shutterfest-2016

From this page: https://www.behindtheshutter.com/shutterfest-2016 when you click to register for tickets, it is taking us to a blank page with this link: https://www.behindtheshutter.com/events/shutterfest-2016/?ee=process_ticket_selections so no one can register for our event.


sal cincotta

March 22, 2015 at 6:13 pm

more information below.

error being generated:

PHP Fatal error: Call to a member function is_espresso_page() on a non-object in /home/bts/public_html/wp-content/plugins/event-espresso-core-reg/core/CPTs/EE_CPT_Strategy.core.php on line 348


Dean

March 23, 2015 at 7:18 am

Hi,

The first thing to do is to “flush” your permalinks: go to Settings > Permalinks > then just press save.

If this doesn’t resolve the issue, you will need to trouble shoot to determine if it is another plugin or the theme causing the issue:

Start by disabling all plugins except EE. If the issue goes away, activate each plugin one by one, testing the page each time until the culprit plugin is found.

If the issue does not go away after disabling all plugins, try using the Them Test Drive plugin to swap to a default theme to see if that resolves the issue.

If neither of those find the issue, please advise.


sal cincotta

March 23, 2015 at 12:43 pm

sorry guys – disabled every plug in – still not working.

also – refreshed permalink as advised.

you are seeing the error being thrown – the wp theme hasn’t changed in 5 years.

your plug in used to work. stopped working after a recent upgrade to your plug in.

thanks you for your help. we are trying to open registration today and are obviously having massive issues.


Lorenzo Orlando Caum

  • Support Staff

March 23, 2015 at 1:08 pm

Hi Sal, could you update to a current version of the software and then refresh your pretty permalinks?

https://eventespresso.com/wiki/ee4-changelog/

At this time the current version is 4.6.16.

Thanks


Lorenzo


sal cincotta

March 23, 2015 at 1:20 pm

in the support ticket we created yesterday – we listed the wrong version. we are currently running 4.6.16

and i have refreshed permalinks already – by hitting save…

still not working.


Josh

  • Support Staff

March 23, 2015 at 2:39 pm

Sal,

We received your priority support request, checked a few things in the admin, but we really need FTP credentials in order to troubleshoot. Please re-send the priority support request and include FTP credentials this time so we can investigate.


Josh

  • Support Staff

March 23, 2015 at 2:56 pm

Sal,

Please send us FTP credentials that can access the files where you have WordPress installed. The credentials you sent are for an empty directory.


Josh

  • Support Staff

March 23, 2015 at 4:10 pm

Hi Sal,

I spent the last hour looking into this and found that the registration form issues are fixed if I go to WordPress > Settings > Permalinks and change the setting from Post name to Default, then click Save Changes.

I’ve changed the settings back, and if you’d like you can change the settings to default so the registration process will work. Then, I can advise checking with your host to see if anything on the server configuration that’s related to the mod_rewrite module has been changed recently. See also:

https://codex.wordpress.org/Using_Permalinks#Using_.22Pretty.22_permalinks

Normally the Post Name structure will work just fine with Event Espresso 4, and if it worked earlier, then something in the server’s configuration may have been changed.


sal cincotta

March 23, 2015 at 9:43 pm

yeah i am really confused how you got it to work.

i went in – changed it to default and nothing worked. not even my normal page.

liquid web is saying nothing has changed.


Josh

  • Support Staff

March 24, 2015 at 8:45 am

Hi Sal,

The link to the reg form page will change when you switch to the default permalinks. I dug into this further and found that it’s an issue caused by your WP theme. I can look into this more to find a way to fix your theme, but in case you want to know, it’s the ad_display_check() method in pagead.php that’s causing the breakage.


Josh

  • Support Staff

March 24, 2015 at 9:07 am

Update: I applied a fix to the theme. Details to follow.


Josh

  • Support Staff

March 24, 2015 at 9:54 am

Please pass this information on to the theme developer. Here’s what we changed:

in ssi/pagead.php on line 17 the action hook was changed to ‘wp’ instead of ‘init’.
add_action('wp', array($this, 'ad_display_check'));

Then, on line 177 in the ad_display_check() method we changed how it gets the $post_id. So instead of:
$post_id = url_to_postid( $url );

it’s now:
global $post;
$post_id = $post->ID;

When it used the url_to_postid() function, it was loading on parse_request and causing the breakage you saw earlier.


sal cincotta

March 24, 2015 at 6:32 pm

thank you SO MUCH!

we have passed the changed on to our developer for review.

The support post ‘event registration page broken’ 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