1
Helgman
Blank page for ANONYMOUS user
  • 2005/7/27 14:27

  • Helgman

  • Just popping in

  • Posts: 8

  • Since: 2005/6/1 1


I've been looking around the forum but can't seem to find any answers to my question. Whenever I try to acces my site (upgraded to 2.2 today) I get a blank screen. When I look in, everything looks fine. Logout ... same problem.

The error message I get is:

"Call to a member function on a non-object"

in

"/templates_c/%%2B^2B5^2B5E3FCD%%theme.html.php on line 48"

The line is:

$uid = $xoopsUser->getVar('uid');

What shall I do?!

2
Helgman
Re: Blank page for ANONYMOUS user
  • 2005/7/27 16:46

  • Helgman

  • Just popping in

  • Posts: 8

  • Since: 2005/6/1 1


UPDATE:

If I comment-out the line the site comes back ... but the "Inbox" function stops working. Any ideas?

3
Herko
Re: Blank page for ANONYMOUS user
  • 2005/7/27 17:16

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


have you updated the system module in 'system admin, settings, general preferences'?

Herko

4
Helgman
Re: Blank page for ANONYMOUS user
  • 2005/7/27 18:09

  • Helgman

  • Just popping in

  • Posts: 8

  • Since: 2005/6/1 1


Hello!

Thanks for the reply!

Not sure what you mean but if it's the:

"Update module template .html files from themes/your theme/templates directory?"

... then it's put in "yes". Is there something eles I should do there?

5
Herko
Re: Blank page for ANONYMOUS user
  • 2005/7/27 18:12

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


sorry, my bad. You need to click the 'update' icon on the right of the system module ion system admin -> modules. Sorry.

Herko

6
Helgman
Re: Blank page for ANONYMOUS user
  • 2005/7/27 18:20

  • Helgman

  • Just popping in

  • Posts: 8

  • Since: 2005/6/1 1


That was a quick reply!

No ... I hadn't and now I have ... but ... still no luck (still the same error message).

7
Mithrandir
Re: Blank page for ANONYMOUS user

What does your theme.html look like?
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

8
Helgman
Re: Blank page for ANONYMOUS user
  • 2005/7/27 18:49

  • Helgman

  • Just popping in

  • Posts: 8

  • Since: 2005/6/1 1


I've been looking at that one ...

The good thing is that the page now works ... all except the "Inbox" thing (no highlight and count new messages).

My theme.html looks like this:

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<
head>
<
meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />
<
meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<
meta name="robots" content="<{$xoops_meta_robots}>" />
<
meta name="keywords" content="<{$xoops_meta_keywords}>" />
<
meta name="description" content="<{$xoops_meta_description}>" />
<
meta name="rating" content="<{$xoops_meta_rating}>" />
<
meta name="author" content="<{$xoops_meta_author}>" />
<
meta name="copyright" content="<{$xoops_meta_copyright}>" />
<
meta name="generator" content="XOOPS" />
<
title><{$xoops_sitename}> - <{$xoops_pagetitle}>title>
<
link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<
link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_url}>/xoops.css" />
<
link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_themecss}>" />

<{
$xoops_module_header}>
<
script type="text/javascript">

script>
head>
<
body>

<
table cellpadding="1%" bgcolor="#cfcfcf">
<
tr>
<
td colspan="3">td>
tr>
<
tr>
<
td width="1%">td>
<
td width="98%">

  <
table bgcolor="#eee2e2" cellpadding="0" cellspacing="0">
  <
tr>
  <
td>

    <
table cellpadding="0" cellspacing="0">
    <
tr id="header">
    <
td width="1%" valign="top"><img src="<{$xoops_imageurl}>ul.gif">td>
    <
td width="1%"><a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>logo.gif" alt="logo" />
    a>td>
    <
td width="97%">

      <
table width="100%">
      <
tr>tr>
      
      <
tr><{if $xoops_isuser}>
      <
td width="10%" align="right"><small>USER:small>td>
      <
td id="usermenu" width="15%">
      <
a href="<{$xoops_url}>/user.php">Viewa>
      td>
      <
td id="usermenu" width="15%">
      <
a href="<{$xoops_url}>/edituser.php">Edita>
      td>
      <
td id="usermenu" width="15%">
      <
a href="<{$xoops_url}>/notifications.php">Notificationsa>
      td>
      
      <
td id="usermenu" width="15%">
    <{if 
$block.new_messages 0}>
          <
class="highlight" href="http://helgman.tk/home/viewpmsg.php">
          
Inbox (<span style="color:#ff0000; font-weight: bold;">1span>)a>
          <{else}>
          <
a href="<{$xoops_url}>/viewpmsg.php">Inboxa>
          <{/if}>
      
      <
td id="usermenu" width="15%">
      <{if 
$xoops_isadmin}>
      <
a href="<{$xoops_url}>/admin.php">
      <{
$block.lang_adminmenu}>Admin.a>
      <{else}>
      <
a href="<{$xoops_url}>/modules/xoopsmembers/">Membersa>
      <{/if}>
      td>      
      <
td id="usermenu" width="15%">
      <
a href="<{$xoops_url}>/user.php?op=logout">Logouta>
      td>
      
      <{else}>
      
      <
td align="right" valign="top" colspan="7">
      <
form style="margin-top: 0px;" action="<{$xoops_url}>/user.php" method="post">
      <
small>USERNAME:small>
      <
input type="text" name="uname" size="12" value="<{$block.unamevalue}>" maxlength="25" />
      <
