View Full Version : Blank after upgrade (FIXED)
kelpie47
13th of December 2006 (Wed), 18:04
Hi
Just upgraded to 202 and now just get a blank page when going to either admin page or front page. i thought I'd followed all instructions correctly, any ideas please?
Pekka
13th of December 2006 (Wed), 18:27
Maybe you need to upload all .php files in ASCII format. Make sure you've uploaded ALL .php files.
Normally, if you get a blank page:
- if it is in public area: page template path is wrong or template missing
- if it is in both public and admin area:
missing php file(s) - most likely cause
php files corrupt
there are php warning errors (reporting is silent by default).
kelpie47
14th of December 2006 (Thu), 10:48
Hi
My ftp client is set to upload in ASCII. I uploaded all files again but no change.
Can you tell me how to enable error reporting so I can try to track this down? Or do you have any other suggestions?
Thanks.
Pekka
14th of December 2006 (Thu), 14:06
Here's one test:
save this as test.php and put it in your gallery root.
<?php
error_reporting(255);
$toroot = "./";
$currentpage = "custom_a";
$this_is_index = "1";
include ("./basecode/SCRIPT_slashwork.php");
print "<br>./basecode/SCRIPT_slashwork.php OK";
include ("./basecode/SECURITY_datacleaner.php");
print "<br>./basecode/SECURITY_datacleaner.php OK";
include ("./basecode/SETUP_settings.php");
print "<br>./basecode/SETUP_settings.php OK";
include ("./basecode/SCRIPT_connect.php");
print "<br>./basecode/SCRIPT_connect.php OK";
include ("./basecode/SCRIPT_uncookied.php");
print "<br>./basecode/SCRIPT_uncookied.php OK";
$uncookied_base_id = "";
if (isset($_POST['u'])) {
$u = ee_datacleaner($_POST['u']);
ee_uncookied_update_log ($u);
if ($u=="") $u = 1;
ee_uncookied_extract ($u); // now we have all post variables back
}
if (isset($_GET['u'])) {
$u = ee_datacleaner($_GET['u']);
ee_uncookied_update_log ($u);
$u = str_replace($uncookied_foochar,"",$u);
$vartalo = explode($uncookied_splitter,$u);
$u = $vartalo[0];
if ($u=="") $u = 1;
if (isset($vartalo[1])) {
$offset = $vartalo[1];
}
if (ee_uncookied_get_id ($u)) {
ee_uncookied_extract ($u); // now we have all get variables back
} else {
$offset_finder = "1";
}
}
print "<br>get U OK";
include ("./basecode/SCRIPT_language.php");
print "<br>./basecode/SCRIPT_language.php OK";
unset($exhibition);
if (isset ($_GET['exhibition'])) {
$exhibition = ee_datacleaner($_GET['exhibition']);
}
include ("./languages/" . $ee_lang . "/global.php");
print "<br>./languages/" . $ee_lang . "/global.php OK";
include ("./languages/" . $ee_lang . "/custom.php");
print "<br>./languages/" . $ee_lang . "/custom.php OK";
require ("./basecode/SECURITY_check_user_authorization.php");
print "<br>./basecode/SECURITY_check_user_authorization.php OK";
require ("./basecode/SECURITY_check_exhibition_validity.php");
print "<br>./basecode/SECURITY_check_exhibition_validity.php OK";
include ("./basecode/SCRIPT_common_functions.php");
print "<br>./basecode/SCRIPT_common_functions.php OK";
include ("./basecode/SCRIPT_fetchsettings.php");
print "<br>./basecode/SCRIPT_fetchsettings.php OK";
include ("./basecode/SCRIPT_get_styledata.php");
print "<br>./basecode/SCRIPT_get_styledata.php OK";
include ("./basecode/SCRIPT_indexfunctions.php");
print "<br>./basecode/SCRIPT_indexfunctions.php OK";
include ("./basecode/SCRIPT_get_structure.php");
print "<br>./basecode/SCRIPT_get_structure.php OK";
$uncookied = array(
"sortby_off" => @$sortby_off,
"sort_row" => @$sort_row,
"order" => @$order,
"search_row" => @$search_row,
"keyword" => @$keyword,
"category" => @$category,
"select_output" => @$select_output,
"size" => @$size,
"exhibition" => @$exhibition,
"perpage" => @$perpage,
"revealforms" => @$revealforms,
"viewall" => @$viewall,
"hidedetail" => @$hidedetail,
"ee_lang" => @$ee_lang
);
$temp = $uncookied;
$uncookied_base_id = ee_uncookied_make ($temp);
include ("./basecode/SCRIPT_common_items.php");
print "<br>./basecode/SCRIPT_common_items.php OK";
print "<br>DONE";
mysql_close ();
?>
Open the file with browser and you should see output
./basecode/SCRIPT_slashwork.php OK
./basecode/SECURITY_datacleaner.php OK
./basecode/SETUP_settings.php OK
./basecode/SCRIPT_connect.php OK
./basecode/SCRIPT_uncookied.php OK
get U OK
./basecode/SCRIPT_language.php OK
./languages/eng/global.php OK
./languages/eng/custom.php OK
./basecode/SECURITY_check_user_authorization.php OK
./basecode/SECURITY_check_exhibition_validity.php OK
./basecode/SCRIPT_common_functions.php OK
./basecode/SCRIPT_fetchsettings.php OK
./basecode/SCRIPT_get_styledata.php OK
./basecode/SCRIPT_indexfunctions.php OK
./basecode/SCRIPT_get_structure.php OK
./basecode/SCRIPT_common_items.php OK
DONE
Do you?
kelpie47
15th of December 2006 (Fri), 03:20
Hi
Thanks for that. I get
./basecode/SCRIPT_slashwork.php OK
./basecode/SECURITY_datacleaner.php OK
That's all
Pekka
15th of December 2006 (Fri), 05:14
OK, then the first assumption is that your basecode/SETUP_settings.php is not valid PHP. Maybe some line lacks ; in the end, perhaps quotes do not match.
Compare it to basecode/SETUP_settings_DEFAULT.php. If that does not show anything, edit line 2
error_reporting(0);
to
error_reporting(255);
and browse to gallery/basecode/SETUP_settings.php, you will see on which line the error is.
kelpie47
15th of December 2006 (Fri), 12:06
Ok, i get
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/sites/danu.co.uk/public_html/kelpiephotos/basecode/SETUP_settings.php on line 379
Which is the first line of the additional code I put in
379 $s_index_exhibition_max_thumbsize_width = "130";
Pekka
15th of December 2006 (Fri), 14:59
The real error is on the preceding line, look for extra " there.
If you can't fix it, you can PM me the contents of your settings and I'll check it for you. Other way is to fill basecode/SETUP_settings_DEFAULT.php with you data manually and change it to SETUP_settings.php when done.
Pekka
16th of December 2006 (Sat), 10:23
This was fixed by removing some extra characters which got there possibly from copy/paste process (from 2.02 release post). It's always a good idea to use NOTEPAD or some other editor which does not interpret e.g. ANSI codes.
Wrong content:
$s_index_exhibition_max_thumbsize_widthÊ=Ê"130";
$s_index_exhibition_max_thumbsize_heightÊ=Ê"130";
$s_index_exhibition_max_microthumbsize_widthÊ=Ê"45";Ê
$s_index_exhibition_max_microthumbsize_heightÊ=Ê"45";Ê
$s_index_group_max_thumbsize_widthÊ=Ê"130";
$s_index_group_max_thumbsize_heightÊ=Ê"130";
$s_index_group_max_microthumbsize_widthÊ=Ê"45";Ê
$s_index_group_max_microthumbsize_heightÊ=Ê"45";Ê
Correct:
$s_index_exhibition_max_thumbsize_width = "130";
$s_index_exhibition_max_thumbsize_height = "130";
$s_index_exhibition_max_microthumbsize_width = "45";
$s_index_exhibition_max_microthumbsize_height = "45";
$s_index_group_max_thumbsize_width = "130";
$s_index_group_max_thumbsize_height = "130";
$s_index_group_max_microthumbsize_width = "45";
$s_index_group_max_microthumbsize_height = "45";
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.