close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Server Upload Images Incorrect

Thread began 12/20/2009 8:38 pm by debbie295402 | Last modified 12/23/2009 12:41 pm by Jason Byrnes | 3494 views | 16 replies |

debbie295402

Server Upload Images Incorrect

I've uploaded images from my server over 4 times, and each time the amount of images it says are uploaded and processed in a particular gallery do not match the amount of images I physically saw as they were uploaded. The images within each and every gallery do not match the processed images. I've double-checked the images on my server and when I view the folder from ftp as well as from within the Power Gallery, the amount on the server and the amount to be processed agree. It is the final image count that is incorrect. I've deleted and recreated each gallery with different image amounts and different folders. The amount of images that it shows each time is not consistent, either. One time I'll get 89 and the next 56.
Am I doing something wrong (although that would be difficult since the process is self-contained) or what?

Sign in to reply to this post

Eric Mittman

As a test of this please try the following. Upload a small number of pictures that would be easy to recognize, I think ten images would do. Then add the images to the gallery to see exactly what the result is. I'm curious if the problem might have to do with the number or type of images you are using or if it is consistent even with a smaller sampling of images. Please post back and let us know what you experience when working on this smaller scale.

Sign in to reply to this post

debbie295402

Between the time I posted & then got your response I uninstalled and removed all database files from the server, then uploaded & created a new install & db tables. I then tried to add images during the install. It froze at 135 of 155, but only recognizes 81. link is: index.php?gallery=1&theme=dark.

I then did as you requested and uploaded a test folder with 9 images. It processed all 9 within 15 seconds and shows 9 in the gallery. One of the pictures is 1.33MB.

The original pictures are all from the same batch and none are over 713kb. Average dimensions of each pic is 3000x2000. Hope this helps...

Thanks.

Sign in to reply to this post

gruant2000381341

I was nosing around and noticed something, on image #20091107_0835.jpg: 20091107_0835.jpg . Half of it is grayed out, didn't know if this was part of your problem or not. Just a fyi

Sign in to reply to this post

debbie295402

Interesting, gruant2000381341, and you are correct. I just checked the original picture that was uploaded, as well as the image within PowerGallery, and they are ok there... Weirder & weirder.

Sign in to reply to this post

Jason ByrnesWebAssist

It is possible the server is running into a memory limit issue or the images being uploaded are exceeding the max file size limitation.

try adding the following at line 1 of the connections/powergallery.php file to increase the server memory limit, post max size and upload file max file size settings:

php:
<?php

ini_set
('memory_limit''256M');
ini_set('upload_max_filesize''10M');
ini_set('post_max_size''10M');
?>
Sign in to reply to this post

debbie295402

Will I need to recreate the gallery(ies) once I've made this change? If so, should I remove the broken galleries first? Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, you will need to recreate the galleries since they where not created correctly the first time.

you can either delete the existing gallery, then recreate it, or create a new one for testing.

Sign in to reply to this post

debbie295402

I'm now getting the following error when I navigate to the PowerGallery folder online:
Warning: Cannot modify header information - headers already sent by (output started at /home/content/a/v/v/avvparade/html/images/PowerGallery/Connections/powergallery.php:7) in /home/content/a/v/v/avvparade/html/images/PowerGallery/admin/index.php on line 63

I only added the code to the powergallery.php file and uploaded that. Then navigated to PowerGallery to begin.

The code within powergallery.php is the following (I've replaced the actual info with place markers):

<?php
ini_set('memory_limit', '256M');
ini_set('upload_max_filesize', '10M');
ini_set('post_max_size', '10M');
?>

<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_powergallery = "[dbhost]";
$database_powergallery = "[dbname]";
$username_powergallery = "[username]";
$password_powergallery = "[password]";
$powergallery = mysql_pconnect($hostname_powergallery, $username_powergallery, $password_powergallery) or trigger_error(mysql_error(),E_USER_ERROR);
?>

Sign in to reply to this post

Jason ByrnesWebAssist

this is because of the blank line between the php tags that you have added.


your code should not have any blank lines or spaces after the closing php tags:

php:
<?php
ini_set
('memory_limit''256M');
ini_set('upload_max_filesize''10M');
ini_set('post_max_size''10M');
?><?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_powergallery "[dbhost]";
$database_powergallery "[dbname]";
$username_powergallery "[username]";
$password_powergallery "[password]";
$powergallery mysql_pconnect($hostname_powergallery$username_powergallery$password_powergallery) or trigger_error(mysql_error(),E_USER_ERROR); 
?>
Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...