 | |  | | | Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here. |
December 26th, 2005, 02:03 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 172
| New Error after Server Movement on Recent and Most Popular PALS on index.php
I recently moved my server from one to another and the entite re-install has gone very well although im getting this error :
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in /var/www/html/gallery/showphoto.php on line 240
when I try to click on any of the images in these pals..what could be wrong?
|
| |
December 26th, 2005, 11:52 AM
|
#2 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 172
|
BTW , when i look up the showphoto.php line 240 and change the variable from yes to "no", the links off the images of the PAL work but now the NExt anD Previous buttons dont show at all and also when I upload new images, they do not show on the index as the most recent ones.
|
| |
December 26th, 2005, 03:17 PM
|
#3 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,650
|
HMM well you must be using an old Photopost I really don't know what to say as the lines aren't matching to what I see so try this in showphoto.php add the line in bold
error_reporting (E_ALL ^ E_NOTICE); ini_set("memory_limit", "32M"); |
| |
December 26th, 2005, 04:01 PM
|
#4 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 172
|
Chuck,
im using 5.21 and the showphoto.php line 240 has those lines and I cant find " error_reporting (E_ALL ^ E_NOTICE); " line...are we looking at same file.
|
| |
December 26th, 2005, 04:28 PM
|
#5 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,650
|
If your using 5.21 line 240 is a blank line so I don't think your file is current. Also the line I meantion is at the top of showphoto.php
|
| |
December 26th, 2005, 05:33 PM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 172
|
chuck I have cheked the file again..here is the code> I think you are reffering to a different php file: I have even ran a search on the file there i s no intance of (E_ALL ^ E_NOTICE); .
Here is what on line 240 - 245:
while ( list($npid, $npbig, $npcat, $npuserid, $npapp, $npstore, $npheight, $npwidth) = mysql_fetch_array($rows) ) {
if ( is_image_private($npcat) == "no" ) {
$ref++;
$ids[$ref]= array( $npid, $npbig, $npcat, $npuserid, $npapp, $npstore, $npheight, $npwidth );
if ( $ids[$ref][0] == $photo ) {
$curr = $ref;
Last edited by kisii; December 26th, 2005 at 05:36 PM.
|
| |
December 26th, 2005, 05:48 PM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,650
|
The line you meantion is line 244 of the showphoto.php file in photopost 5.21
I would suggest you find this at the top of the file and put the bold line I meantioned then
define( 'THIS_SCRIPT', "showphoto" );
|
| |
December 26th, 2005, 06:42 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 172
|
Chuck - thats seems to work like a charm -- thanks ALOT.
|
| |
December 29th, 2005, 08:51 PM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 172
|
Chuck , im getting a similar error when uploading pictures :
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2304 bytes) in /var/www/html/gallery/image-inc.php on line 84
What coudl be wrong and wht is causing these errors?
|
| |
December 29th, 2005, 09:32 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,650
|
Well thats a PHP memory exhaustion error and not a program error. Maybe your uploading large files and with only 8mb of memory for PHP and your using GD you will see this alot. Same edit just different file. Increase php mempry
In uploadphoto.php somewhere up top near say
require "pp-inc.php";
add this
ini_set("memory_limit", "32M");
|
| |
December 30th, 2005, 08:25 AM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 172
|
Thanks chuck, that only seemed to allow one of the admin accounts to upload the files. Do you think it will help to upload a a custom php.ini file into the root folder with more memory allocated?
|
| |
December 30th, 2005, 08:41 AM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,650
|
that tweak would not be usergroup specific
double check your usergroup permissions and you can always flush the contents out of the uploads folder on your install
If you have the ability to edit the php.ini sure just set the variables to what you want.
|
| | |
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 12:21 PM. | |