Phalcon Framework 1.3.5

Phalcon\Mvc\Model\Exception: The index does not exist in the cursor

/var/www/vhosts/sites-available/hansoku-dream.com/cache/_var_www_themes_themes-available_corporate2_views_partials_catalogs.volt.php (41)
#0Phalcon\Mvc\Model\Resultset->offsetGet(0)
<?php if ($page->parameters == 'list_top') { ?>
 
<!-- PORTFOLIO -->
<div id="portfolio" class="margint60 full-width">
  <p class="section-title margint60"><?php echo $page->title; ?></p>
  <hr class="underline">
  <ul id="prtfl-list">
  <?php foreach ($page->getCatalogs(array('status = 1', 'order' => 'seq')) as $catalog) { ?>
    <li>
      <?php $photos = $catalog->getPhotos(array('order' => 'seq')); ?>
      <?php $photo = $photos[0]; ?>
      <a href="<?php echo $homeUrl . $catalog->page->url; ?>/view/<?php echo $catalog->id; ?>">
      <img src="<?php echo $this->tag->crop($photo->file->full_filename, 600, 350); ?>" class="img-responsive" alt="<?php echo $photo->title; ?>" />
      <div class="mask"></div></a>
    </li>
  <?php } ?>
  </ul>
  <ul id="prtfl-list-controller" class="margint40 marginb40 clearfix sp1">
    <li><a id="prev" href=""><i class="icon-angle-left"></i></a></li>
    
    <li><a id="next" href=""><i class="icon-angle-right"></i></a></li>
  </ul>
</div>
 
<?php } elseif ($page->parameters == 'list') { ?>  
 
<?php } else { ?>
 
<!-- FEATURED -->
<div id="featured" class="animated-area margint60">
  <div class="container marginb40">
  <?php foreach ($page->getCatalogs(array('status = 1', 'order' => 'seq')) as $catalog) { ?>
    <div class="information">
      <p class="section-title margint60"><?php echo $catalog->title; ?></p>
      <hr class="underline">
      <h2 class="margint20"><?php echo $catalog->sub_title; ?></h2>
      <p class="margint20"><?php echo $catalog->body; ?></p>
    </div>
    <div id="featured_slider" class="margint40 marginb25">
      <?php $photos = $catalog->getPhotos(array('order' => 'seq')); ?>
      <?php $photo = $photos[0]; ?>
      <div class="featured_slider_main animated" data-animation="fadeIn" data-animation-delay="0.3s">
      <?php if ($photo->link != '') { ?>
      <a href="<?php echo $photo->link; ?>" /><img src="<?php echo $this->tag->resize($photo->file->full_filename, 633, 371); ?>" class="img-responsive" alt="<?php echo $photo->title; ?>" /></a>
      <?php } else { ?>
      <img src="<?php echo $this->tag->resize($photo->file->full_filename, 633, 371); ?>" class="img-responsive" alt="<?php echo $photo->title; ?>" />
      <?php } ?>
      </div>
    </div>
 
  <?php } ?>
  </div>
</div>
 
<?php } ?>
 
#1Phalcon\Mvc\View\Engine\Volt->render(/var/www/themes/themes-available/corporate2/views/partials/catalogs.volt, Array(29), false)
#2Phalcon\Mvc\View->_engineRender(Array([.volt] => Object(Phalcon\Mvc\View\Engine\Volt)), partials/catalogs, false, false, false)
#3Phalcon\Mvc\View->partial(partials/catalogs, Array([page] => Object(Pages)))
#4Phalcon\Mvc\View\Engine->partial(partials/catalogs, Array([page] => Object(Pages)))
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="format-detection" content="telephone=no">
 
