mbwani Posted August 11, 2012 Share Posted August 11, 2012 (edited) hi there , i am having a website related to movies and i use wordpress plateform, from i think 6 days when ever i am trying to post on the website at the end when i press publish it takes time to publish and at the end displays the error : Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator 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. and then when i enter the website url . post is live and published on website . only problem occurs when i update or publish the post i host on godaddy and they told me to change the settings on the server as script takes long time to execute and i did that and nothing happens. problem is with script and i am unable to find out the problem, so please help me to cure script of my website. my website is www.filmmovienew.com i am attaching the error logs which i activated on the server so that it may help in detecting the origin of error . error.txt Edited August 11, 2012 by mbwani Link to comment Share on other sites More sharing options...
boen_robot Posted August 11, 2012 Share Posted August 11, 2012 The error log doesn't seem to say anything that you didn't already knew - the script takes too long (above 120 seconds), so it's terminated forcefully.Apparently, you haven't reduced its time. Perhaps you have an infinite loop somewhere in your code?What's the code of the page that triggers this error? I mean the one at the "action" attribute on your post update form. Link to comment Share on other sites More sharing options...
mbwani Posted August 11, 2012 Author Share Posted August 11, 2012 this is my themes index.php <?php get_header(); ?> <?php if (get_option('cgr_slide_display') == 'Hide') { ?><?php { echo ''; } ?><?php } else { include(TEMPLATEPATH . '/include/slider.php'); } ?> <div id="content" class="clearfix"> <div id="home-content"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="home-entry clearfix" id="post-<?php the_ID(); ?>"> <a href="<?php the_permalink()?>" rel="bookmark" > <?php if (has_post_thumbnail()) { the_post_thumbnail('home-thumb' ,array('class' => 'home-thumb trans-border', 'title' => get_the_title()));} else { ?> <img class="home-thumb trans-border" src="<?php echo catch_first_image() ?>" width="200px" height="150px" title="<?php the_title(); ?>" > <?php } ?> </a> <div class="home-post"> <h2 class="post-title"> <a href="<?php the_permalink(); ?>" title="Permanent Link to <?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a> </h2> <div class="home-meta"><span class="italic">Posted on <?php the_time('M j, Y'); ?> under <?php the_category(' , ') ?></span></div> <div class="home-excerpt"><?php the_excerpt() ;?> </div> </div> </div> <?php endwhile; ?> <?php cgr_pagination(); ?> <?php else : ?> <h2>Nothing Found</h2><?php endif; ?> </div> <!-- end of #home-content --><?php get_sidebar(); ?> </div> <!--End of #content --></div><!--End of #container --></div><!--End of #wrapper --><?php get_footer(); ?> Link to comment Share on other sites More sharing options...
boen_robot Posted August 12, 2012 Share Posted August 12, 2012 You've abstracted your code well... but that means that now, you need to dig deeper to find the issue.Remove all code, except the top line, try that, and if it works, repeat this process by adding a brach/function call, and retesting until you get forcefully terminated again. At that point, repeat the same process for the last branch/function that you added. Link to comment Share on other sites More sharing options...
mbwani Posted August 17, 2012 Author Share Posted August 17, 2012 i have changed my theme to default and nothing happens, so the theme is not the problem and infinite loop is not contained in the theme, i can't understand where can i find the infinite loop i am using wordpress hosting for my website . Link to comment Share on other sites More sharing options...
justsomeguy Posted August 18, 2012 Share Posted August 18, 2012 Did you modify Wordpress at all? If so, the problem could be in one of the mods. If not, the problem might be in Wordpress itself. Does this always happen, or does it work sometimes? Link to comment Share on other sites More sharing options...
mbwani Posted August 18, 2012 Author Share Posted August 18, 2012 i recently updated wordpress to latest version and still the problem persists. firstly it was happening sometimes and now it happens with every post whenever i try to update or post something. if mod is the cause, then how can i fix problem with one of the mods. Link to comment Share on other sites More sharing options...
boen_robot Posted August 18, 2012 Share Posted August 18, 2012 By removing/disabling all mods, and reinstalling them one by one, until the problem appears again. Only then you can identify the mod, so that you can then begin to debug it (or find another one that doesn't have this bug). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now