PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Uploading problems - blank screen, images in queue (http://www.photopost.com/forum/photopost-pro-how-do-i/130212-uploading-problems-blank-screen-images-queue.html)

J.R. Rogers January 30th, 2007 01:48 PM

Uploading problems - blank screen, images in queue
 
I had a user report a problem uploading and I looked in the upload directory. To my horror, a few dozen users have tried uploading photos over the past 15 days and they are not being processed. I tried uploading myself and when you click upload/submit, you just get a blank page. I've done the following:
  • Upgraded to the latest version of PhotoPost PHP
  • Verified that the permissions on the data and uploads directories were set properly (to 777) and that the permissions were applied to lower directories
  • Rebooted / Restarted SQL and APACHE
  • Checked PHP settings and verified that It's set to allow uploads up to 2MB
  • Verified that GD is working
  • Performed a YUM update on the server and updated several OS components, restarted server

Why the blank screen and images going unprocessed? I've confirmed that they make it into the upload directory properly, and then nothing. The images show to be in the users queue if the user tries to upload again. How can I force the queued images to process? What could be causing this problem? Is there any way to disable uploads and post a message about the problem until I can get it resolved? Please help! Thanks!

Chuck S January 30th, 2007 04:54 PM

Common GD processor issue since it uses PHP memory. This should help

http://www.photopost.com/forum/showp...97&postcount=2

DST Daddy January 30th, 2007 05:57 PM

had a user with similar issues just today!

Implemented the code

J.R. Rogers January 30th, 2007 06:04 PM

Quote:

Originally Posted by Chuck S (Post 1188090)
Common GD processor issue since it uses PHP memory. This should help

http://www.photopost.com/forum/showp...97&postcount=2

Code:

Content visible to verified customers only.
Thanks, Chuck. What exactly does this do? It looks like it overrides the PHP limit of 2MB for file uploads and increases the amount allowed to 60MB. What are the pitfalls of doing this so I understand the risks?

Chuck S January 30th, 2007 07:08 PM

Nope it overrides the memory limit and gives more memory to PHP ;)

Your PHP is choking cause GD2 is using all the memory

J.R. Rogers January 31st, 2007 08:27 AM

Quote:

Originally Posted by Chuck S (Post 1188105)
Nope it overrides the memory limit and gives more memory to PHP ;)

Your PHP is choking cause GD2 is using all the memory

Ah. Thank you. That seems to have fixed the problem.

JR

Freakpyromaniac February 3rd, 2007 07:44 AM

I have the same problem butr can find the phrase that you are showing. This is my whole PP-inc.php file.

Quote:

$contentmeta $nocachetag $headtags $javapopup $headslide $stylesheet $ajaxcode
"; if ( file_exists($newheader) ) { print $header; if ( $printheader == "yes" ) { @include( $newheader ); } } else { print $header; } } // // Now lets put them into the Who's Online table // if ( $Globals['onlinepal'] == "yes" || $Globals['displayonline'] == "yes" ) { update_whoonline( $thiscat ); // Cleanup old records (number of seconds) if ( THIS_SCRIPT == "ppindex" ) { $expire = time() - 600; $resultb = ppmysql_query("DELETE FROM {$Globals['pp_db_prefix']}iponline WHERE date < $expire", $link); } } // Does the admin need a reminder? if ( $Globals['ppboards'] == "closed" && $User['adminedit'] == 1 ) { echo "

Your boards are currently closed!
"; } // That's it! $Globals['printheader'] = "yes"; return; } function printfooter( $headers = "yes" ) { global $Globals, $User, $Style, $vbfooter, $ppstarttime; // Removing the line below constitutes a violation of your License Agreement // and will result in significant penalities if removed. print "
{$Globals['cright']}

