Forum

Thread tagged as: Problem

Getting http 500 error while creating a new page from page template

Hi All ,

i tried to create a new page from perch using the template The file is being created in the server but unfortunately i am not able to access it .

I get a http 500 error .

Kindly let me know what seems to be the issue .

Titus Saju

Titus Saju 0 points

  • 3 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

I responded to this question yesterday https://forum.grabaperch.com/forum/09-19-2017-getting-http-500-error-while-trying-to-access-a-newly-created-page-from-a-template

We are unable to help you unless you give us information about the actual error message, please read the information I linked last time and find out what the actual error is. We also need your template and Diagnostics Report, as I requested yesterday.

<?php if (!defined('PERCH_RUNWAY')) include($_SERVER['DOCUMENT_ROOT'].'/perch/runtime.php'); ?>
<!DOCTYPE html>
<html lang="en">

   <head>
      <meta charset="utf-8">
      <!--[if IE]>
      <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
      <![endif]-->
      <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0">
      <title><? php perch_page_title(); ?> | Missan It Solutions</title>
      <link rel="apple-touch-icon" sizes="57x57" href="assets/img/fav/apple-icon-57x57.png">
      <link rel="apple-touch-icon" sizes="60x60" href="assets/img/fav/apple-icon-60x60.png">
      <link rel="apple-touch-icon" sizes="72x72" href="assets/img/fav/apple-icon-72x72.png">
      <link rel="apple-touch-icon" sizes="76x76" href="assets/img/fav/apple-icon-76x76.png">
      <link rel="apple-touch-icon" sizes="114x114" href="assets/img/fav/apple-icon-114x114.png">
      <link rel="apple-touch-icon" sizes="120x120" href="assets/img/fav/apple-icon-120x120.png">
      <link rel="apple-touch-icon" sizes="144x144" href="assets/img/fav/apple-icon-144x144.png">
      <link rel="apple-touch-icon" sizes="152x152" href="assets/img/fav/apple-icon-152x152.png">
      <link rel="apple-touch-icon" sizes="180x180" href="assets/img/fav/apple-icon-180x180.png">
      <link rel="icon" type="image/png" sizes="192x192" href="assets/img/fav/android-icon-192x192.png">
      <link rel="icon" type="image/png" sizes="32x32" href="assets/img/fav/favicon-32x32.png">
      <link rel="icon" type="image/png" sizes="96x96" href="assets/img/fav/favicon-96x96.png">
      <link rel="icon" type="image/png" sizes="16x16" href="assets/img/fav/favicon-16x16.png">
      <!--[if lt IE 9]>
      <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
      <![endif]-->
      <link href="https://fonts.googleapis.com/css?family=Poppins:400,300,500,600,700%7CRaleway:400,100,100italic,200,200italic,300,300italic,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic%7COpen+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic%7CDroid+Serif:400,400italic,700,700italic" rel="stylesheet" type="text/css">
      <link rel="stylesheet" type="text/css" href="assets/css/devsolution.assets.min.css">
      <link rel="stylesheet" href="assets/css/style.css">
      <link rel="stylesheet" href="assets/css/responsive.css">
     <script src="//code.tidio.co/eumkuoeah8y87tuselosn70bahhb0faq.js"></script>
   </head>
   <body>
      <div class="site-container animsition">
        <header class="clearfix">
            <div class="topbar">
               <div class="container">
                  <div class="row">
                     <div class="col-md-6">
                        <ul class="contact-us">
                           <li><a href="#"><i class="fa fa-phone" aria-hidden="true"></i> (+971) - 6 - 5626006</a></li> &nbsp;
                           <li class="hidden-xs"><a href="#"><i class="fa fa-fax" aria-hidden="true"></i> (+971) - 6 - 5626363</a></li>
                        </ul>
                     </div>
                     <div class="col-md-6">
                        <ul class="contact-us contact-us-right text-center">
                           <li><a href="#"><i class="fa fa-envelope" aria-hidden="true"></i> info@missancomputer.com</a></li>
                           <li><a href="#"><i class="fa fa-map-marker" aria-hidden="true"></i> Sharjah , U.A.E</a></li>
                           <li>
                              <div class="dev-semenatic-drop ui floating dropdown labeled icon button  hidden-xs">
                                 <i class="world icon"></i> <span class="text">EN</span>
                                 <div class="menu">
                                    <div class="item">EN</div>
                                 </div>
                              </div>
                           </li>
                        </ul>
                     </div>
                  </div>
               </div>
            </div>
            <div class="menubar">
               <div class="container">
                  <div class="navbar">
                     <div class="navbar-header"><a class="navbar-brand clearfix" href="index-land.html"><img class="logo" alt="logo" src="img/Missan logo - extended.png"> </a></div>
                     <div class="collapsed-icons hidden-md">
                        <ul>

                           <li><button type="button" id="navbar-toggle" class="navbar-toggle" data-toggle="collapse"><span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span></button></li>
                        </ul>
                     </div>
                     <div class="navbar-collapse collapse navbar-right">
                        <ul class="navbar-nav nav">
                           <li class=""><a href="about-us.html">About Us</a></li>
                           <li>
                              <a href="#">Services</a>
                              <ul class="dropdown">
                                <li><a href="ecm.html">Enterprise Content Management</a></li> <li><a href="msp.html">Managed Service Provider (MSP)</a></li>
                                 <li><a href="mis.html">Managed IT Services</a></li>

                                 <li><a href="digital.html">Digital Media Marketing</a></li>
                                 <li><a href="bc.html">Buisness Continuity & Disaster Recovery </a></li>
                              </ul>
                           </li>
                           <li>
                              <a href="index-land.html#news">News & Updates</a>

                           </li>
                           <li>
                              <a href="https://ww4.autotask.net/ClientPortal/Login.aspx?ci=800377" target="_blank">Support</a>

                            </li>
                           <li><a href="contact.html">Contact us</a></li>
                        </ul>
                     </div>
                  </div>
               </div>
            </div>
         </header>
          <div class="page-title mini-page-title" data-background="demo/page-title/bg-01.jpg" data-mode="none">
            <?php perch_content('Banner - Section'); ?>
         </div>
         <div class="wrapper clearfix">
            <section class="padding paddv-120">
               <?php perch_content('Intro / Overview - Section'); ?>
            </section>
             <?php perch_content('Major Banner'); ?>
          <div class="wrapper clearfix">
            <section class="padding paddv-120">
                <?php perch_content('Page Ending Section'); ?>
            </section>
             </div>

         </div>
            <?php perch_content('Case Study Section'); ?>
         <footer>
            <div class="widgets-block padding paddv-60">
               <div class="container">
                  <div class="row widgets">
                     <div class="col-md-4">
                        <div class="widget widget-text">
                           <h2>About Us</h2>
                           <p>As a leading provider of managed services, we would like to provide a no-obligation inventory and assessment of your IT systems, network and business technology to help you identify security vulnerabilities and integrity risks to your organization.</p>
                           <div class="dev-newsletter">
                              <h2>Subscribe our newsletter</h2>
                              <form action="#" method="GET" data-list_id="5cdb4dac1a">
                                 <div class="input-group"><input type="text" class="form-control" size="25" id="email" name="email" placeholder="yourname@domain.com"> <span class="input-group-btn"><button class="btn btn-default" type="submit"><i class="fa fa-paper-plane" aria-hidden="true"></i></button></span></div>
                              </form>
                           </div>
                        </div>
                     </div>
                     <div class="col-md-4">
                        <div class="widget widget-address">
                           <h2>Find us at</h2>
                           <p>MAIN OFFICE:<br>15<sup style="font-size:10px">th</sup> Floor , Bel Rasheed Tower , Buhairah Corniche , Sharjah</p>
                           <h4 class="footer-1">General Enquiries :</h4>
                           <p><i class="fa fa-phone" aria-hidden="true"></i> +971 - 6 - 5626006<br><i class="fa fa-envelope-o" aria-hidden="true"></i> info@missancomputer.com</p>
                           <h4 class="footer-1">Sales Enquiries :</h4>
                           <p><i class="fa fa-phone" aria-hidden="true"></i> +971 - 6 - 5626006<br><i class="fa fa-envelope-o" aria-hidden="true"></i> sales@missancomputer.com</p>
                           <p><i class="fa fa-calendar" aria-hidden="true"></i> Sunday - Saturday : 8:00 Am - 06:00 Pm<br>Friday : Closed</p>
                        </div>
                     </div>
                     <div class="col-md-4">
                        <div class="widget widget-contact">
                           <h2>Send us a message</h2>
                           <form class="contact-form" id="contact-form" method="post" action="https://devsolution.info/themes-html/industry-html/php/contact/contact.php">
                              <div class="form-group"><input type="text" class="form-control" name="dev[name]" id="dev-name" placeholder="Name"></div>
                              <div class="form-group"><input type="email" class="form-control" name="dev[email]" id="dev-email" placeholder="Email"></div>
                              <div class="form-group"><textarea class="form-control" name="dev[message]" id="dev-message" placeholder="Enter your message"></textarea></div>
                              <button type="submit" class="devbtn">Send Us</button>
                           </form>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
            <div class="bottom-block padding paddv-60">
               <div class="container">
                  <div class="row">
                     <div class="col-md-12">
                        <ul class="footer-social">
                           <li><a href="https://www.facebook.com/missancomputer" target="_blank"><i class="fa fa-facebook"></i></a></li>
                           <li><a href="https://twitter.com/techmissan" target="_blank"><i class="fa fa-twitter"></i></a></li>
                           <li><a href="https://www.youtube.com/channel/UCRZ7f5036qT-8Qf8qkqSsvg" target="_blank"><i class="fa fa-youtube"></i></a></li>
                           <li><a href="https://www.linkedin.com/company/missan-computer"><i class="fa fa-linkedin"></i></a></li>
                        </ul>
                        <p>Copyright &copy; 2017 <a href="#"> Missan IT Solutions </a>. All rights reserved</p>
                     </div>
                  </div>
               </div>
               <a href="#" id="gotop" class="gotop"><i class="fa fa-angle-up" aria-hidden="true"></i></a>
            </div>
         </footer>
      </div>
      <div class="mobile-menu" id="mobile-menu">
         <a href="#" class="close-menu"><i class="fa fa-times" aria-hidden="true"></i></a>
         <div class="sidebar">
            <div class="widgets widget-menu">
               <h2>Navigation</h2>
               <ul class="navbar-nav nav">
                           <li class=""><a href="about-us.html">About Us</a></li>
                           <li>
                              <a href="#">Services</a>
                              <ul class="dropdown">
                                 <li><a href="ecm.html">Enterprise Content Management</a></li> <li><a href="coming-soon.html">Managed Service Provider (MSP)</a></li>
                                 <li><a href="mis.html">Managed IT Services</a></li>

                                 <li><a href="digital.html">Digital Media Marketing</a></li>
                                 <li><a href="bc.html">Buisness Continuity & Disaster Recovery </a></li>
                              </ul>
                           </li>
                           <li>
                              <a href="#news">News & Updates</a>

                           </li>
                           <li>
                              <a href="https://ww4.autotask.net/ClientPortal/Login.aspx?ci=800377" target="_blank">Support</a>

                           </li>
                           <li><a href="contact.html">Contact us</a></li>
                        </ul>
            </div>

         </div>
      </div>
      <div class="overlay overlay-contentscale">
         <a href="#" class="overlay-close"><i class="fa fa-times" aria-hidden="true"></i></a>
         <div id="mk-fullscreen-search-wrapper">
            <form method="get" id="mk-fullscreen-searchform" action="https://devsolution.info/themes-html/industry-html/index-land.html"><input type="text" value="" name="s" id="mk-fullscreen-search-input" placeholder="Start search and press enter..."> <i class="pe-7s-search"><input value="" type="submit"></i></form>
         </div>
      </div>
      <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCPs_H3SSavr4AjVO_HPUUcplIhamniJzQ" type="text/javascript"></script><script type="text/javascript" src="assets/js/devsolution.assets.min.js"></script><script type="text/javascript" src="assets/js/devsolution.setup.min.js"></script>
   </body>

