Blank Pages After Upgrading »  Show posts from    to     

Icy Phoenix


Old Docs - Blank Pages After Upgrading



m740 [ Fri 25 Aug, 2006 15:25 ]
Post subject: Re: Help ! WebSite Doesn't Appear, Blank Page. (Trojan ?)
Tom wrote: [View Post]
What errors do you get with the regular code?


No errors, only blank page.


Tom [ Fri 25 Aug, 2006 15:27 ]
Post subject: Re: Help ! WebSite Doesn't Appear, Blank Page. (Trojan ?)
Weird.
Do you have a screenshot of the file permissions?

Do you use PHP5?


m740 [ Fri 25 Aug, 2006 15:53 ]
Post subject: Respuesta: Help ! WebSite Doesn't Appear, Blank Page. (Troja
SOLVED SOLVED SOLVED SOLVED

The problem is the following:

This is the code off def_themes.php generated in my Web:
Code: [Hide] [Select]
<?php
<!-- template .//includes/cache_tpls/def_themes_def.tpl start -->/***************************************************************************
* def_themes_def.php
* ------------------
* begin : 12/11/2003
* copyright : Ptirhiik
* email : admin@rpgnet-fr.com
*
* version : 1.0.0 - 12/11/2003
*
* last update : 2006-08-23 08:03:21 (GMT) by m740 *
***************************************************************************/

/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
***************************************************************************/

if ( !defined('IN_PHPBB') )
{
die('Hacking attempt');
exit;
}

//--------------------------------------------------------------------------------------------------
//
// $themes_style : templates
// --------------
//--------------------------------------------------------------------------------------------------

$themes_style = array(
1 => array('themes_id' => '1', 'template_name' => 'ca_aphrodite', 'style_name' => 'Aphrodite', 'head_stylesheet' => 'style_blue.css', 'body_background' => 'blue', 'body_bgcolor' => '', 'body_text' => '', 'body_link' => '', 'body_vlink' => '', 'body_alink' => '', 'body_hlink' => '', 'tr_color1' => '', 'tr_color2' => '', 'tr_color3' => '', 'tr_class1' => '', 'tr_class2' => '', 'tr_class3' => '', 'th_color1' => '', 'th_color2' => '', 'th_color3' => '', 'th_class1' => '', 'th_class2' => '', 'th_class3' => '', 'td_color1' => '', 'td_color2' => '', 'td_color3' => '', 'td_class1' => 'row1', 'td_class2' => 'row2', 'td_class3' => '', 'fontface1' => '', 'fontface2' => '', 'fontface3' => '', 'fontsize1' => '10', 'fontsize2' => '11', 'fontsize3' => '12', 'fontcolor1' => '', 'fontcolor2' => '18C935', 'fontcolor3' => 'E61A1A', 'span_class1' => '', 'span_class2' => '', 'span_class3' => '', 'img_size_poll' => '0', 'img_size_privmsg' => '0', 'online_color' => '008500', 'offline_color' => 'DF0000', 'hidden_color' => 'EBD400'),
2 => array('themes_id' => '2', 'template_name' => 'ca_aphrodite', 'style_name' => 'Aphrodite Black', 'head_stylesheet' => 'style_black.css', 'body_background' => 'black', 'body_bgcolor' => '', 'body_text' => '', 'body_link' => '', 'body_vlink' => '', 'body_alink' => '', 'body_hlink' => '', 'tr_color1' => '', 'tr_color2' => '', 'tr_color3' => '', 'tr_class1' => '', 'tr_class2' => '', 'tr_class3' => '', 'th_color1' => '', 'th_color2' => '', 'th_color3' => '', 'th_class1' => '', 'th_class2' => '', 'th_class3' => '', 'td_color1' => '', 'td_color2' => '', 'td_color3' => '', 'td_class1' => 'row1', 'td_class2' => 'row2', 'td_class3' => '', 'fontface1' => '', 'fontface2' => '', 'fontface3' => '', 'fontsize1' => '10', 'fontsize2' => '11', 'fontsize3' => '12', 'fontcolor1' => '', 'fontcolor2' => '', 'fontcolor3' => '', 'span_class1' => '', 'span_class2' => '', 'span_class3' => '', 'img_size_poll' => '0', 'img_size_privmsg' => '0', 'online_color' => '', 'offline_color' => '', 'hidden_color' => ''),
3 => array('themes_id' => '3', 'template_name' => 'ca_aphrodite', 'style_name' => 'Aphrodite Black Yellow', 'head_stylesheet' => 'style_black_yellow.css', 'body_background' => 'black_yellow', 'body_bgcolor' => '', 'body_text' => '', 'body_link' => '', 'body_vlink' => '', 'body_alink' => '', 'body_hlink' => '', 'tr_color1' => '', 'tr_color2' => '', 'tr_color3' => '', 'tr_class1' => '', 'tr_class2' => '', 'tr_class3' => '', 'th_color1' => '', 'th_color2' => '', 'th_color3' => '', 'th_class1' => '', 'th_class2' => '', 'th_class3' => '', 'td_color1' => '', 'td_color2' => '', 'td_color3' => '', 'td_class1' => 'row1', 'td_class2' => 'row2', 'td_class3' => '', 'fontface1' => '', 'fontface2' => '', 'fontface3' => '', 'fontsize1' => '10', 'fontsize2' => '11', 'fontsize3' => '12', 'fontcolor1' => '', 'fontcolor2' => '22CC33', 'fontcolor3' => 'EE2222', 'span_class1' => '', 'span_class2' => '', 'span_class3' => '', 'img_size_poll' => '0', 'img_size_privmsg' => '0', 'online_color' => '', 'offline_color' => '', 'hidden_color' => ''),
4 => array('themes_id' => '4', 'template_name' => 'ca_aphrodite', 'style_name' => 'Aphrodite Cyan', 'head_stylesheet' => 'style_cyan.css', 'body_background' => 'cyan', 'body_bgcolor' => '', 'body_text' => '', 'body_link' => '', 'body_vlink' => '', 'body_alink' => '', 'body_hlink' => '', 'tr_color1' => '', 'tr_color2' => '', 'tr_color3' => '', 'tr_class1' => '', 'tr_class2' => '', 'tr_class3' => '', 'th_color1' => '', 'th_color2' => '', 'th_color3' => '', 'th_class1' => '', 'th_class2' => '', 'th_class3' => '', 'td_color1' => '', 'td_color2' => '', 'td_color3' => '', 'td_class1' => 'row1', 'td_class2' => 'row2', 'td_class3' => '', 'fontface1' => '', 'fontface2' => '', 'fontface3' => '', 'fontsize1' => '10', 'fontsize2' => '11', 'fontsize3' => '12', 'fontcolor1' => '', 'fontcolor2' => '18C935', 'fontcolor3' => 'E61A1A', 'span_class1' => '', 'span_class2' => '', 'span_class3' => '', 'img_size_poll' => '0', 'img_size_privmsg' => '0', 'online_color' => '', 'offline_color' => '', 'hidden_color' => ''),
5 => array('themes_id' => '5', 'template_name' => 'ca_aphrodite', 'style_name' => 'Aphrodite Dark Green', 'head_stylesheet' => 'style_dark_green.css', 'body_background' => 'dark_green', 'body_bgcolor' => '', 'body_text' => '', 'body_link' => '', 'body_vlink' => '', 'body_alink' => '', 'body_hlink' => '', 'tr_color1' => '', 'tr_color2' => '', 'tr_color3' => '', 'tr_class1' => '', 'tr_class2' => '', 'tr_class3' => '', 'th_color1' => '', 'th_color2' => '', 'th_color3' => '', 'th_class1' => '', 'th_class2' => '', 'th_class3' => '', 'td_color1' => '', 'td_color2' => '', 'td_color3' => '', 'td_class1' => 'row1', 'td_class2' => 'row2', 'td_class3' => '', 'fontface1' => '', 'fontface2' => '', 'fontface3' => '', 'fontsize1' => '10', 'fontsize2' => '11', 'fontsize3' => '12', 'fontcolor1' => '', 'fontcolor2' => '3FB753', 'fontcolor3' => 'E87B12', 'span_class1' => '', 'span_class2' => '', 'span_class3' => '', 'img_size_poll' => '0', 'img_size_privmsg' => '0', 'online_color' => '', 'offline_color' => '', 'hidden_color' => ''),
6 => array('themes_id' => '6', 'template_name' => 'ca_aphrodite', 'style_name' => 'Aphrodite Green', 'head_stylesheet' => 'style_green.css', 'body_background' => 'green', 'body_bgcolor' => '', 'body_text' => '', 'body_link' => '', 'body_vlink' => '', 'body_alink' => '', 'body_hlink' => '', 'tr_color1' => '', 'tr_color2' => '', 'tr_color3' => '', 'tr_class1' => '', 'tr_class2' => '', 'tr_class3' => '', 'th_color1' => '', 'th_color2' => '', 'th_color3' => '', 'th_class1' => '', 'th_class2' => '', 'th_class3' => '', 'td_color1' => '', 'td_color2' => '', 'td_color3' => '', 'td_class1' => 'row1', 'td_class2' => 'row2', 'td_class3' => '', 'fontface1' => '', 'fontface2' => '', 'fontface3' => '', 'fontsize1' => '10', 'fontsize2' => '11', 'fontsize3' => '12', 'fontcolor1' => '', 'fontcolor2' => '18C935', 'fontcolor3' => 'E61A1A', 'span_class1' => '', 'span_class2' => '', 'span_class3' => '', 'img_size_poll' => '0', 'img_size_privmsg' => '0', 'online_color' => '', 'offline_color' => '', 'hidden_color' => ''),
7 => array('themes_id' => '7', 'template_name' => 'ca_aphrodite', 'style_name' => 'Aphrodite Lite Blue', 'head_stylesheet' => 'style_lite_blue.css', 'body_background' => 'lite_blue', 'body_bgcolor' => '', 'body_text' => '', 'body_link' => '', 'body_vlink' => '', 'body_alink' => '', 'body_hlink' => '', 'tr_color1' => '', 'tr_color2' => '', 'tr_color3' => '', 'tr_class1' => '', 'tr_class2' => '', 'tr_class3' => '', 'th_color1' => '', 'th_color2' => '', 'th_color3' => '', 'th_class1' => '', 'th_class2' => '', 'th_class3' => '', 'td_color1' => '', 'td_color2' => '', 'td_color3' => '', 'td_class1' => 'row1', 'td_class2' => 'row2', 'td_class3' => '', 'fontface1' => '', 'fontface2' => '', 'fontface3' => '', 'fontsize1' => '10', 'fontsize2' => '11', 'fontsize3' => '12', 'fontcolor1' => '', 'fontcolor2' => '18C935', 'fontcolor3' => 'E61A1A', 'span_class1' => '', 'span_class2' => '', 'span_class3' => '', 'img_size_poll' => '0', 'img_size_privmsg' => '0', 'online_color' => '', 'offline_color' => '', 'hidden_color' => ''),
8 => array('themes_id' => '8', 'template_name' => 'ca_aphrodite', 'style_name' => 'Aphrodite Steel Blue', 'head_stylesheet' => 'style_sblue.css', 'body_background' => 'sblue', 'body_bgcolor' => '', 'body_text' => '', 'body_link' => '', 'body_vlink' => '', 'body_alink' => '', 'body_hlink' => '', 'tr_color1' => '', 'tr_color2' => '', 'tr_color3' => '', 'tr_class1' => '', 'tr_class2' => '', 'tr_class3' => '', 'th_color1' => '', 'th_color2' => '', 'th_color3' => '', 'th_class1' => '', 'th_class2' => '', 'th_class3' => '', 'td_color1' => '', 'td_color2' => '', 'td_color3' => '', 'td_class1' => 'row1', 'td_class2' => 'row2', 'td_class3' => '', 'fontface1' => '', 'fontface2' => '', 'fontface3' => '', 'fontsize1' => '10', 'fontsize2' => '11', 'fontsize3' => '12', 'fontcolor1' => '', 'fontcolor2' => '3FB753', 'fontcolor3' => 'E87B12', 'span_class1' => '', 'span_class2' => '', 'span_class3' => '', 'img_size_poll' => '0', 'img_size_privmsg' => '0', 'online_color' => '', 'offline_color' => '', 'hidden_color' => ''),
9 => array('themes_id' => '9', 'template_name' => 'ca_aphrodite', 'style_name' => 'Aphrodite Steel Green', 'head_stylesheet' => 'style_sgreen.css', 'body_background' => 'sgreen', 'body_bgcolor' => '', 'body_text' => '', 'body_link' => '', 'body_vlink' => '', 'body_alink' => '', 'body_hlink' => '', 'tr_color1' => '', 'tr_color2' => '', 'tr_color3' => '', 'tr_class1' => '', 'tr_class2' => '', 'tr_class3' => '', 'th_color1' => '', 'th_color2' => '', 'th_color3' => '', 'th_class1' => '', 'th_class2' => '', 'th_class3' => '', 'td_color1' => '', 'td_color2' => '', 'td_color3' => '', 'td_class1' => 'row1', 'td_class2' => 'row2', 'td_class3' => '', 'fontface1' => '', 'fontface2' => '', 'fontface3' => '', 'fontsize1' => '10', 'fontsize2' => '11', 'fontsize3' => '12', 'fontcolor1' => '', 'fontcolor2' => '3FB753', 'fontcolor3' => 'E87B12', 'span_class1' => '', 'span_class2' => '', 'span_class3' => '', 'img_size_poll' => '0', 'img_size_privmsg' => '0', 'online_color' => '', 'offline_color' => '', 'hidden_color' => ''),
10 => array('themes_id' => '10', 'template_name' => 'ca_aphrodite', 'style_name' => 'Aphrodite Violet', 'head_stylesheet' => 'style_violet.css', 'body_background' => 'violet', 'body_bgcolor' => '', 'body_text' => '', 'body_link' => '', 'body_vlink' => '', 'body_alink' => '', 'body_hlink' => '', 'tr_color1' => '', 'tr_color2' => '', 'tr_color3' => '', 'tr_class1' => '', 'tr_class2' => '', 'tr_class3' => '', 'th_color1' => '', 'th_color2' => '', 'th_color3' => '', 'th_class1' => '', 'th_class2' => '', 'th_class3' => '', 'td_color1' => '', 'td_color2' => '', 'td_color3' => '', 'td_class1' => 'row1', 'td_class2' => 'row2', 'td_class3' => '', 'fontface1' => '', 'fontface2' => '', 'fontface3' => '', 'fontsize1' => '10', 'fontsize2' => '11', 'fontsize3' => '12', 'fontcolor1' => '', 'fontcolor2' => '3FB753', 'fontcolor3' => 'E87B12', 'span_class1' => '', 'span_class2' => '', 'span_class3' => '', 'img_size_poll' => '0', 'img_size_privmsg' => '0', 'online_color' => '', 'offline_color' => '', 'hidden_color' => ''),
);<!-- template .//includes/cache_tpls/def_themes_def.tpl end -->
?>


