Internal Server Error 500

Good afternoon,

I have this on Travelify under Customize. All else works. Have tried other themes. They work to customize. Only Travelify and, in my case, Travelify Child, don’t work to customize. Can give admin access if it would help. Tried deactivating plugins. Was able to customize but now cannot add footer text to child without the same, internal server error 500. Latest version of WP. All else up to date.

Hi @elenacoen,

Sorry to hear of the problem you are having.

I have tested it on my test site and it’s working fine for me using latest version of Travelify theme.

This can be child theme issue on your site so to confirm it just temporary use the Travelify theme instead of child theme on your site. If everything works fine then it’s your child theme issue so just share me your child theme so that i can troubleshoot it.

The 500—Internal Server Error occurs when the Web server (running the Web Site) encountered an unexpected condition that prevented it from fulfilling the request by the client for access to the requested URL.

Could you please check whether the solution posted on the following pages help you to fix this issue?

Best Regards,
Movin

Thank you for looking into this. I got this error once on Travelify parent. I have tried all the fixes I can find. Below are style.css and functions.php from the child theme

/*
Theme Name: Travelify Child
Theme URI: https://colorlib.com/
Description: Child theme for the Travelify theme
Author: Aigars Silkalns
Author URI: https://colorlib.com/
Template: travelify
Version: 2.0
*/

/**

  • Your custom CSS code goes here
    */
    .form-allowed-tags {
    display: none;
    }

body,input,textarea,article {
font: 16px Helvetica, sans-serif;
}


<?php

// Queue parent style followed by child/customized style
add_action( ‘wp_enqueue_scripts’, ‘func_enqueue_child_styles’, 99);

function func_enqueue_child_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
wp_dequeue_style(‘travelify_style’);
wp_enqueue_style( ‘travelify_style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array(‘parent-style’)
);
}

/**

  • Function to show the page content.
    */
    function travelify_theloop_for_page() {
    global $post;

    if( have_posts() ) {
    while( have_posts() ) {
    the_post();

     	do_action( 'travelify_before_post' );
    

?>
<section id=“post-<?php the_ID(); ?>” <?php post_class(); ?>>
<article>

		&lt;?php do_action( 'travelify_before_post_header' ); ?&gt;

		&lt;header class="entry-header"&gt;
			&lt;h1 class="entry-title"&gt;
				&lt;?php the_title(); ?&gt;
			&lt;/h1&gt;&lt;!-- .entry-title --&gt;
		&lt;/header&gt;

		&lt;?php do_action( 'travelify_after_post_header' ); ?&gt;

		&lt;?php do_action( 'travelify_before_post_content' ); ?&gt;

		&lt;div class="entry-content clearfix"&gt;
			&lt;?php the_content(); ?&gt;
			&lt;?php
				wp_link_pages( array(
					'before'            =&gt; '&lt;div style="clear: both;"&gt;&lt;/div&gt;&lt;div class="pagination clearfix"&gt;'.__( 'Pages:', 'travelify' ),
					'after'             =&gt; '&lt;/div&gt;',
					'link_before'       =&gt; '&lt;span&gt;',
					'link_after'        =&gt; '&lt;/span&gt;',
					'pagelink'          =&gt; '%',
					'echo'              =&gt; 1
           ) );
			?&gt;
		&lt;/div&gt;

		&lt;?php

		do_action( 'travelify_after_post_content' );

		do_action( 'travelify_before_comments_template' );

     comments_template();

     do_action ( 'travelify_after_comments_template' );

     ?&gt;

	&lt;/article&gt;
&lt;/section&gt;

<?php
do_action( ‘travelify_after_post’ );

	}
}
else {
	?&gt;
	&lt;h1 class="entry-title"&gt;&lt;?php _e( 'No Posts Found.', 'travelify' ); ?&gt;&lt;/h1&gt;
  &lt;?php

}
}

