View Full Version : Help : No Image on main page
navdeep
09-13-2005, 09:50 AM
Hi ,
I am facing 3 problems. I am unable to figure out , how to solve them.
I am installed pixelpost on my local machine ( win2k ).
I am using PHP 4.4, light/dark template
1) No image is displayed on main page although there are thumbnails in browse
2) I cannot login to admin area. I login only when i change the value of login = false in admin/index.php. And then I revert it back to true.
3) I get a fatal error in addons/advanced_stat.php : Undefined function sqlarray()
Pls help..
Thanks for all your time.
Navdeep
3) Try to turn off that addon (del it for a while from addons dir) and after that maybe 1) 2) will be solved :)
2) What did you change to false/true?? Which value?? Did you try to use Forgot password future??
navdeep
09-13-2005, 10:16 AM
Very quick reply ..
But before I cud read your reply the admin problem is gone .. I looked at
http://forum.pixelpost.org/archive/index.php/t-1327.html
This worked for me ...
************************************************** **
I had the exact same problem with not being able to login on iis-server. I solved it today by replacing the cookie with a sessioncookie in admin/index.php
I replaced this code near line 122:
// login is valid, set cookie
if (setcookie("pixelpost_admin",$cfgrow_password,time() +60*60*60*60))
header("Location:index.php");
unset($login);
It now looks like this:
// login is valid, set cookie
$_SESSION['pixelpost_admin'] = $cfgrow_password;
header("Location:index.php");
//unset($login);
And my logout near line 146 now looks like this:
if($_GET['x'] == "logout") {
session_unset();
session_destroy();
header("Location:index.php");
}
if(!isset($_SESSION['pixelpost_admin'])) {
// cookie is not set, send them to a form
$login = "true";
} else {
// cookie exists, check for validity
if($cfgrow['password'] != $_SESSION['pixelpost_admin']) { $login = "true"; }
}
And finally I put session_start(); at the top of the document.
Works like a charm! Hope it helps anyone.
****************************************
navdeep
09-13-2005, 10:25 AM
Geos,
I am not sure what you mean by turning off addons ?
as I said login to admin problem is solved.
but I am still not getting any images on main page
and
I get a fatal error in addons/advanced_stat.php : Undefined function sqlarray()
Thanks again ..
navdeep
09-13-2005, 10:37 AM
Another shot ..
I got it work for salted template but its not working for simle template ( which I like the most ). How shud I resolve this .. I am getting no images but thumbnails ..
Geos,
but I am still not getting any images on main page
and
I get a fatal error in addons/advanced_stat.php : Undefined function sqlarray()
Thanks again ..
That means nothing more that something with this addon is really fucked up. My sugestion was to del it and test if all works OK. If so that means that you should search problems inside code of that addon.
I cant say anything more without link to your site. I can guess what is happening but there are too many options to do that.
Giving link in such situations should be first step to get support!!
PS Check if addons upload is complete!
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.