The last line is a error line: <!-- template .//includes/cache_tpls/def_themes_def.tpl end -->

This problem is the same that this:

RSS and GOOGLE sitemap
http://www.phpbb-es.com/foro/viewtopic.php?p=31778#31778

I just apply this solution and the web, rss and sitemap are correct.


OPEN includes/template.PHP
FIND
Code: [Hide] [Select]

/**
* includes file or executes code
*/
function execute($filename, $code, $handle)
{
global $lang, $theme, $board_config;
$template = $theme['template_name'];
global $$template;
$theme_info = &$$template;
if($board_config['xs_add_comments'] && $handle)
{
echo '<!-- template ', $this->files[$handle], ' start -->';
}
if($filename)
{
include($filename);
}
else
{
eval($code);
}
if($board_config['xs_add_comments'] && $handle)
{
echo '<!-- template ', $this->files[$handle], ' end -->';
}
return true;
}

REPLACE WITH
Code: [Hide] [Select]

/**
* includes file or executes code
*/
function execute($filename, $code, $handle)
{
global $lang, $theme, $board_config;
$template = $theme['template_name'];
global $$template;
$theme_info = &$$template;
if($board_config['xs_add_comments'] && $handle)
{
#echo '<!-- template ', $this->files[$handle], ' start -->';
}
if($filename)
{
include($filename);
}
else
{
eval($code);
}
if($board_config['xs_add_comments'] && $handle)
{
#echo '<!-- template ', $this->files[$handle], ' end -->';
}
return true;
}



