PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   newbie with error problem (http://www.photopost.com/forum/photopost-pro-installation-upgrades/114537-newbie-error-problem.html)

Michelle June 22nd, 2005 10:53 PM

newbie with error problem
 
I am very new to this and earlier today I uploaded two pics and that went just fine, but then I went in and deleted one to edit it and tried to upload it and got thFatal error:

Allowed memory size of 8388608 bytes exhausted (tried to allocate 5120 bytes) in /home2/scrcou11/public_html/image-inc.php on line 84is error message:

Can someone explain to me what I need to do to fix this? Thanks so much!!

Michelle

b6gm6n June 23rd, 2005 05:59 AM

Hi..

In uploadphoto.php beneath

require"pp-inc.php";

add this

ini_set("memory_limit", "32M");

Should be ok...

-T

Michelle June 23rd, 2005 02:05 PM

I don't mean to sound stupid but :o I am not sure how to go there. I went to my control panel and found uploadphoto.php but after that I was lost. Could you give me a little more instructions? Thank you so much!!

Chuck S June 23rd, 2005 02:17 PM

You need to right click and EDIT the file in ftp or if your using cpanel I beleive if you click the file on the right side of the window pane you will have options to edit delete etc. Hit edit and make the change then hit save

Michelle June 23rd, 2005 02:46 PM

Ok, I found it and added it and it is still doing the same thing. :(

Chuck S June 23rd, 2005 04:00 PM

The same error message?

Michelle June 23rd, 2005 04:01 PM

Yeah the exact same one

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 5120 bytes) in /home2/scrcou11/public_html/image-inc.php on line 84

Chuck S June 23rd, 2005 04:10 PM

Okay then apparently your edit of the file did not happen.

That line sets the memory limit on php up to 24M so if your getting an error that php has only 8M your file edit was not saved.

Michelle June 23rd, 2005 05:05 PM

I copied this off my control panel, I wanted to make sure this is what it is supposed to look like.


define( THIS_SCRIPT, "uploadphoto" );
require "pp-inc.php";
ini_set("memory_limit", "32M");
require "{$Globals['PP_PATH']}/image-inc.php";

$allowed = array(
'img' => array('src')


It is still giving me the error after I saved it. am I doing something wrong?

Chuck S June 23rd, 2005 05:16 PM

How about you move it to bulkupload.php find this line

ini_set("max_execution_time", 0);

below it add this

ini_set("memory_limit", "32M");

Michelle June 23rd, 2005 05:29 PM

Thank you so much!! It worked :) I really appreciate all your help!!!

Michelle June 23rd, 2005 09:25 PM

Ok, well it worked one time then when I went to upload another pic this is what it said at the top of the page:

Warning: imagejpeg(): Unable to open '/home/scrcou11/public_html/data/550/medium/000_0001.JPG' for writing in /home2/scrcou11/public_html/image-inc.php on line 121

Warning: filesize(): Stat failed for /home/scrcou11/public_html/data/550/medium/000_0001.JPG (errno=2 - No such file or directory) in /home2/scrcou11/public_html/image-inc.php on line 591

Warning: fread(): supplied argument is not a valid stream resource in /home2/scrcou11/public_html/image-inc.php on line 591


and in the box in the middle it said:

Unable to read the format of file: /home/scrcou11/public_html/data/550/medium/000_0001.JPG

What should I do? :(

Chuck S June 23rd, 2005 09:29 PM

Change your path statements in config and global options from

/home/scrcou11/public_html

to

/home2/scrcou11/public_html

Michelle June 23rd, 2005 09:46 PM

Where do I find that? Is that in control panel, if so then where?

Chuck S June 23rd, 2005 10:53 PM

If you login to photopost as admin in the admin side modify the path statement in config and the two path statements in global options to reflect the proper path

Michelle June 23rd, 2005 11:00 PM

now it says:

Warning: imagejpeg(): Unable to open '/home2/scrcou11/public_html/data/550/medium/000_0001.JPG' for writing in /home2/scrcou11/public_html/image-inc.php on line 121

Warning: filesize(): Stat failed for /home2/scrcou11/public_html/data/550/medium/000_0001.JPG (errno=2 - No such file or directory) in /home2/scrcou11/public_html/image-inc.php on line 591

Warning: fread(): supplied argument is not a valid stream resource in /home2/scrcou11/public_html/image-inc.php on line 591


and:

Unable to read the format of file: /home2/scrcou11/public_html/data/550/medium/000_0001.JPG

Chuck S June 23rd, 2005 11:11 PM

Check your data and uploads directories as well as there subdirectories and make sure they are 777

Michelle June 23rd, 2005 11:13 PM

where do I find those?

Michelle June 23rd, 2005 11:49 PM

Never mind I found them and they were at 777 already. :(

Chuck S June 24th, 2005 08:27 AM

You sure here? all of them

--data
--500
--medium
--thumbs
--mini

Link to your php info so I can check your path


All times are GMT -5. The time now is 03:45 PM.

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