<?php echo $this->tag->getTitle(); ?>
<?php if (isset($seo_description) && $seo_description != '') { ?>
  <meta name="description" content="<?php echo $seo_description; ?>">
<?php } ?>
<?php if (isset($seo_keywords) && $seo_keywords != '') { ?>
  <meta name="keywords" content="<?php echo $seo_keywords; ?>">
<?php } ?>
<?php if (isset($seo_meta) && $seo_meta != '') { ?>
  <?php echo $seo_meta; ?>
<?php } ?>
 
    <?php if (isset($facebook)) { ?>
    <meta property="og:type" content="<?php echo $facebook['type']; ?>" />
    <meta property="og:url" content="<?php echo $facebook['url']; ?>" />
    <meta property="og:title" content="<?php echo $facebook['title']; ?>" />
    <meta property="og:description" content="<?php echo $facebook['description']; ?>" />
    <meta property="og:image" content="<?php echo $facebook['image']; ?>" />
    <meta property="fb:app_id" content="<?php echo $facebook['app_id']; ?>" />
    <?php } ?>
 
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link rel="shortcut icon" href="<?php echo $homeUrl; ?>images/favicon.ico">
<!-- CSS FILES -->
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="/rss.xml">
<link rel="stylesheet" href="<?php echo $themeUrl; ?>js/rs-plugin/css/settings.css" />
<link rel="stylesheet" href="<?php echo $themeUrl; ?>css/bootstrap.min.css">
<link rel="stylesheet" href="<?php echo $themeUrl; ?>css/main.css">
<link rel="stylesheet" href="<?php echo $themeUrl; ?>css/line.css">
<link rel="stylesheet" href="<?php echo $themeUrl; ?>css/boxme.responsive.css">
<link rel="stylesheet" href="<?php echo $themeUrl; ?>css/add.css">
<link rel="stylesheet" href="<?php echo $homeUrl; ?>css/site.css">
<link href="//fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700,800,900" rel="stylesheet" type="text/css">
 
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
 
 
<script src="<?php echo $themeUrl; ?>js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
<!-- Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
  <script src="<?php echo $themeUrl; ?>js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!--[if lt IE 7]>
    <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->
 
<div id="wrapper">
  <!-- HEADER -->
  <header>
    <div id="inside-header" class="style2">
      <div class="container">
        <div class="header-wrapper">
          <div class="pull-left logo">
            <a href="<?php echo $homeUrl; ?>"><img class="img-responsive" src="<?php echo $this->tag->resize($logo->file->full_filename, 732, 180); ?>" alt="<?php echo $logo->title; ?>"></a>
          </div>
          <div class="pull-right menu">
            <nav class="pull-left menu-bar" id="responsive-menu">
              <ul class="site-menu" id="site-menu">
              <?php foreach ($menus as $menu) { ?>
              <?php if ($menu->status == 1) { ?>
                <?php if ($menu->type == 'top') { ?>
              <li><a<?php if ($page->type == 'top') { ?> class="active"<?php } ?> href="<?php echo $homeUrl; ?>"><?php echo $menu->title; ?></a></li>
                  <?php } elseif ($menu->type == 'links') { ?>
                <li><a href="<?php echo $menu->url; ?>" target="_blank"><?php echo $menu->title; ?></a></li>
                <?php } elseif ($menu->type == 'htmls' && $menu->parameters == 'top_page') { ?>
                <li><a href="<?php echo $homeUrl; ?>#<?php echo $menu->url; ?>"><?php echo $menu->title; ?></a></li>
                  <?php } else { ?>
                  <li><a<?php if ($page->id == $menu->id) { ?> class="active"<?php } ?> href="<?php echo $homeUrl . $menu->url; ?>"><?php echo $menu->title; ?></a></li>
                  <?php } ?>
                <?php } ?>
              <?php } ?>
              </ul>
            </nav>
          </div>
        </div>
      </div>
    </div>
  </header>
 
  
 
<!-- REVOLUTION SLIDER -->
<div class="fullwidthbanner-container" >
<!--
  <div class="fullwidthbanner">
  -->
  <!--pc-->
    <ul class="rslides">
      <?php foreach ($sliders as $index => $photo) { if ($index < 10) { ?>
      <li>
        <?php if ($photo->link != '') { ?><a href="<?php echo $photo->link; ?>" target="_blank"><img src="<?php echo $this->tag->crop($photo->file->full_filename, 1920, 502); ?>" alt="<?php echo $photo->title; ?>" /></a>
        <?php } else { ?>
        <img src="<?php echo $this->tag->resize($photo->file->full_filename, 1920, 0); ?>" alt="<?php echo $photo->title; ?>" />
        <?php } ?>
      </li>
      <?php } ?><?php } ?>
    </ul>
    
    
    <!--sp-->
    <ul class="sp_img rslides">  
  <?php foreach ($others as $index => $photo) { if ($index < 2) { ?>
  <li>
  <?php if ($photo->link != '') { ?><a href="<?php echo $photo->link; ?>" target="_blank"><img src="<?php echo $this->tag->resize($photo->file->full_filename, 880, 0); ?>" alt="<?php echo $photo->title; ?>" /></a>
  <?php } else { ?>
  <img src="<?php echo $this->tag->resize($photo->file->full_filename, 880, 0); ?>" alt="<?php echo $photo->title; ?>" />
  <?php } ?>
  </li>
  <?php } ?><?php } ?>
  </ul>
    
    <!--
  </div>
  -->
  
</div>
 
<!-- SERVICES -->
<div id="main-info" class="margint40 pos-center">
  <div class="container index-style">
    <div class="row margint20 info">
    <?php foreach ($others as $index => $photo) { if ($index < 6) { ?>
      <div class="col-lg-3 col-md-3 col-sm-6 col3-box four_area">
      
      <a href="<?php echo $photo->link; ?>">
        <div class="pad20">
          <img src="<?php echo $this->tag->crop($photo->file->full_filename, 200, 200); ?>">
          <div class="sp_four_area">
          <h4 class="margint10"><?php echo $photo->title; ?></h4>
          <p class="margint10"><?php echo $this->tag->cut($photo->body, 51); ?></p>
          </div>
          <a class="margint10" href="<?php echo $photo->link; ?>">READ MORE <i class="icon-long-arrow-right"></i></a>
          <div class="sp_no_link"><a href="<?php echo $photo->link; ?>"><i class="fas fa-angle-right"></i></a></div>
          
        </div>
        </a>
        
      </div>
    <?php } ?><?php } ?>
    </div>
  </div>
</div>
 
 
 
<?php echo $page->body; ?>
 
  
 
<?php foreach ($single_menus as $menu) { ?>
  <?php if ($menu->type == 'catalogs' || $menu->type == 'posts' || $menu->type == 'htmls' && $menu->parameters == 'top_page' || $menu->type == 'htmls' && $menu->parameters == 'proshoeibo_insta') { ?>
    <?php echo $this->partial('partials/' . $menu->type, array('page' => $menu)); ?>
  <?php } ?>
<?php } ?>
 
 
<div id="footer">
  <div id="footer-last">
    <div class="container footer-text">
      <div class="pull-left footer-info">
      <?php if ($user->privacy != '') { ?>
        <p><a href="<?php echo $user->privacy; ?>">Privacy Policy</a></p>
        <?php } ?>
      </div>
      <div class="copy">&copy; <?php echo date("Y"); ?> <?php echo $user->hq_name; ?></div>
      <div class="pull-right footer-social">
        <ul id="social" class="margint20 clearfix">
        <?php if ($user->facebook != '') { ?>
          <li><a href="<?php echo $user->facebook; ?>" target="_blank"><i class="fab fa-facebook-f icon-facebook"></i></a></li>
        <?php } ?>
        <?php if ($user->twitter != '') { ?>
          <li><a href="<?php echo $user->twitter; ?>" target="_blank"><i class="fab fa-twitter icon-twitter"></i></a></li>
        <?php } ?>
        <?php if ($user->google_plus != '') { ?>
          <li><a href="<?php echo $user->google_plus; ?>" target="_blank"><i class="fab fa-google-plus-g icon-google-plus"></i></a></li>
        <?php } ?>
 
        <?php if ($user->flickr != '') { ?>
          <li><a href="<?php echo $user->flickr; ?>" target="_blank"><i class="fab fa-flickr icon-flickr"></i></a></li>
        <?php } ?>
        <?php if ($user->pinterest != '') { ?>
          <li><a href="<?php echo $user->pinterest; ?>" target="_blank"><i class="fab fa-pinterest-p icon-pinterest"></i></a></li>
        <?php } ?>
        <?php if ($user->instagram != '') { ?>
          <li><a href="<?php echo $user->instagram; ?>" target="_blank"><i class="fab fa-instagram"></i></a></li>
        <?php } ?>
        <?php if ($user->linked_in != '') { ?>
          <li><a href="<?php echo $user->linked_in; ?>" target="_blank"><i class="fab fa-linkedin-in"></i></a></li>
        <?php } ?>
        <?php if ($user->vimeo != '') { ?>
          <li><a href="<?php echo $user->vimeo; ?>" target="_blank"><i class="fab fa-vimeo-v"></i></a></li>
        <?php } ?>
 
<?php if ($user->youtube != '') { ?>
          <li><a href="<?php echo $user->youtube; ?>" target="_blank"><i class="fab fa-youtube icon-youtube"></i></a></li>
          <?php } ?>
          <?php if ($user->line != '') { ?>
          <li><a href="<?php echo $user->line; ?>" target="_blank"><i class="icon iconline-line"></i></a></li>
        <?php } ?>
        </ul>
      </div>
    </div>
  </div>
  </div>
  <!-- SCROLL TO TOP -->
  <a href="#" class="scrollup"><i class="icon-angle-up"></i></a>
</div>
 
 
<!-- JS FILES -->
<script src="<?php echo $themeUrl; ?>js/vendor/jquery-1.10.1.min.js"></script>
<!-- <script src="<?php echo $themeUrl; ?>js/rs-plugin/js/jquery.themepunch.plugins.min.js"></script> -->
<script src="<?php echo $themeUrl; ?>js/rs-plugin/js/jquery.themepunch.revolution.min.js"></script>
<script src="<?php echo $themeUrl; ?>js/vendor/bootstrap.min.js"></script>
<script src="<?php echo $themeUrl; ?>js/retina-1.1.0.min.js"></script>
<script src="<?php echo $themeUrl; ?>js/hoverIntent.js"></script>
<script src="<?php echo $themeUrl; ?>js/superfish.min.js"></script>
<script src="<?php echo $themeUrl; ?>js/supersubs.js"></script>
<script src="<?php echo $themeUrl; ?>js/jquery.carouFredSel.js"></script>
<script src="<?php echo $themeUrl; ?>js/responsive-nav.min.js"></script>
<script src="<?php echo $themeUrl; ?>js/jquery.prettyPhoto.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&key=<?php echo $gmapkey; ?>"></script>
<script src="<?php echo $themeUrl; ?>js/gmaps.js"></script>
<script src="<?php echo $themeUrl; ?>js/jquery.parallax-1.1.3.js"></script>
<script src="<?php echo $themeUrl; ?>js/jquery.isotope.min.js"></script>
<!--<script src="<?php echo $themeUrl; ?>js/jquery.nicescroll.min.js"></script>-->
<script src="<?php echo $themeUrl; ?>js/jquery.trackpad-scroll-emulator.js"></script>
<script src="<?php echo $themeUrl; ?>js/excanvas.js"></script>
<script src="<?php echo $themeUrl; ?>js/jquery.easy-pie-chart.js"></script>
<script src="<?php echo $themeUrl; ?>js/main.js"></script>
<script src="<?php echo $themeUrl; ?>js/responsiveslides.min.js"></script>
<script src="<?php echo $themeUrl; ?>js/sort.js"></script>
<script src="<?php echo $themeUrl; ?>js/add.js"></script>
<script src="<?php echo $themeUrl; ?>js/footerFixed.js"></script>
 
 
 
<script>
  $(".rslides").responsiveSlides({
  auto: true,             // Boolean: Animate automatically, true or false
  speed: 800,            // Integer: Speed of the transition, in milliseconds
  timeout: 7000,          // Integer: Time between slide transitions, in milliseconds
  pager: false,           // Boolean: Show pager, true or false
  nav: false,             // Boolean: Show navigation, true or false
  random: false,          // Boolean: Randomize the order of the slides, true or false
  pause: false,           // Boolean: Pause on hover, true or false
  pauseControls: false,    // Boolean: Pause when hovering controls, true or false
  prevText: "Previous",   // String: Text for the "previous" button
  nextText: "Next",       // String: Text for the "next" button
  maxwidth: "",           // Integer: Max-width of the slideshow, in pixels
  navContainer: "",       // Selector: Where controls should be appended to, default is after the 'ul'
  manualControls: "",     // Selector: Declare custom pager navigation
  namespace: "rslides",   // String: Change the default namespace used
  before: function(){},   // Function: Before callback
  after: function(){}     // Function: After callback
});
</script>
 
 
<script type="text/javascript">
$(document).ready(function(){
  $("#send").click(function(){
    $.ajax({
      url: $("#send-form").attr('action'),
      type: "POST",
      data: $("#send-form").serialize(),
      dataType: 'json',
      beforeSend: function(xhr, settings){
        $(".alert").hide();
      },
      success: function(response){
        if (response.status == 'ok') {
          $(".alert-success").html(response.message);
          $(".alert-success").show();
        } else {
          $(".alert-danger").html(response.message.join('<br />'));
          $(".alert-danger").show();
        }
      }
    });
  });
});
</script>
 
 
<script src="<?php echo $homeUrl; ?>js/site.js"></script>
 
 
 
<?php if ($user->ga_view_id) { ?>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', '<?php echo $user->ga_tracking_id; ?>']);
  _gaq.push(['_setDomainName', '<?php echo $user->domain; ?>']);
  _gaq.push(['_trackPageview']);
 
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
<?php } ?>
 