And replace includes/def_themes.php by the original.


Lucky [ Fri 25 Aug, 2006 16:09 ]
Post subject: Re: Help ! WebSite Doesn't Appear, Blank Page. (Trojan ?)
M740, have you Build 058 installed ? or Build 049 ?

I have Build 049 and I have resolved the blank page problem modifing the functions_categories_hierachy.php and coping def_tree def_themes and def_words original files in the server.

Now the problem is that I have discovered all subforums and subsubforums in a new area "forum restore", all under one of these subforum ... without a sense ... and every time that I try to move these subforums from "forum restored" to under the correct forum and I execute DB Maintance ".... post and topics" I receive error message about category wrong !


m740 [ Fri 25 Aug, 2006 16:13 ]
Post subject: Re: Help ! WebSite Doesn't Appear, Blank Page. (Trojan ?)
Lucky wrote: [View Post]
M740, have you Build 058 installed ? or Build 049 ?

I have Build 049 and I have resolved the blank page problem modifing the functions_categories_hierachy.php and coping def_tree def_themes and def_words original files in the server.

Now the problem is that I have discovered all subforums and subsubforums in a new area "forum restore", all under one of these subforum ... without a sense ... and every time that I try to move these subforums from "forum restored" to under the correct forum and I execute DB Maintance ".... post and topics" I receive error message about category wrong !