</html>

Health check

Perch is up to date PHP 7.1.7 is up to date MySQL 5.6.36-cll-lve is up to date Image processing available File upload size is low. You can only upload files up to 2M. Summary information

Perch: 3.0.10, PHP: 7.1.7, MySQL: 5.6.36, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (3.0.10), assets (3.0.10), categories (3.0.10) App runtimes: <?php $apps_list = [ ]; PERCH_LOGINPATH: /perch PERCH_PATH: /home/missan/public_html/perch PERCH_CORE: /home/missan/public_html/perch/core PERCH_RESFILEPATH: /home/missan/public_html/perch/resources Image manipulation: GD Imagick PHP limits: Max upload 2M, Max POST 8M, Memory: 128M, Total max file upload: 2M F1: 3b606135b33e6a102526838f4152a807 Resource folder writeable: Yes SCRIPT_NAME: /perch/core/settings/diagnostics/index.php REQUEST_URI: /perch/core/settings/diagnostics/ DOCUMENT_ROOT: /home/missan/public_html HTTP_HOST: missancomputer.com

Please let me know if anything more is required .

The code I have mentioned is basically my template .

I am able to create a new page with default.php template . but with this I am not able to.

Drew McLellan

Drew McLellan 2638 points
Perch Support

We need to know what error message you're getting in your server error log.