Support

Home Forums Multiple Event Registration Add-on Changing the return to events list link

Changing the return to events list link

Posted: November 26, 2015 at 8:36 am


Brian Post

November 26, 2015 at 8:36 am

When users add an event to their cart, a pop-up appears appears with a button “return to events list” that takes them to https://thestonetrust.org/events/

The formatting of that (page?) is working well for me. I have an alternative page set up https://thestonetrust.org/event-list/ for which the formation is working well. How do I get the button to bring them here, I think I had it working at one point, but when a new version came out it reverted back and I can’t remember what I had done. Plus if it reverts back at each new version that is clearly not ideal.

I am intensionally not using the latest version do to other problems. Reverting back to 4.8.9 and MER 2.05 was suggested in a forum and that seemed to help.


Brian Post

November 26, 2015 at 8:58 am

Gave wrong version info above: currently active is EE 4.8.14 and MER 1.3.3 I stopped using the versions listed above to do redirect loop issues that were sometimes experienced.


Josh

  • Support Staff

November 26, 2015 at 9:45 am

If you have altered the MER plugin files directly to change the return to events list link, that would be why it reverted when you updated. There’s a filter hook,
FHEE__EED_Multi_Event_Registration__set_definitions__events_list_url
that you can use to change the link without doing any edits on the actual plugin files, which allows you to set the link once and will not get reverted on an update.

The hook is documented here:

https://eventespresso.com/wiki/ee4-multiple-event-registration-add-on/#customizations

and there’s some example code there as well that you can adapt and add to a functions plugin or into your WordPress theme’s functions.php file.


Brian Post

November 26, 2015 at 2:13 pm

Okay, I tried making the edits to the function.php file but I think I messed up as it did not work, and gave me an error message:

No configuration section has been provided while attempting to save “_Config”. EE_Config – _verify_config_params – 397

Whenever I tried to view any event. I reverted back to the backup of the function.php file I made before editing it. But I am still getting the same message at any event. for example: https://thestonetrust.org/event/2016-spring-test-day/ I even had the host server upload their emergency backup of the theme function.php file but still no difference. Any ideas? Now none of my events are viewable.


Josh

  • Support Staff

November 26, 2015 at 2:33 pm

Hi Brian,

Does your functions.php file change anything else in Event Espresso? If it does, you can try removing those functions, then go to the WP > Settings > Permalinks page in your WP admin to flush the permalinks.


Brian Post

November 27, 2015 at 5:31 am

hi josh there is nothing else in the file regarding EE

It is very short this is the contents of the functions file

<?php
define (‘FUNCTIONS’, TEMPLATEPATH . ‘/functions’);
define (‘COPY’, FUNCTIONS . ‘/vigilance.php’);
require_once (FUNCTIONS . ‘/sidebars.php’);
require_once (FUNCTIONS . ‘/comments.php’);
require_once (FUNCTIONS . ‘/vigilance-admin.php’);

// Use legacy comments template for versions less than 2.7
add_filter(‘comments_template’, ‘legacy_comments’);
function legacy_comments($file) {
if(!function_exists(‘wp_list_comments’)) $file = TEMPLATEPATH . ‘/legacy.comments.php’;
return $file;
}

add_theme_support( ‘post-thumbnails’ );
set_post_thumbnail_size( 150, 150, true );
?>

I am puzzled as to why the site does not work as before when returning to the previous file. Should I try flushing the permalinks? I do have experience as to what that would do.


Tony

  • Support Staff

November 27, 2015 at 5:53 am

I would recommend against using a closing PHP tag within your files, just to prevent ‘Header already sent errors’, I don’t think it’s the cause here, but worth noting.

Take a look here:

http://www.sitepoint.com/should-you-close-your-php-code-tags/

Back to your issue, can you go to Event Espresso -> General Settings and click save, does the error still show?


Brian Post

November 28, 2015 at 4:39 am

Hi Tony,

unfortunately saving the general settings did not make any difference.

Any other ideas?

-Brian


Brian Post

November 28, 2015 at 5:49 am

I uploded a backup of the whole site from my Vaultpress account. Lost a few hours work on the site, but it is all working as it was before. Now I just am back to needing that event list to look like something useable….


Lorenzo Orlando Caum

  • Support Staff

November 29, 2015 at 1:51 pm

Hi Brian,

I double-checked the filter that lets you change the URL and did not experience any issues.

Earlier you mentioned that you were using an older version of EE 4.8.x due to some other problems.

What are those issues?


Lorenzo

The support post ‘Changing the return to events list link’ 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