058.


Tom [ Sat 26 Aug, 2006 02:43 ]
Post subject: Re: Help ! WebSite Doesn't Appear, Blank Page. (Trojan ?)
Interesting... this might be another bug.


Lucky [ Sat 26 Aug, 2006 13:02 ]
Post subject: Re: Help ! WebSite Doesn't Appear, Blank Page. (Trojan ?)
In my case, I'm sure that what has "blocked" my website viewing a blank page was the file def_tree.php, in fact, I'm able to activate the web site only uploading the original def_tree.php ! without the needing to modify functions_categories_hierarchy.PHP and uploading def_words.php and def_theme.php.

The cause of my problem was been the function "verify posts and topics" in Maintenance DB. It has viewed a not-corrispondece with the category (not valid) for a lot of my forums putting all of them in "forums restored" and after the sending of a message or something like this ... the website has went in blank page !!! Leave at the moment the trojan message of my user when he has linked on internal pages of my web site ... The Problem appear also in a Build 058 !!!

A practical example :

1) Click HERE

2) You can see a Build 058. Enter with the username prova and the password prova

3) There is "Test Category 1" with inside "Test Forum 1" and "Test Forum 2". Try to see the parameters about these two forums, they are normal.

4) Now try to go in ACP / Forum / Sincronization / Test Forum 2 and create a subforum inside

5) Now go to ACP / Maintenance DB / Maintenance DB / Verify tables post and topics and execute it. This verification can generate a message about a problem of category in the subforum that you have generated (?) and have put it inside a new category with the name "Forums Restored".

6) Going to ACP / Forum / Management and after also in ACP / Forum / Sincronization seems that nothing is chaged and the "Forums Restored" doesn't wxist !!! It's a ghost ?

7) But when you go to modify the name of subforum ... it disappears from his forum "Test Forum 2" and go inside the "Forums Restored" that has appeared.

8 ) Now delete subforum and category "Forums Restored" and try to repeat the before steps controlling the tables phpbb_forum and phpbb_category with the phpbbsqladmin at every step !

Seems to be a strange consideration of value cat_id in table phpbb_forum by the maintenance db function ... or not ?


Lucky [ Sat 26 Aug, 2006 17:19 ]
Post subject: Re: Help ! WebSite Doesn't Appear, Blank Page. (Bug ?)
I have seen in Haks & Mods List of Build 058 there is Category Hierarchy 2.0.4 but in THIS Link I see a new version 2.1.6 ... could be a bug of this MOD that must be updated ? Or is Hacks & Mods List to be not updated ?


Mighty Gorgon [ Sun 27 Aug, 2006 22:33 ]
Post subject: Re: Help ! WebSite Doesn't Appear, Blank Page. (Bug ?)
It's not a bug...

The problem is one or a combination of the following:
  • Wrong CHMOD
  • Overwritten DEF_ files with empty ones
  • Corrupted THEMES table
  • Corrupted Cache


Usually these problems may be solved by:
  • Replacing DEF_ files with fresh ones
  • Applying correct CHMOD permissions
  • Synchronizing FORUMS
  • Uninstalling all styles and install them from scratch
  • Empty the CACHE


There is only one problem... if is the DEF_AUTH being corrupted... then the only solution is to reset the AUTH table. This can happen when upgrading from some old phpBB version with corrupted AUTH table or with some incorrectly deleted users.

This is an Important discussion... I'll move it to Docs section.

Thank you all.


m740 [ Sun 27 Aug, 2006 22:48 ]
Post subject: Respuesta: Blank Pages After Upgrading
Thanks, MG.

In my case I think that the problem is a old files or data in DB of Minerva.


Mighty Gorgon [ Mon 28 Aug, 2006 12:29 ]
Post subject: Re: Blank Pages After Upgrading
m740 wrote: [View Post]
In my case I think that the problem is a old files or data in DB of Minerva.

This demonstrates this one:

Mighty Gorgon wrote: [View Post]
This can happen when upgrading from some old phpBB version with corrupted AUTH table or with some incorrectly deleted users.




Glad you solved anyway...




Powered by Icy Phoenix