Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #949422

    Fatal error: Cannot redeclare av_upcoming_events_fallback() (previously declared in …/home/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/events_upcoming.php:15) in /web/htdocs/www.paolopercaus.photography/home/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/events_upcoming/events_upcoming.php on line 13

    tried to reload old version but it does not work

    • This topic was modified 6 years, 7 months ago by czar.
    #949426

    1 site with Enfold automatically updated and works
    2 sites, manually updated with ftp are broken:

    Fatal error: Cannot redeclare av_upcoming_events_fallback() (previously declared in ./home/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/events_upcoming.php:15) in /web/htdocs/www.paolopercaus.photography/home/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/events_upcoming/events_upcoming.php on line 13

    #949484

    I had to hide these lines to make it work

    /**
    if( !class_exists( 'Tribe__Events__Main' ) )
    {
    	function av_upcoming_events_fallback()
    	{
    		return "<p>Please install the <a href='https://wordpress.org/plugins/the-events-calendar/'>The Events Calendar</a> or <a href='http://mbsy.co/6cr37'>The Events Calendar Pro</a> Plugin to display a list of upcoming Events</p>";
    	}
    	
    	add_shortcode('av_upcoming_events', 'av_upcoming_events_fallback');
    	return;
    }
     */

    and
    // "taxonomy" => Tribe__Events__Main::TAXONOMY,

    • This reply was modified 6 years, 7 months ago by czar.
    #949492

    so I solved with automatic update, but I do not understand why with FTP it gives error

    #950218

    Same problem here! Got a simple solution:
    As the events_upcoming.php shows the following Information in the source code:

    /**
    * Upcoming Events
    *
    * Show a list of upcoming events
    * Element is in Beta and by default disabled. Todo: test with layerslider elements. currently throws error bc layerslider is only included if layerslider element is detected which is not the case with the post/page element
    */

    I simply renamed the

    /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/events_upcoming/events_upcoming.php

    into “events_upcoming.bak” and everythings works fine. Seems like FTP upload doesn’t deactivate this beta thing by default! Hope it helps you too.

    • This reply was modified 6 years, 7 months ago by DexLab.
    #950315

    Hi,

    Thank you for that solution – re appreciate it a lot!

    Best regards,
    Basilis

    #950320

    I have the same issue. I could not update automatically so I did ftp and now the site is down.
    Where is this file you talk about found?

    #950326

    Duplicate

    • This reply was modified 6 years, 7 months ago by elames.
    #950332

    Managed to fix by restoring files in my cpanel but am at a loss as to why this happens every time with ftp

    #950368

    @elames: Edited my prior post to clarify the filelocation. It’s the file mentioned in the error:

    /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/events_upcoming/events_upcoming.php

    #951280

    Hi DexLab,

    Thanks for sharing, much appreciated :-)

    Best regards,
    Rikard

    #972564

    this worked for me as well thanks so much!

    #972862

    Hi Angelo,

    Great, glad you got it working :-)

    Best regards,
    Rikard

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.