Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorjack
    • CommentTimeSep 19th 2005 edited
     
    I'm trying to make a new install on a different webserver. After making some files writable the installation goes well and the necessary table are made in the database (I checked). Then the screen jumps automatically to the login page, and after that the blank plogger/admin/plog-upload.php follows.

    Checking with some echo's I can see that something goed wrong right in the first line of that plog-upload file:

    echo "step 1";
    require("plog-globals.php");
    echo "step 2";

    "step 1" is shown. The rest not :(

    (I downloaded the beta today. I don't know if something has been changed in the mean while?)

    Also: could the password fields be doubled? Just to check my typing. This goes for the database password and the user password.
    • CommentAuthorjack
    • CommentTimeSep 27th 2005
     
    Anyone?

    I've tried over and over but with no succes. Safe-mode is off, register globals is on.

    Like I said this is an install on another server, not which hosts my site (plogger runs ok there). I also noticed after deleting all cookies etc. that it doesn't matter what I use for username or password. I still get that same blank plog-upload.php screen...
    •  
      CommentAuthormike
    • CommentTimeSep 27th 2005
     
    Hmm. Are you sure you didn't modify any of the code before uploading it? I can't reproduce this problem anywhere although I have seen it before. It is usually blank if there is some sort of parse error on the page. Try editing the page and putting error_reporting(E_ALL); at the top.
    • CommentAuthorjack
    • CommentTimeSep 28th 2005 edited
     
    Before doing this, I downloaded a fresh beta without changing anything to the code ;).

    If I understand you correctly, I put the error_reporting(E_ALL); as the first code to be executed at the top of my plog-upload.php file. I even put it in the plog-globals file in the /admin folder and a few other files :) but still a blank screen. Again I put echo "test" right after your code and before the lines:
    require("plog-globals.php");
    require_once("../plog-load_config.php");
    include("plog-admin-functions.php");

    'test' is shown in the page but nothing else. Strange. Any suggestion for further testing? or things I could check in the phpinfo.php page? My mysql host isn't localhost (as most of the time), but 'mysql.your.name'. Could that have an effect?
    (your.name is not something that should be changed in my own name: yournamewebhosting is the name of the hosting provider :) The database works ok and is filled with the right tables).

    -----------------------------------

    I've experimented a bit more. I used the echo to find out where it stopped appearing, testing each include/require from the start. It stopped when I arrived at plog-globals.php in the rootfolder of Plogger, so NOT the plog-globals.php in the /admin folder. So the plogger/admin/plog-globals.php calls for plogger/plog-globals.php and when using the code you gave me this gives me these 3 errormessages:

    Notice: A session had already been started - ignoring session_start() in /home/sites/site29/web/plogger/plog-globals.php on line 5

    Warning: main(plog-config.php): failed to open stream: No such file or directory in /home/sites/site29/web/plogger/plog-globals.php on line 15

    Fatal error: main(): Failed opening required 'plog-config.php' (include_path='') in /home/sites/site29/web/plogger/plog-globals.php on line 15

    It sais that plog-config.php doesn't exist, but it does exist and I mod changed it into 777. Also deleting the file has no effect.

    Hope this rings a bell :)...
    • CommentAuthorjack
    • CommentTimeOct 4th 2005
     
    Bump...

    Mike, have you had a chance to think about this problem I'm having here? I don't know what to do with it. On my personal testsite it's working great, but I'm also testing for a friend and can't get it to work on his server.
    •  
      CommentAuthorgangavalli
    • CommentTimeOct 4th 2005
     
    I prayed that you get struck with that Jack(because its hard to understand unless you see it yourself). I was trying to fix it for Lyn and there was no way out.

    You guys need give some serious time for this.
    •  
      CommentAuthoranti
    • CommentTimeOct 4th 2005
     
    Jack, what PHP version is used on that host?

    As it turns out Plogger requires PHP4.3.0 (because of the mysql_real_escape_string that is used all over the code). Trying to run it on older versions might actually cause this bug.
    • CommentAuthorjack
    • CommentTimeOct 4th 2005
     
    PHP Version 4.3.11

    I almost wished it was 3.2 or something like that :)
    •  
      CommentAuthoranti
    • CommentTimeOct 4th 2005
     
    Okey, there a quite a few error_reporting() calls sprinkled all over the code. Try to comment them all out and see if having error_reporting(E_ALL) as the first line of plog-upload gives any meaningful error messages then.
    •  
      CommentAuthoranti
    • CommentTimeOct 4th 2005
     
    Sorry, just ignore that .. I re-read your comment and the actual error message is already there. I just don't know yet how it happens
    • CommentAuthorjack
    • CommentTimeOct 4th 2005
     
    This is some extra info from phpinfo.php. It also includes some things about magic quotes, because I remember trying some program that got stuck on the 'on' setting of one of those magic quotes.

    safe_mode Off Off
    safe_mode_exec_dir no value no value
    safe_mode_gid Off Off
    safe_mode_include_dir no value no value

    magic_quotes_gpc On On
    magic_quotes_runtime Off Off
    magic_quotes_sybase Off Off

    mysql:
    Client API version 3.23.58
    •  
      CommentAuthoranti
    • CommentTimeOct 4th 2005
     
    try to run the following code:

    var_dump(get_include_path())

    What does it say?
    • CommentAuthorysanstra
    • CommentTimeOct 4th 2005
     
    Hey guys, I follow this discussion for the 1st 30% or so, but I too get a blank page

    I tried to include the following

    error_reporting(E_ALL);
    var_dump(get_include_path())

    just after // The initial tab is UPLOAD function.

    and get this error:
    Parse error: parse error in /home/sites/site70/web/plogger/admin/plog-upload.php on line 12

    which is the following code:

    require("plog-globals.php");

    ,but then yournamewebhosting is running PHP 4.1.2, so following this thread I do read that I'd better ask them to upgrade... but you're the only one that still use GD 1.x as they run on 1.6.2 or higher,... No clue what that means but probably not GD 2.x

    Yoeri Sanstra
    •  
      CommentAuthormike
    • CommentTimeOct 4th 2005
     
    Make sure you put a semi-colon after that var_dump...
    var_dump(get_include_path());
    • CommentAuthorysanstra
    • CommentTimeOct 4th 2005
     
    that was a stupid mistake,...
    but although that fixed one error, it results in another one

    Call to undefined function: get_include_path() in /home/sites/site70/web/plogger/admin/plog-upload.php on line 9

    by the way, I've asked for a website migration so will try again tomorrow on php 4.3.x
    • CommentAuthorjack
    • CommentTimeOct 5th 2005
     
    Mike, if you read what I wrote above (about echoing and following the files until where it went wrong), this means I put your line "var_dump(get_include_path());" right at the top of plog-globals.php in the plogger root directory.

    This gives me this message:

    string(14) ".:/usr/lib/php"

    By the way, why using plog-globals.php twice?
    •  
      CommentAuthormike
    • CommentTimeOct 5th 2005
     
    One plog-globals is for the admin component and one for the front end. I'm still not sure what's going on with your setup, maybe anti will know.
    • CommentAuthorjack
    • CommentTimeOct 7th 2005
     
    Mike, would it help if I send you the complete page that phpinfo.php spits out? Or is there some information content there that some 'outsider' should not see/know because it could be used to hack the site or something?
    I just tried a new install for another friend who also has an account at this same provider, but same problems here :(.
    • CommentAuthorjack
    • CommentTimeOct 10th 2005
     
    Mike, a strange thing happened in this continuous story about the blank screens :). I just tried a third installation, same provider, different account, and this time a got as far as creating two collections. But when clicking on one of those collections or on the 'options' button on the top of that manage page... everything blank again. So it's not just plog-upload.php I think. It's something else, because like I said, clicking towards the options.php page the same thing happens again. :(
    •  
      CommentAuthormike
    • CommentTimeOct 10th 2005
     
    This is frustrating because their is really a limited amount of things I can do to determine this problem just by hearing your description. I can't reproduce the error, so it is obviously a server specific setting that is throwing a monkey wrench into the cogs.

    Maybe you could send me your login information for the website and Plogger admin via email and I could investigate personally?
    •  
      CommentAuthoranti
    • CommentTimeOct 12th 2005
     
    I think it's a PHP bug, but I'm not sure why it happens.

    Sometimes PHP loses the value of include_path (which defaults to "." or the current directory). If that happens, then include() fails to load any files with relative paths.

    Workaround:
    add the following:

    ini_set('include_path', ini_get('include_path'));

    as the very first line of plog-globals.php (the one in Plogger folder, not admin folder)

    This is how I got it working on Jack's server.
    •  
      CommentAuthoranti
    • CommentTimeOct 12th 2005
     
    There are bunch of bugs reported in PHP bug database about this.

    http://bugs.php.net/bug.php?id=21540
    http://bugs.php.net/bug.php?id=19953

    And there is more. Most of them are marked as bogus.
    • CommentAuthorjack
    • CommentTimeOct 12th 2005
     
    Well done Anti! I just tried your solution in the two other installations, and in both cases the problem was solved. I hope for the others on this page as well.

    Is it harmfull to add this line to the next beta, just to be sure?
    •  
      CommentAuthoranti
    • CommentTimeOct 12th 2005
     
    I commited the change to SVN and it will be in the next beta.
    • CommentAuthorsturmgas
    • CommentTimeJan 25th 2006 edited
     
    I've done (plog-globals.php downloaded from the trunk etc.) that but unfortunatly i still got a blank page at plog-upload.php. My hosting services uses: php 5.0.3
    •  
      CommentAuthormike
    • CommentTimeJan 25th 2006 edited
     
    Mixing files from the current codebase into Beta2 is a recipe for disaster. If you are going to use the new files, you need all of them.

    BTW, I don't think Plogger is compatible with PHP5. Sorry!
    I guess the only thing that isn't compatible with PHP5 is PHP shorttags, which are used in a couple of places (The Exifer Library comes to mind). <? should be replaced with <?php globally.
    • CommentAuthorsturmgas
    • CommentTimeJan 25th 2006
     
    Thanks, maybe i'm gonna try that and otherwise i have to look for an other photogallery which will work under php5
    • CommentAuthorsturmgas
    • CommentTimeFeb 1st 2006
     
    I give up really this time. If you search in the forum with "blank" you will get 5 threads with more less the same problem. So what is goes wrong and above all where?
    • CommentAuthortubadc
    • CommentTimeFeb 18th 2006
     
    Same problem here, but i try to do different and only the administration dosent function, because i have install here im my localhost first and then upload de files and base to web and the navigation on site is normal, only administration is bugged..., im not sure if the problem is the PHP v., because why the client side works and the back end no????, sorry about the bad english im Brazilian, and if someon want the Brazilian traslation i made it, and i send ...leave ur mail here... plz guyz lets resolve this.....

    Nice script any way....

    TKZ
    • CommentAuthortubadc
    • CommentTimeFeb 18th 2006
     
    Guyz only one more thing... the PHP version isnt the problem... becouse in my localhost im running the PHP v.5.0.4, and on my web host is PHP 5.0.4 too!!!!!!

    Localhost its works normal with no bugs and on web host have this..... version isnt a problem.... lets go guz lets resolve this.....

    TKZ
    • CommentAuthortubadc
    • CommentTimeFeb 19th 2006
     
    Its working.....!!!!!!!!!!!!

    i change every require_once, includes, requires("");

    to the absoulte path for the files......

    like this

    require '/home/restricted/home/yournamesite/public_html/sitedirectory/albums/plog-config.php';

    i found some mistakes on the sessions too, im working on it now... , but the pĀ“roblem to my host was resolve putting the global path to files testing inm yours...
    • CommentAuthorddejong
    • CommentTimeFeb 19th 2006
     
    Wow, very interesting. tuba, please let us know what you find, and start any tickets at dev.plogger.org when you find a bug.

    Cheers,
    Derek
    • CommentAuthorphl
    • CommentTimeMar 5th 2006
     
    Got the same blank screen after uploading a picture.
    And then the index.php page turn blank.
    Error reporting didn't do much.

    ini_set('include_path', ini_get('include_path'));
    Did fix it.

    I am using php 4.4.1 and mysql 5.0.18

    PhL
    • CommentAuthorphl
    • CommentTimeMar 6th 2006
     
    Found the solution

    I gave up plogger and installed zenPhoto.
    I got the same problem but with an error message about memory allocation error.

    I had to increase the memory limit to 64M in the php.ini file:
    memory_limit = 64M
    default 8M.

    It seems like the image resize for 7Mega pixel picture is to much for PHP GD2

    Then everything worked fine on plogger and zenPhoto.

    Cheers,

    PhL
    Thankful People: mwhities
    •  
      CommentAuthormike
    • CommentTimeMar 7th 2006
     
    For those of you who don't have access to your php.ini and are not running safe mode, you can accomplish the same thing by placing this code in your /admin/plog-globals.php file.

    @ini_set("memory_limit", "64M");
    • CommentAuthorsturmgas
    • CommentTimeMay 31st 2006
     
    It wouldnt surprise me that there is a problem with the paths just like Tubadc says. I still have a blank screen at the admin-side and not at the client side 'cause that works fine. Gonna try the solution of Tubadc and let you know if it works for me.
    • CommentAuthorsturmgas
    • CommentTimeJun 2nd 2006
     
    I have done it change all the paths but ended up with loads of warnings en fatal errors, damn
    • CommentAuthorsturmgas
    • CommentTimeJun 9th 2006
     
    I made probably a small mistake with the absolute paths "/usr/etc " instead of "usr/etc " but now i got the message:

    Fatal error: Call to undefined function connect_db() in usr/home/web/snl58239/plogger/plog-globals.php on line 18

    btw. all this blank screen stuff after the admin screen has definetly something to do with paths. Maybe it is helpfull to know what the php configuration, etc of my webhost is, you can find it on: http://web11.talkactive.net/phpinfo.php
    • CommentAuthortoad
    • CommentTimeAug 22nd 2006
     
    I had the same problem. I used Anti's fix:

    ini_set('include_path', ini_get('include_path'));

    and it works now. Thanks.
    • CommentAuthorxrayman
    • CommentTimeDec 29th 2006
     
    My plogger installation has been running for over a year with no problems. On 12-28-06 I wanted to add some new photos and encountered the blank screen plog-upload.php problem.
    I added @ini_set("memory_limit", "64M"); to my /admin/plog-globals.php file to fix the problem.
    Thank you mike for the code.
  1.  
    hey I've tried it all having some serious probs uploading, some pics work fine while others go to a blank screen, then i have to use an ftp program to delete them so i can then go into manage and delete the empty pic there.


    help please
    • CommentAuthorkimhuff
    • CommentTimeFeb 28th 2007
     
    I am also experiencing the blank screen on the admin screen. There are a long list of possible fixes on here and althought I havent had time to read through them all, I will do so when I get home from work this evening.

    My question is this... Is anyone running plogger on a system with PHP5.0.4 and MySQL 4.1.2? If so, are you having any problems? I thought maybe this was happening because I had php5, but I didnt see anyone else list that has their specs.

    Thanks,

    Kim
  2.  
    I'm running plogger beta 3 under PHP 5.2.1 on Dreamhost.
    • CommentAuthortommy1967
    • CommentTimeApr 30th 2007
     
    I found that by changing this global: $config['basedir']

    ...to a relative path the problem was resolved.

    I think the overall issue is with trying to set global root relative paths. I work at a university and we have a convoluted apache configuration making it easier to develop with paths relative to the working directory or using absolute urls.

    This file: plog-admin-functions.php

    Calls the following files:
    require_once("plog-globals.php");
    require_once("../plog-load_config.php");
    require_once($config['basedir'] . "/plog-functions.php");
    require_once($config['basedir'] . "/lib/exifer1_4/exif.php");

    I changed $config['basedir'] to a relative path and the blank screen issue was resolved. I did a search and found 28 instances, I'm thinking it's best to just manually alter the script in those places??

    Any suggestions.
    • CommentAuthordidlo
    • CommentTimeMay 1st 2007
     
    The blank screen happened to me - I am hosting on Plesk 8 on linux - the problem seemed to be with the open_basedir restriction which plesk puts on all sites and subdomains by default.
    To change this on a plesk site you have to create a file called vhost.conf in the sites conf/ directory which is usually located at /var/ww/vhosts/[domain_name]/conf/

    in the vhost.conf you need something like the following:

    <Directory /var/www/vhosts/[domain_name]/httpdocs>
    php_admin_value open_basedir none
    </Directory>

    After creating the file you need to restart plesk - if you have command line access the command for this is /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=[domain_name] and then restart apache

    Hope this helps someone.
    • CommentAuthormwhities
    • CommentTimeJul 4th 2007
     
    <blockquote><cite>Posted By: phl</cite>64</blockquote>

    I had to do this as well.

    I appreciate the heads up on it.

    Michael
    • CommentAuthorTim
    • CommentTimeJul 12th 2007
     
    thanks all this has fixed the same prob i was having