small><a href="<{$xoops_url}>/user.php#lost"PASSWORD:a>small>
      <
input type="password" name="pass" size="12" maxlength="32" />
      <
input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" />
      <
input type="hidden" name="op" value="login" />
      <
input type="submit" value="User Login" />
      <{
$block.sslloginlink}>
      form>
      td>
      <{/if}>
      
      tr>
      
      <{if 
$xoops_isuser}>
      <
tr>
      <
td width="10%" align="right"><small>MAIN:small>td>
      <
td id="usermenu" width="15%">
      <
class="menuMain" href="<{$xoops_url}>/"><{$block.lang_home}>Homea>td>
      <
td id="usermenu" width="15%">
      <
class="menuMain" href="<{$xoops_url}>/modules/newbb/">Foruma>td>
      <
td id="usermenu" width="15%">td>
      <
td id="usermenu" width="15%">td>
      <
td id="usermenu" width="15%">
      <
class="menuMain" href="<{$xoops_url}>/modules/xoopspartners/">Partnersa>td>
      <
td id="usermenu" width="15%">td>
      tr>
      <{else}>
      <
tr>
      <
td width="10%" align="right"><small>MAIN:small>td>
      <
td id="usermenu" width="15%">
      <
class="menuMain" href="<{$xoops_url}>/"><{$block.lang_home}>Homea>td>
      <
td id="usermenu" width="15%">
      <
class="menuMain" href="<{$xoops_url}>/modules/newbb/">Foruma>td>
      <
td id="usermenu" width="15%">td>
      <
td id="usermenu" width="15%">td>
      <
td id="usermenu" width="15%">
      <
class="menuMain" href="<{$xoops_url}>/modules/xoopspartners/">Partnersa>td>
      <
td align="right" width="15%"><small>
      <
class="menuMain" href="<{$xoops_url}>/register.php">Sign-Upa>small>td>tr>
      <{/if}>
      
      <
tr>
      <
td colspan="7" align="center" style="font-variant: small-caps;">
      <
p><strong><big>Welcome to Port Street 9Astrong>big><br>KingsportMAp>td>
      tr>
      table>

    td>
    <
td width="1%" valign="top" align="right"><img src="<{$xoops_imageurl}>ur.gif">td>
    tr>
    table>

  td>tr>
  <
tr>
  <
td>

    <
table cellspacing="0">
    <
tr>
    <
td width="1%">
    
    <{foreach 
item=block from=$xoops_lblocks}>
    <{include 
file="portstreet9a/theme_blockleft.html"}>
    <{/foreach}>
    
    td>
    <
td width="98%">
    
    <{if 
$xoops_showcblock == 1}>
      <
table cellspacing="0">
      <
tr>
      <
td id="centerCcolumn" colspan="2">
      
      <{foreach 
item=block from=$xoops_ccblocks}>
      <{include 
file="portstreet9a/theme_blockcenter_c.html"}>
      <{/foreach}>
      
      td>
      tr>
      <
tr>
      <
td id="centerLcolumn">
      
      <{foreach 
item=block from=$xoops_clblocks}>
      <{include 
file="portstreet9a/theme_blockcenter_l.html"}>
      <{/foreach}>
      
      td><td id="centerRcolumn">
      
      <{foreach 
item=block from=$xoops_crblocks}>
      <{include 
file="portstreet9a/theme_blockcenter_r.html"}>
      <{/foreach}>
      
      td>
      tr>
      table>
    <{/if}>
    
    <
div id="content">
    <{
$xoops_contents}>
    div>
    td>
    <{if 
$xoops_showrblock == 1}>
    <
td width="1%">
    
    <{foreach 
item=block from=$xoops_rblocks}>
    <{include 
file="portstreet9a/theme_blockright.html"}>
    <{/foreach}>
    
    td>
    <{/if}>
    tr>
    table>

  tr>
  <
tr><td>

    <
table cellpadding="0" cellspacing="0">
    <
tr>
    <
td width="1%" valign="bottom"><img src="<{$xoops_imageurl}>ll.gif">td>
    <
td width="98%" align="center">

      <
small>POWERED BY small>
      <
small>XOOPS (C2002 <a href="https://xoops.org/" target="_blank">
      (
THE XOOPS PROJECTsmall>a><small>&small
      <
a href="http://clk.tradedoubler.com/click?p=17615&a=1124078&g=163374" target="_blank">
      <
small>SURFTOWN WEBHOTELLsmall>a>
      <
script language="javascript">
      var 
uri 'http://impse.tradedoubler.com/imp/inv/163374/1124078?' + new String (Math.random()).substring (211);
document.write('+uri +'">');
      script>td>

    <
td width="1%" align="right" valign="bottom"><img src="<{$xoops_imageurl}>lr.gif">td>
    tr>
    table>

  td>
  tr>
  table>

td>
<
td width="1%">td>
tr>
<
tr>
<
td colspan="3">td>
tr>table>

body>
html>

(I've been changing it some over the past hour ...)

9
Helgman
Re: Blank page for ANONYMOUS user
  • 2005/7/27 19:08

  • Helgman

  • Just popping in

  • Posts: 8

  • Since: 2005/6/1 1


Okey ... I want to thank you for your time. I've got it now ... it's working fine. I found a pice of code somewhere in the forum and after puting it in the right place ... it's working.

Thanks all!

Login

Who's Online

382 user(s) are online (334 user(s) are browsing Support Forums)


Members: 0


Guests: 382


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits