![]() |
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 |
Hi.. In uploadphoto.php beneath require"pp-inc.php"; add this ini_set("memory_limit", "32M"); Should be ok... -T |
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!! |
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 |
Ok, I found it and added it and it is still doing the same thing. :( |
The same error message? |
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 |
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. |
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? |
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"); |
Thank you so much!! It worked :) I really appreciate all your help!!! |
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? :( |
Change your path statements in config and global options from /home/scrcou11/public_html to /home2/scrcou11/public_html |
Where do I find that? Is that in control panel, if so then where? |
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 |
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 |
Check your data and uploads directories as well as there subdirectories and make sure they are 777 |
where do I find those? |
Never mind I found them and they were at 777 already. :( |
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