"; // Set this to 1 if you want to see debug information (only prints for admins) // Set this to 2 is you want to print out queries and timing info $showsqldebug = 0; $ppendtime = microtime(); $starttime = explode(" ", $ppstarttime); $endtime = explode(" ", $ppendtime); $totaltime = $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1]; $totaltime = number_format( $totaltime, 5 ); if ( $showsqldebug > 0 && $headers == "yes" ) { print "
Page generated in $totaltime seconds with {$Globals['number_queries']} queries
"; if ( $User['adminedit'] == 1 && $showsqldebug == 2 ) { for ($x = 0; $x < count($Globals['queries']); $x++ ) { print ($x+1). ": {$Globals['queries'][$x]} ({$Globals['timing'][$x]} sec)
"; } } print "
"; } if ( !empty($vbfooter) && $headers != "no" ) { print $vbfooter; } else { if ( $headers == "yes" && file_exists($Globals['footer']) ) { @include( $Globals['footer'] ); } } print "

Chuck S February 3rd, 2007 08:49 AM

You got to look up higher in the beginning of the pp-in.php file you will see the line noted about error_reporting

KlausM February 20th, 2007 08:16 PM

I Did exactly like you wrote:

Code:

Content visible to verified customers only.
But I still get the same error??

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 2432 bytes) in /customers/godtfoto.dk/godtfoto.dk/httpd.www/image-inc.php on line 102

Itīs very strange because you only have the problem with some pictures.
Right after i get the error I can upload several other pictures without any problems. But as soon I try to upload the first picture again I get the error again.
And Iīm not the only one many of the members get this error with one or two pictures???

After you get the error you can see that you have a picture in queue.
And when you try to overide the normal upload procedure and choose to upload the picture you already have in the queue it sometimes says that everything went ok, but the picture are not showing up anywhere???

There must be a solution to this???

Maybe I could try to e-mail one of the pictures that make that error to you Chuck?

I already tried to save it again with a new name and even from differnet programs but nothing helps.

Chuck S February 21st, 2007 09:41 AM

The error your noting says your PHP memory is only 16mb not 60 so this is your issue.

The solution other than giving gd2/PHP more memory is to install Imagemagick on your server which does not use PHP memory

KlausM February 21st, 2007 05:03 PM

Quote:

Originally Posted by Chuck S (Post 1189923)
The error your noting says your PHP memory is only 16mb not 60 so this is your issue.

The solution other than giving gd2/PHP more memory is to install Imagemagick on your server which does not use PHP memory

Yes I can see that but so canīt the line you said we should add be working.

Chuck S February 21st, 2007 05:24 PM

Go to our requirements page download the phpinfo.zip file extract the phpinfo.php file and upload it to your photopost directory and place the link here to that file so we can see your php settings as your not doing something right here somewhere

KlausM February 21st, 2007 09:22 PM

Okay Chuck here is the link:

http://www.godtfoto.dk/phpinfo.php

Chuck S February 22nd, 2007 07:15 AM

Yep just as I thought 16 MB so your not going the edit right it would appear in the proper file or something cause quite simple if the edit is done correct then your PHP memory would be 60M not 16M and your error notes it is still 16

So try reapplying the edit in pp-inc.php try making it a reasonable change like set it to 32M and you can check that it takes effect by viewing your PHP INFO in admin and it should read 32M

KlausM February 22nd, 2007 07:47 PM

Ok but you can see in my earlier answer that I have done exactly what you said, but ok I try again.

KlausM February 22nd, 2007 07:57 PM

Now I tried again with 32 Mb but it doesnīt change anything.

And you can see here that I have done it correct - also the first time.

So what is happening here?


Code:

Content visible to verified customers only.

Chuck S February 22nd, 2007 08:23 PM

What does your PHP INFO say in admin after you make the change? You did not answer my question

KlausM February 22nd, 2007 08:40 PM

Sorry it was the same 16 M

I can see now that my host are running PhP in Safe mode.

Maybe it is the problem???

Chuck S February 22nd, 2007 08:43 PM

Yes your host is doing 2 things. They are not allowing you to override PHP values and yes safe mode on is a big problem that needs to be off.

KlausM February 22nd, 2007 08:53 PM

Okay I just wrote to them if they will set it to off or if the could set the memory limit for me.

Thanks again Chuck
By the way what´s the time over there :-)
Here in Denmark it´s 4 in the night.


All times are GMT -5. The time now is 04:49 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97