</body>
</html>
#5Phalcon\Mvc\View\Engine\Volt->render(/var/www/themes/themes-available/corporate2/views/index/index.volt, Array(29), true)
#6Phalcon\Mvc\View->_engineRender(Array([.volt] => Object(Phalcon\Mvc\View\Engine\Volt)), index/index, true, true, null)
#7Phalcon\Mvc\View->render(index, index, Array())
#8Phalcon\Mvc\Application->handle()
<?php
 
error_reporting(E_ALL);
 
$debug = new \Phalcon\Debug();
$debug->listen();
 
//try {
    $path = dirname(__FILE__);
    $paths = explode(DIRECTORY_SEPARATOR, $path);
    $env = $paths[2];
 
    include '../site.php';
    $config = include '/var/' . $env . '/vhosts/sites-master/config.php';
    $theme_config = include '/var/' . $env . '/themes/themes-available/' . $theme . '/config/config.php';
    include '/var/' . $env . '/vhosts/sites-master/bootstrap.php';
 
    $application = new \Phalcon\Mvc\Application($di);
    $user = Users::findFirst($config->application->userkey);
    if ($user->active == 0 && strpos($_SERVER['HTTP_HOST'], "preview.") === false) {
        echo "このサイトは現在、メンテナンス中です。";
    } else {
        echo $application->handle()->getContent();
    }
 
/*
} catch (\Exception $e) {
  echo $e->getMessage();
}
*/
KeyValue
KeyValue
USERnginx
HOME/var/cache/nginx
FCGI_ROLERESPONDER
QUERY_STRING
REQUEST_METHODGET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME/index.php
REQUEST_URI/
DOCUMENT_URI/index.php
DOCUMENT_ROOT/var/www/vhosts/sites-available/hansoku-dream.com/public
SERVER_PROTOCOLHTTP/1.1
REQUEST_SCHEMEhttp
GATEWAY_INTERFACECGI/1.1
SERVER_SOFTWAREnginx/1.14.0
REMOTE_ADDR34.226.208.185
REMOTE_PORT36552
SERVER_ADDR133.242.182.28
SERVER_PORT80
SERVER_NAMEwww.hansoku-dream.com
HTTP_UACCBot/2.0 (https://commoncrawl.org/faq/)
REDIRECT_STATUS200
PATH_INFO
PATH_TRANSLATED/var/www/vhosts/sites-available/hansoku-dream.com/public
SCRIPT_FILENAME/var/www/vhosts/sites-available/hansoku-dream.com/public/index.php
HTTP_USER_AGENTCCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_HOSTwww.hansoku-dream.com
HTTP_CONNECTIONKeep-Alive
HTTP_ACCEPT_ENCODINGgzip
PHP_SELF/index.php
REQUEST_TIME_FLOAT1550706502.8343
REQUEST_TIME1550706502
#Path
0/var/www/vhosts/sites-master/index.php
1/var/www/vhosts/sites-available/hansoku-dream.com/site.php
2/var/www/vhosts/sites-master/config.php
3/var/www/themes/themes-available/corporate2/config/config.php
4/var/www/vhosts/sites-master/bootstrap.php
5/var/www/htdocs/app/models/Users.php
6/var/www/htdocs/app/models/BaseModel.php
7/var/www/vhosts/sites-available/hansoku-dream.com/routes.php
8/var/www/themes/themes-master/controllers/IndexController.php
9/var/www/themes/themes-master/controllers/BaseController.php
10/var/www/htdocs/app/models/Pages.php
11/var/www/htdocs/app/models/Photos.php
12/var/www/htdocs/app/models/Posts.php
13/var/www/htdocs/app/models/Categories.php
14/var/www/htdocs/app/models/Calendars.php
15/var/www/htdocs/app/library/Kotarosoft/Tag.php
16/var/www/htdocs/app/config/volt.php
17/var/www/vhosts/sites-available/hansoku-dream.com/cache/_var_www_themes_themes-available_corporate2_views_index_index.volt.php
18/var/www/htdocs/app/models/Files.php
19/var/www/vhosts/sites-available/hansoku-dream.com/cache/_var_www_themes_themes-available_corporate2_views_partials_catalogs.volt.php
20/var/www/htdocs/app/models/Catalogs.php
21/var/www/vhosts/sites-available/hansoku-dream.com/cache/_var_www_themes_themes-available_corporate2_views_partials_posts.volt.php
Memory
Usage2621440