Support » Plugin: My Custom Functions » website went down after applied some code

  • Resolved Ronald Montenegro

    (@rodmontgt)


    I have added some code using this plugin but it causes fatal error, the website went down, so I had to deactivate the plugin through FTP, the error is:
    /wp-content/plugins/my-custom-functions/inc/php/functional.php(85) : eval()’d code on line 25

    The code was:

    function custom_widget_featured_image() {
      global $post;
    
      echo tribe_event_featured_image( $post->ID, 'thumbnail' );
    }
    add_action( 'tribe_events_list_widget_before_the_event_title', 'custom_widget_featured_image' )

    Now that I want to add a “;” at the final of the code( I think that caused the fatal error) I cannot activate the plugin because is showing the above error:
    /wp-content/plugins/my-custom-functions/inc/php/functional.php(85) : eval()’d code on line 25

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘website went down after applied some code’ is closed to new replies.