 | |  | | | Photopost Pro Installation & Upgrades If you're having install or upgrade problems |
June 22nd, 2005, 10:53 PM
|
#1 (permalink)
| | Registered User
Join Date: Jun 2005 Location: Oregon
Posts: 15
| 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
|
| |
June 23rd, 2005, 05:59 AM
|
#2 (permalink)
| | Senior Member
Join Date: Mar 2003
Posts: 1,319
|
Hi..
In uploadphoto.php beneath
require"pp-inc.php";
add this
ini_set("memory_limit", "32M");
Should be ok...
-T
|
| |
June 23rd, 2005, 02:05 PM
|
#3 (permalink)
| | Registered User
Join Date: Jun 2005 Location: Oregon
Posts: 15
|
I don't mean to sound stupid but  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!!
|
| |
June 23rd, 2005, 02:17 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,702
|
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
|
| |
June 23rd, 2005, 02:46 PM
|
#5 (permalink)
| | Registered User
Join Date: Jun 2005 Location: Oregon
Posts: 15
|
Ok, I found it and added it and it is still doing the same thing. |
| |
June 23rd, 2005, 04:00 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,702
|
The same error message?
|
| |
June 23rd, 2005, 04:01 PM
|
#7 (permalink)
| | Registered User
Join Date: Jun 2005 Location: Oregon
Posts: 15
|
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
Last edited by Michelle; June 23rd, 2005 at 04:03 PM.
|
| |
June 23rd, 2005, 04:10 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,702
|
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.
|
| |
June 23rd, 2005, 05:05 PM
|
#9 (permalink)
| | Registered User
Join Date: Jun 2005 Location: Oregon
Posts: 15
|
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?
|
| |
June 23rd, 2005, 05:16 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,702
|
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");
|
| |
June 23rd, 2005, 05:29 PM
|
#11 (permalink)
| | Registered User
Join Date: Jun 2005 Location: Oregon
Posts: 15
|
Thank you so much!! It worked  I really appreciate all your help!!!
|
| |
June 23rd, 2005, 09:25 PM
|
#12 (permalink)
| | Registered User
Join Date: Jun 2005 Location: Oregon
Posts: 15
|
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? |
| |
June 23rd, 2005, 09:29 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,702
|
Change your path statements in config and global options from
/home/scrcou11/public_html
to
/home2/scrcou11/public_html
|
| |
June 23rd, 2005, 09:46 PM
|
#14 (permalink)
| | Registered User
Join Date: Jun 2005 Location: Oregon
Posts: 15
|
Where do I find that? Is that in control panel, if so then where?
|
| |
June 23rd, 2005, 10:53 PM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,702
|
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
|
| |
June 23rd, 2005, 11:00 PM
|
#16 (permalink)
| | Registered User
Join Date: Jun 2005 Location: Oregon
Posts: 15
|
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
|
| |
June 23rd, 2005, 11:11 PM
|
#17 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,702
|
Check your data and uploads directories as well as there subdirectories and make sure they are 777
|
| |
June 23rd, 2005, 11:13 PM
|
#18 (permalink)
| | Registered User
Join Date: Jun 2005 Location: Oregon
Posts: 15
|
where do I find those?
|
| |
June 23rd, 2005, 11:49 PM
|
#19 (permalink)
| | Registered User
Join Date: Jun 2005 Location: Oregon
Posts: 15
|
Never mind I found them and they were at 777 already. |
| |
June 24th, 2005, 08:27 AM
|
#20 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,702
|
You sure here? all of them
--data
--500
--medium
--thumbs
--mini
Link to your php info so I can check your path
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 09:19 AM. | |