Dynamic Flash Gallery PHP Support Product Page
This topic was archived
Cannot upload photos
Asked 18 Feb 2009 23:07:55
1
has this question
18 Feb 2009 23:07:55 Robert Young posted:
I get progress bars for a new upload and then the following error message "Unable to initialize PureUploadHandler. Check if PurePHPUplad and SmartImage...."(rest of the error message is obscured by OK button). Looking over the documentation, I see there should be a file called incResize.php in my ScriptLibrary but it hasn't been generated (the other files are there).I have all the extensions and know PurePHPUpload works on its own. I have confirmed all permissions are set. The Dynamic Flash extension works up to the point of uploading files and then I get the error message.
Can you help?
Replies
Replied 19 Feb 2009 07:22:10
19 Feb 2009 07:22:10 Miroslav Zografski replied:
Hello Robert,
Please, provide info on your DW's and OS's versions.
Also try following, not so convenient but working workaround:
On the page where the Flash Gallery is or will be placed put an filefield with form and add throught Server Behaviors PPU and SIP. Then remove the form and the field and add the Flash Album Generator and Dynamic Flash Gallery. I know that this can be annoying and we will investigate this issue.
Regards,
Please, provide info on your DW's and OS's versions.
Also try following, not so convenient but working workaround:
On the page where the Flash Gallery is or will be placed put an filefield with form and add throught Server Behaviors PPU and SIP. Then remove the form and the field and add the Flash Album Generator and Dynamic Flash Gallery. I know that this can be annoying and we will investigate this issue.
Regards,
Replied 20 Feb 2009 02:03:32
20 Feb 2009 02:03:32 Robert Young replied:
I'm running Vista Ultra and Dreamweaver CS3. Working in PHP/MySQL
Dynamic Flash Gallery 1.0.3
Flash album generator 2.0.6
Pure PHP Upload 2.1.7
Smart Image Processor 2.0.5
I tried your suggestion without luck. The PurePHPUpload works alone and with the Smart Image Processor 2 so it seems the problem is with the Dynamic Flash extension (the Flash Generator works and the Dynamic Flash Extension seems to do everything it should EXCEPT upload new photos.
I show upload files in the ScriptLibrary including:
IncPureUpload.js
IncPureUpload.php
cGraphicMediator.php dmxFlashGallery2.php.
There are also folders to be uploaded (which I have and confirmed)
I have also found three other files to upload in the root:
dmxFlashGallery2.swf
dmxFlashGallery2_action.php
dmxFlashGallery2_editor.swf
I upload the entire destination folder to the server and confirm it's there. All folders have 777 permission.
Dynamic Flash Gallery 1.0.3
Flash album generator 2.0.6
Pure PHP Upload 2.1.7
Smart Image Processor 2.0.5
I tried your suggestion without luck. The PurePHPUpload works alone and with the Smart Image Processor 2 so it seems the problem is with the Dynamic Flash extension (the Flash Generator works and the Dynamic Flash Extension seems to do everything it should EXCEPT upload new photos.
I show upload files in the ScriptLibrary including:
IncPureUpload.js
IncPureUpload.php
cGraphicMediator.php dmxFlashGallery2.php.
There are also folders to be uploaded (which I have and confirmed)
I have also found three other files to upload in the root:
dmxFlashGallery2.swf
dmxFlashGallery2_action.php
dmxFlashGallery2_editor.swf
I upload the entire destination folder to the server and confirm it's there. All folders have 777 permission.
Replied 20 Feb 2009 10:50:30
20 Feb 2009 10:50:30 Miroslav Zografski replied:
Hi Robert,
Please, in dmxFlashGallery2.php add followingl line after line 5 :
then upload the file on your test server and inflict the error. Then on your test server in the folder containing gallery images and/or pointed by you as upload one will be created debug.log file. Please, send this file to me at .
Regards,
Please, in dmxFlashGallery2.php add followingl line after line 5 :
.... (5)$gallery->datapath = "test"; (6)$gallery->debug = true; //add this line (7)$gallery->imageDimention = Array(450, 450); ....
then upload the file on your test server and inflict the error. Then on your test server in the folder containing gallery images and/or pointed by you as upload one will be created debug.log file. Please, send this file to me at .
Regards,
Replied 21 Feb 2009 21:31:23
21 Feb 2009 21:31:23 Robert Young replied:
I'm sorry but I added the code you sent to me to the dmxFlashGallery2.php in the ScriptLibrary Folder. I ran the file and got my error message as before. But I could not find a debug.log file anywhere in the upload folder I specified on my server.
Is the code in the right place? I
I will add to my previous note that I am running a 32-bit version of Vista Ultimate.
I inserted the code as follows (I took out the bracketed (5), (6) and (7) since I thought these refered to your own line codes.) :
<?php
$errorlevel=error_reporting();
error_reporting($errorlevel & ~E_STRICT);
$gallery->datapath = "test";
$gallery->debug = true; //add this line
$gallery->imageDimention = Array(450, 450);
/*** Universal Data Exporter --------------------------------------------------
Copyright 2001-2009 (c) DMXzone.com
Version: 1.0.3
------------------------------------------------------------------------------
*/
define("SESSION_NAME", "sessionid"
;
define("VIEWER_FILENAME", "dmxFlashGallery2.swf"
;
define("IMAGE_EXTENSIONS", "GIF,JPG,JPEG,PNG,FLV,SWF"
; // BMP not supported by Smart Image Processor
Is the code in the right place? I
I will add to my previous note that I am running a 32-bit version of Vista Ultimate.
I inserted the code as follows (I took out the bracketed (5), (6) and (7) since I thought these refered to your own line codes.) :
<?php
$errorlevel=error_reporting();
error_reporting($errorlevel & ~E_STRICT);
$gallery->datapath = "test";
$gallery->debug = true; //add this line
$gallery->imageDimention = Array(450, 450);
/*** Universal Data Exporter --------------------------------------------------
Copyright 2001-2009 (c) DMXzone.com
Version: 1.0.3
------------------------------------------------------------------------------
*/
define("SESSION_NAME", "sessionid"
define("VIEWER_FILENAME", "dmxFlashGallery2.swf"
define("IMAGE_EXTENSIONS", "GIF,JPG,JPEG,PNG,FLV,SWF"
Replied 23 Feb 2009 10:36:00
23 Feb 2009 10:36:00 Miroslav Zografski replied:
Hi Robert,
Please, excuse me but I ;ve made a mistake in filename. The file that you need to edit in order to have a debug.log is dmxFlashGallery2_action.php.
And, please include only line (6) from my code. Other lines are just for orientation.
Regards,
Please, excuse me but I ;ve made a mistake in filename. The file that you need to edit in order to have a debug.log is dmxFlashGallery2_action.php.
And, please include only line (6) from my code. Other lines are just for orientation.
Regards,
Replied 23 Feb 2009 22:50:18
23 Feb 2009 22:50:18 Robert Young replied:
Thank you. The following is the debug. log
[Log opened on Mon, 23 Feb 2009 13:10:04 -0700]
[FlashGallery::handleRequest] Request = Localization
QUERY_STRING= action=Localization&file=dmxFlashGallery2_editor_en.xml
[XMLStorage] path = southernU/photoGallery
Load localization: /home/content/J/o/s/JoshYoung/html/ScriptLibrary/localization/dmxFlashGallery2_editor_en.xml
[UserFactory] Created a Guest user
0
[Log opened on Mon, 23 Feb 2009 13:10:16 -0700]
[FlashGallery::handleRequest] Request = LoginRequest
QUERY_STRING= action=LoginRequest&_rnd=0.511678501963615
[XMLStorage] path = southernU/photoGallery
Load localization: /home/content/J/o/s/JoshYoung/html/ScriptLibrary/localization/dmxFlashGallery2_editor_en.xml
[UserFactory] Created a Guest user
php://input = <flashgallery version="1"><authrequest password="{md5}328724ccb332ede745d5fef31a4ec2b4" username="buzz" /></flashgallery>
FlashGallery XML version 1
[SimpleUserFactory] Created a Administrator user: buzz
validateHash: {md5}328724ccb332ede745d5fef31a4ec2b4 == {md5}328724ccb332ede745d5fef31a4ec2b4
Output data = <flashgallery version="1"><authresponse sessionid="5582beffd4b3b447507e1e515a07433b">You have logged in as buzz</authresponse>
</flashgallery>
[Log opened on Mon, 23 Feb 2009 13:10:21 -0700]
[FlashGallery::handleRequest] Request = FileUpload
QUERY_STRING= action=FileUpload&id=testing3&phase=1&sessionid=5582beffd4b3b447507e1e515a07433b&_rnd=0.952164099551737
[XMLStorage] path = southernU/photoGallery
Initialized session 5582beffd4b3b447507e1e515a07433b
[initializeSession] restored user: buzz
Load localization: /home/content/J/o/s/JoshYoung/html/ScriptLibrary/localization/dmxFlashGallery2_editor_en.xml
FlashGallery XML version 1
Output data = <flashgallery version="1"><message>Ready to upload files</message>
</flashgallery>
[Log opened on Mon, 23 Feb 2009 13:10:25 -0700]
[FlashGallery::handleRequest] Request = FileUpload
QUERY_STRING= action=FileUpload&id=testing3&sessionid=5582beffd4b3b447507e1e515a07433b
[XMLStorage] path = southernU/photoGallery
Initialized session 5582beffd4b3b447507e1e515a07433b
[initializeSession] restored user: buzz
Load localization: /home/content/J/o/s/JoshYoung/html/ScriptLibrary/localization/dmxFlashGallery2_editor_en.xml
FlashGallery XML version 1
Uploaded file ideaBulb.jpg
pureFileUpload version 217
Smart Image Processor version
[Log opened on Mon, 23 Feb 2009 13:10:29 -0700]
[FlashGallery::handleRequest] Request = FileUpload
QUERY_STRING= action=FileUpload&id=testing3&phase=2&sessionid=5582beffd4b3b447507e1e515a07433b&_rnd=0.619919869117439
[XMLStorage] path = southernU/photoGallery
Initialized session 5582beffd4b3b447507e1e515a07433b
[initializeSession] restored user: buzz
Load localization: /home/content/J/o/s/JoshYoung/html/ScriptLibrary/localization/dmxFlashGallery2_editor_en.xml
FlashGallery XML version 1
Output data = <flashgallery version="1"><collection><errormessage code="401">Unable to initialize PureUploadHandler. Check if Pure PHP Upload and Smart Image Processor are correctly installed.</errormessage>
</collection>
</flashgallery>
[Log opened on Mon, 23 Feb 2009 13:10:04 -0700]
[FlashGallery::handleRequest] Request = Localization
QUERY_STRING= action=Localization&file=dmxFlashGallery2_editor_en.xml
[XMLStorage] path = southernU/photoGallery
Load localization: /home/content/J/o/s/JoshYoung/html/ScriptLibrary/localization/dmxFlashGallery2_editor_en.xml
[UserFactory] Created a Guest user
0
[Log opened on Mon, 23 Feb 2009 13:10:16 -0700]
[FlashGallery::handleRequest] Request = LoginRequest
QUERY_STRING= action=LoginRequest&_rnd=0.511678501963615
[XMLStorage] path = southernU/photoGallery
Load localization: /home/content/J/o/s/JoshYoung/html/ScriptLibrary/localization/dmxFlashGallery2_editor_en.xml
[UserFactory] Created a Guest user
php://input = <flashgallery version="1"><authrequest password="{md5}328724ccb332ede745d5fef31a4ec2b4" username="buzz" /></flashgallery>
FlashGallery XML version 1
[SimpleUserFactory] Created a Administrator user: buzz
validateHash: {md5}328724ccb332ede745d5fef31a4ec2b4 == {md5}328724ccb332ede745d5fef31a4ec2b4
Output data = <flashgallery version="1"><authresponse sessionid="5582beffd4b3b447507e1e515a07433b">You have logged in as buzz</authresponse>
</flashgallery>
[Log opened on Mon, 23 Feb 2009 13:10:21 -0700]
[FlashGallery::handleRequest] Request = FileUpload
QUERY_STRING= action=FileUpload&id=testing3&phase=1&sessionid=5582beffd4b3b447507e1e515a07433b&_rnd=0.952164099551737
[XMLStorage] path = southernU/photoGallery
Initialized session 5582beffd4b3b447507e1e515a07433b
[initializeSession] restored user: buzz
Load localization: /home/content/J/o/s/JoshYoung/html/ScriptLibrary/localization/dmxFlashGallery2_editor_en.xml
FlashGallery XML version 1
Output data = <flashgallery version="1"><message>Ready to upload files</message>
</flashgallery>
[Log opened on Mon, 23 Feb 2009 13:10:25 -0700]
[FlashGallery::handleRequest] Request = FileUpload
QUERY_STRING= action=FileUpload&id=testing3&sessionid=5582beffd4b3b447507e1e515a07433b
[XMLStorage] path = southernU/photoGallery
Initialized session 5582beffd4b3b447507e1e515a07433b
[initializeSession] restored user: buzz
Load localization: /home/content/J/o/s/JoshYoung/html/ScriptLibrary/localization/dmxFlashGallery2_editor_en.xml
FlashGallery XML version 1
Uploaded file ideaBulb.jpg
pureFileUpload version 217
Smart Image Processor version
[Log opened on Mon, 23 Feb 2009 13:10:29 -0700]
[FlashGallery::handleRequest] Request = FileUpload
QUERY_STRING= action=FileUpload&id=testing3&phase=2&sessionid=5582beffd4b3b447507e1e515a07433b&_rnd=0.619919869117439
[XMLStorage] path = southernU/photoGallery
Initialized session 5582beffd4b3b447507e1e515a07433b
[initializeSession] restored user: buzz
Load localization: /home/content/J/o/s/JoshYoung/html/ScriptLibrary/localization/dmxFlashGallery2_editor_en.xml
FlashGallery XML version 1
Output data = <flashgallery version="1"><collection><errormessage code="401">Unable to initialize PureUploadHandler. Check if Pure PHP Upload and Smart Image Processor are correctly installed.</errormessage>
</collection>
</flashgallery>
Replied 05 Mar 2009 13:46:31
05 Mar 2009 13:46:31 Miroslav Zografski replied:
Hi Robert.
Check if all required files are correctly uploaded, especially those in ScriptLibrary folder.
Regards,
Check if all required files are correctly uploaded, especially those in ScriptLibrary folder.
Regards,
Replied 28 Mar 2009 21:27:13
28 Mar 2009 21:27:13 Robert Young replied:
Sorry for the delay.
I tried creating the file on another site hosted by the same server (GoDaddy). I confirmed all files were posted. In addition, I made sure the PurePHP Upload and Smart Image extensions were working independent of the Dynamic Gallery Extension (separate pages but on the same URL). They work (with a minor problem with update routine noted in another posting) but the Dynamic Update routine continues to fail.
The site is Contribute enabled, if that matters.
I tried creating the file on another site hosted by the same server (GoDaddy). I confirmed all files were posted. In addition, I made sure the PurePHP Upload and Smart Image extensions were working independent of the Dynamic Gallery Extension (separate pages but on the same URL). They work (with a minor problem with update routine noted in another posting) but the Dynamic Update routine continues to fail.
The site is Contribute enabled, if that matters.
Replied 21 Aug 2009 02:42:22
21 Aug 2009 02:42:22 David Barnett replied:
Did you ever get this resolved? I'm having EXACTLY the same problem (and have gone through all the same testing steps)
