1
charlesg
Most pages are blank
  • 2008/7/22 14:06

  • charlesg

  • Just popping in

  • Posts: 11

  • Since: 2006/5/12


I am in big trouble with my XOOPS install and I don't know why. I changed nothing and this morning most of the pages are blank. I was assuming some kind of php error but I can't get any error info. I went in the DB and the debug_mode to 1 and 2 and I get nothing. I tried using php.ini file which is read according to phpinfo() but I still get no PHP errors per say.

I cleaned out cache/ and checked permissions...
I cleaned out template_c and checked permissions...
I cleaned out the xoops_sessions and xoops_online tables...
I sanity checked a few of the other tables (user table mainly) and they look okay.

I can't open up user.php or admin.php, most pages I try are just plain blank. Nothing. Just plain white. I *know* there are lots of forum topics out there with blank pages but I tried everything that was recommended and still get nothing.

The only page that return something so far is user.php but I don't get the login form. I get the header with banner ads and the footer, nothing in between.

I guess it could be a problem with templates since the user.php file is really not that long and should just bring up the login form:

$xoopsOption['template_main'] = 'system_userform.html';
include 'header.php';
$xoopsTpl->assign('lang_login', _LOGIN);
$xoopsTpl->assign('lang_username', _USERNAME);
if (isset($_COOKIE[$xoopsConfig['usercookie']])) {
$xoopsTpl->assign('usercookie', $_COOKIE[$xoopsConfig['usercookie']]);
}
if (isset($_GET['xoops_redirect'])) {
$xoopsTpl->assign('redirect_page', htmlspecialchars(trim($_GET['xoops_redirect']), ENT_QUOTES));
echo "12MARKER";
}
$xoopsTpl->assign('lang_password', _PASSWORD);
$xoopsTpl->assign('lang_notregister', _US_NOTREGISTERED);
$xoopsTpl->assign('lang_lostpassword', _US_LOSTPASSWORD);
$xoopsTpl->assign('lang_noproblem', _US_NOPROBLEM);
$xoopsTpl->assign('lang_youremail', _US_YOUREMAIL);
$xoopsTpl->assign('lang_sendpassword', _US_SENDPASSWORD);
$xoopsTpl->assign('mailpasswd_token', $GLOBALS['xoopsSecurity']->createToken());
include 'footer.php';
exit();

I am totally lost here. I need help.

I am think I may try to re-install or upgrade to see if it helps but I HATE doing that on a broken site cause I'm not sure if I'm making things worst.

2
charlesg
Re: Most pages are blank
  • 2008/7/22 14:19

  • charlesg

  • Just popping in

  • Posts: 11

  • Since: 2006/5/12


I tried setting debug_mode to 3 (Smarty Debug) and I do get the smarty debug console. It talks about "db:system_userform.html" but I don't see that file in template_c. I can't find it anywhere really, is it in the DB?

I do have the system's ./modules/system/templates/system_userform.html

Here is the smarty output in case it helps:

