Home » Ask (Forum) » Internal Server Error message between post.

Question

Hello I am getting a message between my wordpress post. It is only happening with your theme. The message is :-

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Image reference: https://s18.postimg.org/4ess5hadl/error_image.jpg

error image

Oct 15, 2016 (2 months ago) - Posted by 5 Comments

5 Answers

  1. Vishal says:

    All your themes are giving me same error.

    Register Member
  2. Mr. Shine says:

    Hi. Do you mean you got 500 Internal Server Error, right? If yes, the problem don’t come from theme but i think something wrong or misconfiguration in your .htaccess file. Please check that file, or try this, rename .htaccess become .htaccess22, if your site back to normal, you can delete all content in .htaccess, and re-generate file from dashboard admin > settings > permalink > save change.

    Good luck!

    Administrator
    • Vishal says:

      .htaccess doesn’t helped me. See the error is not on website but its between all the post I have published. I had a word with my hosting cc, they told me that my website is fetching details from external sites and asked me to contact developer. I tried using other themes but I don’t have their errors. It is only happening with your themes.

      Register Member
  3. Vishal says:

    After some research, I removed one code from the functions.php and the errror message is now not coming. May I know for what purpose this code is used ? Code is :-

    /* insert in sec0nd paragraph */
    function prefix_insert_post_ads( $content ) {
    	$ad_code = wp_remote_retrieve_body( wp_remote_get(get_template_directory_uri() . '/ad_second_paragraph.php') );
    		if( is_singular( array('post')) ) {
    		return prefix_insert_after_paragraph( $ad_code, 2, $content ); // paragraf?
    		}
    	return $content;
    }
     
    function prefix_insert_after_paragraph( $insertion, $paragraph_id, $content ) {
    	$closing_p = '';
    	$paragraphs = explode( $closing_p, $content );
    	foreach ($paragraphs as $index => $paragraph) {
    		if ( trim( $paragraph ) ) {
    			$paragraphs[$index] .= $closing_p;
    		}
    		if ( $paragraph_id == $index + 1 ) {
    			$paragraphs[$index] .= $insertion;
    		}
    	}
    	return implode( '', $paragraphs );
    }
    add_filter( 'the_content', 'prefix_insert_post_ads' );
    Register Member
    • Mr. Shine says:

      I’m very happy for hear it. That code for display ads after second paragraph. This is the screenshot:
      ads second paragraph

      Administrator

Your Answer

Your email address will not be published. Required fields are marked *