Support the ongoing development of Laravel.io →
posted 10 years ago
Blade
Last updated 2 years ago.
0

Does the view have the .blade.php extension? Sometimes that is an easy oversight.

Last updated 2 years ago.
0

Yes, all pages have the .blade.php extension.

.blade.php

Last updated 2 years ago.
0

Can you post your masters.blade.php file?

The code below is the beginning of the broken page. Your nav is there and some actual php is being output.

<script>
            googletag.cmd.push(function() {
            googletag.pubads().setTargeting("sport", "<?php global $sport, $state; echo $sport; ?>");
            googletag.pubads().setTargeting("state", "<?php echo $state; ?>");
            googletag.defineSlot("/8727672/SportPages_ATF_Top_728x90", [728, 90], "div-gpt-ad-1374590044213-0").addService(googletag.pubads());
            googletag.defineSlot("/8727672/SportPages_Sidebar_160x600", [160, 600], "div-gpt-ad-1374591090668-0").addService(googletag.pubads());
            googletag.defineSlot("/8727672/SportPages_Bottom_728x90", [728, 90], "div-gpt-ad-1374604431483-0").addService(googletag.pubads());
            googletag.pubads().enableSingleRequest();
            googletag.enableServices();
            });
            </script>
Last updated 2 years ago.
0

master.blade.php

<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="keywords" content="Preps, RPI, RPRPI, High School Sports, sports, high school, Prep, football, basketball, baseball, boys, girls, high school RPI, Ratings Percentage Index">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>{{ $title or '' }} RockyPrep :: Home of the RPRPI</title>
    <meta name="generator" content="Laravel 4.1" />
    <meta property="fb:app_id" content="463246203694175" />
    
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://feeds.feedburner.com/RockyPrep" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="http://feeds.feedburner.com/RockyPrep" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="http://feeds.feedburner.com/RockyPrep" />
    <link rel="shortcut icon" href="/favicon.ico?v=2" type="image/x-icon" />

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
    
    <script>
    var googletag = googletag || {};
    googletag.cmd = googletag.cmd || [];
    (function() {
    var gads = document.createElement('script');
    gads.async = true;
    var useSSL = 'https:' == document.location.protocol;
    gads.src = (useSSL ? 'https:' : 'http:') + 
    '//www.googletagservices.com/tag/js/gpt.js';
    var node = document.getElementsByTagName('script')[0];
    node.parentNode.insertBefore(gads, node);
    })();
    </script>
    
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
    <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
    {{ $header_include or '' }}
    
    <script>
        googletag.cmd.push(function() {
        googletag.defineSlot('/8727672/WordPress__2_728x90', [728, 90], 'div-gpt-ad-1374606284792-0').addService(googletag.pubads());
        googletag.defineSlot('/8727672/WordPress__3_728x90', [728, 90], 'div-gpt-ad-1374606284792-1').addService(googletag.pubads());
        googletag.defineSlot('/8727672/WordPress__4_728x90', [728, 90], 'div-gpt-ad-1374606284792-2').addService(googletag.pubads());
        googletag.defineSlot('/8727672/WordPress__ATF_Top_728x90', [728, 90], 'div-gpt-ad-1374606284792-3').addService(googletag.pubads());
        googletag.defineSlot('/8727672/WordPress_Bottom_728x90', [728, 90], 'div-gpt-ad-1374606538724-0').addService(googletag.pubads());
        googletag.pubads().enableSingleRequest();
        googletag.enableServices();
        });
    </script>
    
    <script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    ga('create', 'UA-8235750-1');
    ga('send', 'pageview');
    </script>
</head>
<body>
<div id="wrap">
        @include('includes.menu')
    
    <div id="header" class="col-xs-12">
        <div class="jumbotron">
    	<h1><a href="/">RockyPrep</a> <small>Finding the Peak</small></h1>
    	</div>
    </div>

    <div id="sidebar" class="col-xs-2">
        @yield('sidebar')
    </div>
    
    <div id="content" class="col-xs-10">
        @yield('content')
    </div>
</div>

    <div id="footer" class="col-xs-12">
      <div class="container">
        @include('includes.footer')
      </div>
    </div>
    {{ Asset::container('footer')->scripts() }}
    {{ Asset::container('footer')->styles() }}
    <link media="all" type="text/css" rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/blitzer/jquery-ui.css">
    <link media="all" type="text/css" rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
    <link media="all" type="text/css" rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap-theme.min.css">
    <link media="all" type="text/css" rel="stylesheet" href="/css/style.css">
</html>
Last updated 2 years ago.
0

The start of the team.blade.php

@extends('layouts.master')

@section('content')
{{ Adblock::sport() }}

The Adblock:sport() is what is injecting the code that has the unprocessed PHP in it. I hadn't noticed that before. But again, it works fine on all the other views.

Last updated 2 years ago.
0

What is the difference between $header_include in the working page and non working page?

Last updated 2 years ago.
0

There is no $header_include on the non-working page. I thought having {{ $header_include or '' }} (specifically the or '') would take care of that.

This page http://preprpi.com/football/colorado/team/2013 also has no $header_include and works fine.

Last updated 2 years ago.
0

Ok, here we go.

Call to a member function getAuthIdentifier() on a non-object

in /home/rpi/app/storage/views/0e4f827991d3ddb3f6be5ac8923fb127 on line 201

Are you using the regular User model?

public function getAuthIdentifier()
	{
		return $this->getKey();
	}

You can also do

@if ( Auth::check() )
// your uservoice stuff
@endif
Last updated 2 years ago.
0

I'm using Orchestra so it's Auth::guest(), but that worked beautifully.

How did you catch that?

Last updated 2 years ago.
0

In the view source of the broken page you can see the output of the Whoops error screen. I missed it the first time around.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

MECU mecu Joined 12 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.