Smarty Debug Console
included templates & config files (load time in seconds)
db:system_userform.html
/home/charlesg/public_html/scan60/themes/geometric_red/theme.html (0.00233)
assigned template variables
{$SCRIPT_NAME} /user.php
{$lang_login} User Login
{$lang_lostpassword} Lost your Password?
{$lang_noproblem} No problem. Simply enter the e-mail a...
{$lang_notregister} Not registered? Click <a href="regis...
{$lang_password} Password:
{$lang_sendpassword} Send Password
{$lang_username} Username:
{$lang_youremail} Your Email:
{$mailpasswd_token} 8fe09c3f050d007a820377ea17e79375
{$xoBlocks} Array (8)
canvas_left => Array (0)
canvas_right => Array (0)
page_topleft => Array (0)
page_topcenter => Array (0)
page_topright => Array (0)
page_bottomleft => Array (0)
page_bottomcenter => Array (0)
page_bottomright => Array (0)
{$xoTheme} xos_opal_Theme Object (16)
folderName => geometric_red
path => /home/charlesg/public_html/scan60/the...
url =>http://scan60.com/themes/geometric_red
bufferOutput => 1
canvasTemplate => theme.html
contentTemplate => db:system_userform.html
contentCacheLifetime => 0
contentCacheId => empty
content => empty
plugins => Array (1)
xos_logos_PageBuilder => xos_logos_PageBuilder Object (2)
theme => [object xos_opal_Theme]
blocks => Array (8)
canvas_left => Array (0)
canvas_right => Array (0)
page_topleft => Array (0)
page_topcenter => Array (0)
page_topright => Array (0)
page_bottomleft => Array (0)
page_bottomcenter => Array (0)
page_bottomright => Array (0)
renderCount => 0
template => [object XoopsTpl]
metas => Array (4)
http => Array (2)
Content-Script-Type => text/javascript
Content-Style-Type => text/css
meta => Array (0)
link => Array (0)
script => Array (1)
/include/xoops.js => Array (2)
type => text/javascript
src =>http://scan60.com/include/xoops.js
htmlHeadStrings => Array (0)
templateVars => Array (0)
use_extra_cache_id => 1
{$xoops_banner} <script type="text/javascript"><!--\r\n...
{$xoops_ccblocks} Array (0)
{$xoops_charset} ISO-8859-1
{$xoops_clblocks} Array (0)
{$xoops_contents} empty
{$xoops_crblocks} Array (0)
{$xoops_dirname} system
{$xoops_footer} Powered by XOOPS 2.0 © 2001-2003 <a h...
{$xoops_imageurl}http://scan60.com/themes/geometric_red/
{$xoops_isadmin}
{$xoops_isuser}
{$xoops_langcode} en
{$xoops_lblocks} Array (0)
{$xoops_meta_author} Charles Gagnon, Unixrealm
{$xoops_meta_copyright} Copyright © 2001-2006
{$xoops_meta_description} Scan60 is the only live scanner site ...
{$xoops_meta_keywords} news, headlines, firefighters, emerge...
{$xoops_meta_rating} general
{$xoops_meta_robots} index,follow
{$xoops_module_header} \n<meta http-equiv="Content-Script-Typ...
{$xoops_notification} Array (1)
show => 0
{$xoops_pagetitle} Live Scanner Feed in Westchester
{$xoops_rblocks} Array (0)
{$xoops_requesturi} /user.php
{$xoops_rootpath} /home/charlesg/public_html/scan60
{$xoops_showcblock}
{$xoops_showlblock}
{$xoops_showrblock}
{$xoops_sitename} scan60.com
{$xoops_slogan} Live Scanner Feed in Westchester
{$xoops_theme} geometric_red
{$xoops_themecss}http://scan60.com/themes/geometric_re...
{$xoops_upload_url}http://scan60.com/uploads
{$xoops_url}http://scan60.com
{$xoops_version} XOOPS 2.0.18.1
assigned config file variables (outer template scope)
{#files#} Array (0)
{#vars#} Array (0)

3
charlesg
Re: Most pages are blank
  • 2008/7/22 14:46

  • charlesg

  • Just popping in

  • Posts: 11

  • Since: 2006/5/12


And here is the smarty debug output I get if I access the main page:

Smarty Debug Console
included templates & config files (load time in seconds)
db:system_userform.html
/home/charlesg/public_html/scan60/themes/geometric_red/theme.html (0.00233)
assigned template variables
{$SCRIPT_NAME} /user.php
{$lang_login} User Login
{$lang_lostpassword} Lost your Password?
{$lang_noproblem} No problem. Simply enter the e-mail a...
{$lang_notregister} Not registered? Click <a href="regis...
{$lang_password} Password:
{$lang_sendpassword} Send Password
{$lang_username} Username:
{$lang_youremail} Your Email:
{$mailpasswd_token} 8fe09c3f050d007a820377ea17e79375
{$xoBlocks} Array (8)
canvas_left => Array (0)
canvas_right => Array (0)
page_topleft => Array (0)
page_topcenter => Array (0)
page_topright => Array (0)
page_bottomleft => Array (0)
page_bottomcenter => Array (0)
page_bottomright => Array (0)
{$xoTheme} xos_opal_Theme Object (16)
folderName => geometric_red
path => /home/charlesg/public_html/scan60/the...
url =>http://scan60.com/themes/geometric_red
bufferOutput => 1
canvasTemplate => theme.html
contentTemplate => db:system_userform.html
contentCacheLifetime => 0
contentCacheId => empty
content => empty
plugins => Array (1)
xos_logos_PageBuilder => xos_logos_PageBuilder Object (2)
theme => [object xos_opal_Theme]
blocks => Array (8)
canvas_left => Array (0)
canvas_right => Array (0)
page_topleft => Array (0)
page_topcenter => Array (0)
page_topright => Array (0)
page_bottomleft => Array (0)
page_bottomcenter => Array (0)
page_bottomright => Array (0)
renderCount => 0
template => [object XoopsTpl]
metas => Array (4)
http => Array (2)
Content-Script-Type => text/javascript
Content-Style-Type => text/css
meta => Array (0)
link => Array (0)
script => Array (1)
/include/xoops.js => Array (2)
type => text/javascript
src =>http://scan60.com/include/xoops.js
htmlHeadStrings => Array (0)
templateVars => Array (0)
use_extra_cache_id => 1
{$xoops_banner} <script type="text/javascript"><!--\r\n...
{$xoops_ccblocks} Array (0)
{$xoops_charset} ISO-8859-1
{$xoops_clblocks} Array (0)
{$xoops_contents} empty
{$xoops_crblocks} Array (0)
{$xoops_dirname} system
{$xoops_footer} Powered by XOOPS 2.0 © 2001-2003 <a h...
{$xoops_imageurl}http://scan60.com/themes/geometric_red/
{$xoops_isadmin}
{$xoops_isuser}
{$xoops_langcode} en
{$xoops_lblocks} Array (0)
{$xoops_meta_author} Charles Gagnon, Unixrealm
{$xoops_meta_copyright} Copyright © 2001-2006
{$xoops_meta_description} Scan60 is the only live scanner site ...
{$xoops_meta_keywords} news, headlines, firefighters, emerge...
{$xoops_meta_rating} general
{$xoops_meta_robots} index,follow
{$xoops_module_header} \n<meta http-equiv="Content-Script-Typ...
{$xoops_notification} Array (1)
show => 0
{$xoops_pagetitle} Live Scanner Feed in Westchester
{$xoops_rblocks} Array (0)
{$xoops_requesturi} /user.php
{$xoops_rootpath} /home/charlesg/public_html/scan60
{$xoops_showcblock}
{$xoops_showlblock}
{$xoops_showrblock}
{$xoops_sitename} scan60.com
{$xoops_slogan} Live Scanner Feed in Westchester
{$xoops_theme} geometric_red
{$xoops_themecss}http://scan60.com/themes/geometric_re...
{$xoops_upload_url}http://scan60.com/uploads
{$xoops_url}http://scan60.com
{$xoops_version} XOOPS 2.0.18.1
assigned config file variables (outer template scope)
{#files#} Array (0)
{#vars#} Array (0)

4
charlesg
Re: Most pages are blank
  • 2008/7/22 14:59

  • charlesg

  • Just popping in

  • Posts: 11

  • Since: 2006/5/12


Judgin by the message in the Smarty Debug window, could my problem be with "Sorry, you don't have the permission ..." and my template does not handle it properly. If so, how do I clear it up?

https://xoops.org/modules/newbb/viewtopic.php?viewmode=flat&type=&topic_id=1819&forum=7

5
charlesg
Re: Most pages are blank
  • 2008/7/22 15:25

  • charlesg

  • Just popping in

  • Posts: 11

  • Since: 2006/5/12


It's newbb... I have a newbb block on the main page and it was hosing up everything. Seems like the forum is hosed...

Where could I turn for help on this module?

6
iHackCode
Re: Most pages are blank

Quote:

charlesg wrote:
I tried setting debug_mode to 3 (Smarty Debug)


try enabling phpdebug. debug_mode 1
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

7
BobbyG
Re: Most pages are blank
  • 2008/7/26 1:54

  • BobbyG

  • Just popping in

  • Posts: 6

  • Since: 2008/7/25


In /include/common.php change the (0) to (E_ALL) as highlighted below. That will show you your problem even for the white pages.


// #################### Error reporting settings ##################
if ( $xoopsConfig['debug_mode'] == 1 || $xoopsConfig['debug_mode'] == 2 ) {
error_reporting(E_ALL);
$xoopsLogger->enableRendering();
$xoopsLogger->usePopup = ( $xoopsConfig['debug_mode'] == 2 );
} else {
error_reporting(E_ALL);
$xoopsLogger->activated = false;
}
$xoopsSecurity->checkBadips();

8
vezuv34
Re: Most pages are blank
  • 2008/7/30 23:58

  • vezuv34

  • Just popping in

  • Posts: 1

  • Since: 2008/7/30


Thanks for this information

9
Skitzo
Re: Most pages are blank
  • 2008/8/1 15:06

  • Skitzo

  • Just popping in

  • Posts: 25

  • Since: 2004/4/22


How will that show the problem as I am having similar issues. One site has all blank pages with the exception of when I try to access admin.php. I get a quick you can't access this area type message and back to the front (blank) page. I've reloaded all files.

Login

Who's Online

134 user(s) are online (87 user(s) are browsing Support Forums)


Members: 0


Guests: 134


more...

Donat-O-Meter

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

Latest GitHub Commits