/**

  • Function to show the single post content.
    */
    function travelify_theloop_for_single() {
    global $post;

    if( have_posts() ) {
    while( have_posts() ) {
    the_post();

     	do_action( 'travelify_before_post' );
    

?>
<section id=“post-<?php the_ID(); ?>” <?php post_class(); ?>>
<article>

		&lt;?php do_action( 'travelify_before_post_header' ); ?&gt;

		&lt;header class="entry-header"&gt;
			&lt;h1 class="entry-title"&gt;
				&lt;?php the_title(); ?&gt;
			&lt;/h1&gt;&lt;!-- .entry-title --&gt;
	&lt;/header&gt;

	&lt;?php do_action( 'travelify_after_post_header' ); ?&gt;

	&lt;?php do_action( 'travelify_before_post_meta' ); ?&gt;

		&lt;div class="entry-meta-bar clearfix"&gt;
			&lt;div class="entry-meta"&gt;
    				&lt;?php travelify_posted_on(); ?&gt;
    				&lt;?php if( has_category() ) { ?&gt;
             		&lt;span class="category"&gt;&lt;?php the_category(', '); ?&gt;&lt;/span&gt;
             	&lt;?php } ?&gt;
    				&lt;?php if ( comments_open() ) { ?&gt;
             		&lt;span class="comments"&gt;&lt;?php comments_popup_link( __( 'No Comments', 'travelify' ), __( '1 Comment', 'travelify' ), __( '% Comments', 'travelify' ), '', __( 'Comments Off', 'travelify' ) ); ?&gt;&lt;/span&gt;
             	&lt;?php } ?&gt;
			&lt;/div&gt;&lt;!-- .entry-meta --&gt;
		&lt;/div&gt;

			&lt;?php do_action( 'travelify_after_post_meta' ); ?&gt;

			&lt;?php do_action( 'travelify_before_post_content' ); ?&gt;

		&lt;div class="entry-content clearfix"&gt;
			&lt;?php the_content();
			if( is_single() ) {
					$tag_list = get_the_tag_list( '', __( ', ', 'travelify' ) );

					if( !empty( $tag_list ) ) {
						?&gt;
						&lt;div class="tags"&gt;
							&lt;?php echo $tag_list; ?&gt;
						&lt;/div&gt;
						&lt;?php
					}
				}

           wp_link_pages( array(
					'before'            =&gt; '&lt;div style="clear: both;"&gt;&lt;/div&gt;&lt;div class="pagination clearfix"&gt;'.__( 'Pages:', 'travelify' ),
					'after'             =&gt; '&lt;/div&gt;',
					'link_before'       =&gt; '&lt;span&gt;',
					'link_after'        =&gt; '&lt;/span&gt;',
					'pagelink'          =&gt; '%',
					'echo'              =&gt; 1
           ) );
           ?&gt;
		&lt;/div&gt;

		&lt;?php

		do_action( 'travelify_after_post_content' );

		do_action( 'travelify_before_comments_template' );

     comments_template();

     do_action ( 'travelify_after_comments_template' );

     ?&gt;

	&lt;/article&gt;
&lt;/section&gt;

<?php
do_action( ‘travelify_after_post’ );

	}
}
else {
	?&gt;
	&lt;h1 class="entry-title"&gt;&lt;?php _e( 'No Posts Found.', 'travelify' ); ?&gt;&lt;/h1&gt;
  &lt;?php

}
}
if ( ! function_exists( ‘travelify_featured_post_slider’ ) ) :
/**

  • display featured post slider

  • @uses set_transient and delete_transient
    */
    function travelify_featured_post_slider() {
    global $post;

    global $travelify_theme_options_settings;
    $options = $travelify_theme_options_settings;

    $travelify_featured_post_slider = ‘’;
    if( ( !$travelify_featured_post_slider = get_transient( ‘travelify_featured_post_slider’ ) ) && !empty( $options[ ‘featured_post_slider’ ] ) ) {
    $travelify_featured_post_slider .= ’
    <section class=“featured-slider”><div class=“slider-cycle”>’;
    $get_featured_posts = new WP_Query( array(
    ‘posts_per_page’ => $options[ ‘slider_quantity’ ],
    ‘post_type’ => array( ‘post’, ‘page’ ),
    ‘post__in’ => $options[ ‘featured_post_slider’ ],
    ‘orderby’ => ‘post__in’,
    ‘ignore_sticky_posts’ => 1 // ignore sticky posts
    ));
    $i=0; while ( $get_featured_posts->have_posts()) : $get_featured_posts->the_post(); $i++;
    $title_attribute = apply_filters( ‘the_title’, get_the_title( $post->ID ) );
    $excerpt = get_the_excerpt();
    if ( 1 == $i ) { $classes = “slides displayblock”; } else { $classes = “slides displaynone”; }
    $travelify_featured_post_slider .= ’
    <div class="’.$classes.’">’;
    if( has_post_thumbnail() ) {

     					$travelify_featured_post_slider .= get_the_post_thumbnail( $post-&gt;ID, 'slider', array( 'title' =&gt; esc_attr( $title_attribute ), 'alt' =&gt; esc_attr( $title_attribute ), 'class'	=&gt; 'pngfix' ) ).'&lt;/figure&gt;';
     				}
     				if( $title_attribute != '' || $excerpt !='' ) {
     				$travelify_featured_post_slider .= '
     					&lt;article class="featured-text"&gt;';
     					if( $title_attribute !='' ) {
     							$travelify_featured_post_slider .= '&lt;div class="featured-title"&gt;'. get_the_title() . '&lt;/div&gt;&lt;!-- .featured-title --&gt;';
     					}
     					if( $excerpt !='' ) {								
     						$travelify_featured_post_slider .= '&lt;div class="featured-content"&gt;'.$excerpt.'&lt;/div&gt;&lt;!-- .featured-content --&gt;';
     					}
     				$travelify_featured_post_slider .= '
     					&lt;/article&gt;&lt;!-- .featured-text --&gt;';
     				}
     		$travelify_featured_post_slider .= '
     		&lt;/div&gt;&lt;!-- .slides --&gt;';
     	endwhile; wp_reset_query();
     $travelify_featured_post_slider .= '&lt;/div&gt;				
     &lt;nav id="controllers" class="clearfix"&gt;
     &lt;/nav&gt;&lt;!-- #controllers --&gt;&lt;/section&gt;&lt;!-- .featured-slider --&gt;';
    

    set_transient( ‘travelify_featured_post_slider’, $travelify_featured_post_slider, 86940 );
    }
    echo $travelify_featured_post_slider;
    }
    endif;

Do you mean you are also facing this issue when you use Travelify parent theme?

If yes then could you please share me the password privately by checking the option “Set as private reply” when replying here so that i can troubleshoot it?