ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Error

April 30, 2011 12:18pm

Subscribe [3]
  • #1 / Apr 30, 2011 12:18pm

    mambotech

    45 posts

    HI,

    I am getting this error and I don’t know why

    [Sat Apr 30 17:13:09 2011] [error] [client 83.37.133.51] PHP Fatal error:  Call to a member function user() on a non-object in /datastore/ee/system/core/core.functions.php(634) : eval()‘d code on line 6

    The only thing that changed was the domain name!

    Thanks

  • #2 / May 02, 2011 4:29pm

    Lisa Wess

    20502 posts

    Hey, mambotech -

    What action are you taking when receiving this error? Are you viewing your site on the front end? 

    Generally, errors in core.functions.php mean that there is a PHP error in your template, at the line number listed (ie: line 6 in the visited template).

    Can you copy and paste that code so we can see it?

    Thank you!

  • #3 / May 02, 2011 4:46pm

    mambotech

    45 posts

    Hi Lisa,

    I am viewing from the frontend when I get the WSOF.  I cannot find the template you are describing?

    Thank

  • #4 / May 03, 2011 2:09am

    John Henry Donovan

    12339 posts

    mambotech,

    The only thing that changed was the domain name!

    Can you explain this a bit more please? Were you moving from one domain to another? Moving servers also?
    Where did you update the domain name?

    Was the error on the front-end of your website or the control panel?
    What did the URL look like for the page the error appeared or was it for all pages of the site?

    I cannot find the template you are describing?

    Do you have PHP in any of your templates?

    Do you have any add-ons installed?

    What version and build of EE are you using?

  • #5 / May 04, 2011 9:44am

    mambotech

    45 posts

    Hi John,

    1.This was just a domain name change.  No migration from to another server.

    2 The error appears in the log file not in the frontend.  The frontend is just a WSOD?  CP is working fine.

    3. Url is http://www.blinkspain.com

    4. The template visited as described by you colleague doesn’t exist

    5. I have a couple of extensions wiywam fieldframe and structure but these were all working before I changed the domain name in the CP

    6. Version 1.6.8 of EE I tried to on my dev site but it didn’t work.

    Thanks

    I really want to get my site backup but struggling with this error.  If I restore to the original it all works fine until I make the domain change.

  • #6 / May 04, 2011 4:42pm

    Brandon Jones

    5500 posts

    mambotech,

    The template that is shown for your homepage is the “index” template of whichever template group is set as default. Can you please disable extensions and see if there’s any change?

  • #7 / May 04, 2011 5:14pm

    mambotech

    45 posts

    Hi Brandon,

    I disable every ext 1 by 1 and it has not made any difference :(

    Thanks Mark

  • #8 / May 04, 2011 6:59pm

    Brandon Jones

    5500 posts

    What’s on line 6 of your default template group’s “index” template?

  • #9 / May 05, 2011 2:55am

    mambotech

    45 posts

    Here is the template

    {embed="default/header"}
    {embed="_components/_header"}
    {embed="default/navigation"}

    </div>
    <div class=“colmask rightmenu”>
     
          <div class=“colleft”>
            <div class=“col1wrap”>
              <div class=“col1”>
                  <!—Column 1 start—>

    {if segment_1 != "articles"}
    {embed="_components/_index"}
    {if:else}
    {embed="_components/_category"}
    {/if}

                    {embed="default/below"}
                  <!—Column 1 end—>

              </div> <!—col1 end—>
            </div> <!—col1wrap end—>
    {embed="default/right"}
          </div>

  • #10 / May 05, 2011 6:45pm

    Brandon Jones

    5500 posts

    Try temporarily removing the 3 embedded templates from the top of that template. If the error then goes away, there’s a syntax error in one of those and you should be able to narrow it down further. Keep us posted, please!

  • #11 / May 05, 2011 7:18pm

    mambotech

    45 posts

    Hi Brandon,

    By removing the embedded template the page loaded.  I have checked those templates and cannot see why they would cause this issue.  I have pasted them below.

    1.header

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
    <html >
    <head>
    <meta http-equiv=“Content-Type” content=“application/xhtml+xml; charset=utf-8” />
    <meta name=“google-site-verification” content=“i8c6lWA8zikRNmPA5i0-iDE5CbJyKNX5VHkvlpWp1Nc” />
    {if segment_1 == ""}{exp:lg_better_meta_pl:template title="Blinkspain - Your online guide to Spain" hide_site_title = "y" }{/if}
    {if segment_1 == "articles"}{exp:weblog:info weblog="{segment_2}”}{exp:lg_better_meta_pl:template title="{blog_title}” description=”{blog_description}”}{/exp:weblog:info}{/if}
    {if segment_1 == "article"}
    {exp:weblog:entries limit="1" status="open|Featured" dynamic="on" disable="categories|member_data|trackbacks|pagination"}
    {exp:lg_better_meta_pl:template url_title="{segment_2}” description=”{teaser}”}
    {/exp:weblog:entries}
    {/if}


    {!-- URL shortener --}
    {if segment_1 == "article"}
    {exp:shortener:meta template="s" url_title="{segment_2}”}
    {/if}

    <link rel=“stylesheet” type=“text/css” href=“http://www.blinkspain.com/index.php?css=default/styles.v.1265708063” media=“all” />

     
      <!—[if lt IE 7]>
      <style media=“screen” type=“text/css”>
      .col1 { width:53.8em; margin:0 5.4em 0 22.71em !important; }
      .shadow, #subheader { height: 1%; overflow: visible; }
      form { width:21.7em; overflow:visible; }
      </style>
      <![endif]—>
     
      <!—[if IE]>
      <style media=“screen” type=“text/css”>
      #submit { margin-bottom:-1px; }
      .shadow { filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=2,OffY=2,Color=#FFDDDDDD,Positive='true'); -ms-filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=2,OffY=2,Color=#FFDDDDDD,Positive='true')"; }
      </style>
      <![endif]—>
    [removed][removed]
    [removed][removed]

    </head>
    <body>

    2._index

    <div id=“header”>
    <? 
    GLOBAL $auth;
    GLOBAL $session;
    GLOBAL $controller;
    $usr = $auth->user();
    if(!empty($usr)): ?>
     
          <? if($usr[‘User’][‘facebook_id’] > 0): ?>
            Welcome, <fb:name uid=”<?= $usr[‘User’][‘facebook_id’]; ?>” useyou=“false”></fb:name>. You are signed in with your Facebook account. |
            [‘first_name’]; ?> <?= $usr[‘User’][‘last_name’]; ?>. You are signed in. |_         <a class=“logout”]Sign out
          <? endif; ?>
     

    <? else: ?>
      Welcome back |
              <!—<fb:login-button size=“small” v=“2”><fb:intl>Sign In</fb:intl></fb:login-button> with Facebook |—>
          Sign In |
          Sign Up
     

    <? endif; ?>

    <form id=“sbox” action=“http://www.blinkspain.com/search/”>
      <fieldset id=“gsearchform” class=“fullround” >
          <input id=“searchword” type=“text” name=“q” value=”” style=” -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;”/>
          <input id=“submit” type=“submit” style=“border:0px solid gray !important;” value=“Search” name=“submit_button”/>
          <input type=“hidden” value=“006553174679668843524:zeagmpaw77m” name=“cx”/>
          <input type=“hidden” value=“FORID:11;” name=“cof”/>
          <input type=“hidden” value=“UTF-8” name=“ie”/>
      </fieldset>
    </form>

      blinkspain.com - Your online guide for Spain

    3.navigation

    {exp:structure:nav_main exclude="28|29|157"}
    <a id=“support"url=’+escape(document.location.href)+‘referrer=’+escape(document.referrer), ‘>/webim/button.php?i=costaeye&lang=en</a>

  • #12 / May 05, 2011 7:21pm

    mambotech

    45 posts

    OK ... it looks like the components/_header is causing the problem 😊  Now I need to find why

  • #13 / May 05, 2011 7:25pm

    Brandon Jones

    5500 posts

    Hi mambotech,

    Line 6 of your header template refers to an LG Better Meta add-on. I suspect that’s the culprit, though I don’t know exactly why. You might try making sure you’re running the latest version of it, and contact them for advice if that still doesn’t help.

  • #14 / May 05, 2011 7:32pm

    mambotech

    45 posts

    Hi Brandon,

    the header template is working ... it’s the components/_header that breaks the site and I don’t know why?

    <div id=“header”>
    <?
    GLOBAL $auth;
    GLOBAL $session;
    GLOBAL $controller;
    $usr = $auth->user();
    if(!empty($usr)): ?>
     
        <? if($usr[‘User’][‘facebook_id’] > 0): ?>
          Welcome, <fb:name uid=”<?= $usr[‘User’][‘facebook_id’]; ?>” useyou=“false”></fb:name>. You are signed in with your Facebook account. |
          [url=“http://www.blinkspain.com.com/directory/users/logout/“location = ‘http://www.blinkspain.com/directory/users/logout/’>Sign out</a>
        <? else: ?>
          Welcome, <?= $usr[‘User’][‘first_name’]; ?> <?= $usr[‘User’][‘last_name’]; ?>. You are signed in. |
          <a >
    <? else: ?>
      <span class=“loginfo”>Welcome back |
          <!—<fb:login-button size=“small” v=“2”><fb:intl>Sign In</fb:intl></fb:login-button> with Facebook |—>
        Sign In |
        Sign Up
     

    <? endif; ?>

    <form id=“sbox” action=“http://www.blinkspain.com/search/”>
      <fieldset id=“gsearchform” class=“fullround” >
        <input id=“searchword” type=“text” name=“q” value=”” style=” -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;”/>
        <input id=“submit” type=“submit” style=“border:0px solid gray !important;” value=“Search” name=“submit_button”/>
        <input type=“hidden” value=“006553174679668843524:zeagmpaw77m” name=“cx”/>
        <input type=“hidden” value=“FORID:11;” name=“cof”/>
        <input type=“hidden” value=“UTF-8” name=“ie”/>
      </fieldset>
    </form>

      blinkspain.com - Your online guide for Spain

  • #15 / May 06, 2011 8:04am

    John Henry Donovan

    12339 posts

    mambotech,

    First thing I would do would be to try the add-on deeploy helper to check if you have changed all instances of your domain name. Piece of mind really.

    Make sure to clear your cache by ftping into system/cache/ and deleting all the folders except index.html
    Also clear your cache through the control panel

    If that does not work then take that template and try building it up from scratch to see what line if the culprit

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases