great concept, but I can get it to work. I've been testing via xp web publishing. xp is allowed to create taxonomies, but isn't upload any pics. the interesting thing is that it seem to think otherwise. It acts as its uploading all of the pics and then, give you a link to the gallery. when you click on it, it says it has 0 images.

any thoughts?

Comments

egfrith’s picture

Title: hi there. » XP Pub: Not able to upload images

It looks like it could be related to this bug: #216086: Non-admin can't upload images using XP publisher. Has the user who is trying to upload the images got the "administer images" permission?

keesee’s picture

Yes. I am actually attempting to test functionality with drupal account #1. Who has all access permissions. I can't figure out what the problem is.

--
J.

egfrith’s picture

Is there any information in the drupal logs?

egfrith’s picture

One other thing, which you've probably already tested: can you create images in the normal way using the web browser (Create content->Image)?

keesee’s picture

main page of my log window....
php Mar 27 2009 - 11:39pm mysqli_real_escape_string() expects parameter 1 ... Anonymous
form Mar 27 2009 - 11:38pm Illegal choice 0 in Publish to element. Jimmy
form Mar 27 2009 - 11:38pm Illegal choice 0 in Publish to element. Jimmy
form Mar 27 2009 - 11:38pm Illegal choice 0 in Publish to element. Jimmy
php Mar 27 2009 - 11:38pm mysqli_real_escape_string() expects parameter 1 ... Anonymous
image_pub Mar 27 2009 - 11:38pm Album added with title test album Jimmy
php Mar 27 2009 - 11:37pm mysqli_real_escape_string() expects parameter 1 ... Anonymous
image_pub Mar 27 2009 - 11:37pm Session opened for Jimmy Jimmy
user Mar 27 2009 - 11:37pm Session opened for Jimmy. Jimmy
php Mar 27 2009 - 11:37pm Missing argument 3 for form_builder(), called in ... Anonymous

----
Type form
Date Friday, 27 March 2009 - 11:38pm
User Jimmy
Location http://xxx.com/publish_xp
Referrer
Message Illegal choice 0 in Publish to element.
Severity error
Hostname xx.xxx.xxx.xxx
Operations

--

seems to be a form error. I attempted to publish 3 images... and received 3 "Illegal choice 0 in Publish to element."

---

Thanks for working with me to trouble shoot this. It is very much appreciated.
--
J.

keesee’s picture

... oh and yes. I have tested creating image via node/add/image.
--
J.

egfrith’s picture

Thanks for the log. I'm not quite sure what to make of, but prompted by the problems you're reporting, I've fixed the bug #216086: Non-admin can't upload images using XP publisher and made a new release of the module 6.x-1.0-beta2. It would be great if you could try this out to see if it fixes things for you. Please let me know if it works or not. If not, could you tell me if there is anything in the drupal logs (the one at admin/reports/dblog).

keesee’s picture

The updated version didn't work. I did playing around and figured out what the conflict is.
The conflict is the domain access module. I am not sure if other content access modules don't play nice with this, but can confirm that turn DA off does cause this module to quit working.

egfrith’s picture

Title: XP Pub: Not able to upload images » XP Pub: Not able to upload images when domain access module enabled

Thanks for following up on this.

Just to be clear, I assume you mean that turning the DA module ON causes image_pub to stop working.

It would be great if you could let me know whether you think that this is a bug in image_pub or a configuration issue or bug in domain access. If we can't resolve the issue easily or quickly, I will put some information in the README.

keesee’s picture

Yes, I turned on DA and it stopped working... turned DA off, tested and was successful in uploading pics via xp publishing.

The next step in troubleshooting IMHO is to test this module with other access modules to see if its an access issue in the module. I have a test install I put up to isolate this module (and images) on my server to be sure its wasn't php or apache configs. after installing drupal 6.10 and enabling just images and related modules, it worked. since I just have images and image publish installed, I'll grab a couple of access modules that are popular out there install them and see what happens.

Is anyone else out there using this successfully in conjunction with an access module?
I'll post my results here. thx, egfrith for the support on this.

thx.
J.

egfrith’s picture

The 5.x version of the module works with taxonomy_access and both the XP and gallery remote upload methods, though I haven't yet tested the 6.x version.

Trying out other access modules might give some information, but I wonder if the various access modules are doing quite different things, perhaps limiting the approach?

I suppose my own approach (if I had time right now!) would be to try to debug the particular interaction by inserting watchdog or drupal_set_message statements to report on relevant variables at critical points of the code of both the DA and image_pub modules. Yes, this is crude, and one day I will learn how to use a php debugger!

The other thing that might be worth trying is to use the gallery_remote software, just in case it's only the XP part of the module that's broken, though I would guess that the problem is common to both.

keesee’s picture

The gallery remote is also reporting the same errors on the drupal logs. That filters out issues with the xp_publish component. I also did a test with taxonomy access and content access. Both worked. : ( This issue seems to be limited to just DA.

egfrith’s picture

Title: XP Pub: Not able to upload images when domain access module enabled » Not able to upload images when domain access module enabled
Priority: Critical » Normal

This is good to know. I'm changing the title to reflect this and, for my own sanity, changing the priority to normal, as although I would like to get this fixed one way or another, I don't think it is a problem that will affect a large percentage of image_pub users.

keesee’s picture

I agree. DA is getting more popular but not a big need to many users. Can we arrange some sort of bounty. I am not a developer and would love to get this up and running if your asking price is reasonable.

thx for the support to date.

--
J.

egfrith’s picture

CorpX: I really appreciate your suggestion of offering a bounty, but after some consideration, I've decided that now wouldn't be the right time for me to accept - I have a number of other projects I really need to get on with as well as the day job and the rest of life... and I don't need the money. However, if you would like to advertise the bounty more widely, I would certainly look carefully at any patches that were submitted to image_pub.

The other thing that occurs to me is that perhaps the reason that things aren't working for you is not just the domain_access and image_pub modules, but also the precise configuration of your server. I wonder if it would be most fruitful to hire a contractor and give them access to your server - but this is just a suggestion.

oschuetze’s picture

I have a similar problem - Domain Access is enabled, too. The progressbar of the first image goes up to 100%, but the image is never saved in the filesystem of the website and the second image is never startin the upload.

I've tried to put the URL "/fupload/flash" into the "Special Page Requests" in the domain settings. Nothing happens. Any other idea?

I've imported the newest patches that are posted in the other issues:

Regards,
Oliver

---SWFUpload Instance Info---
Version: 2.2.0 2009-03-25
Movie Name: SWFUpload_0
Settings:
	upload_url:               /fupload/flash
	flash_url:                /sites/all/libraries/swfupload/swfupload.swf?preventswfcaching=1296040610208
	use_query_string:         false
	requeue_on_error:         false
	http_success:             
	assume_success_timeout:   0
	file_post_name:           Filedata
	post_params:              [object Object]
	file_types:               *.png; *.gif; *.jpg; *.jpeg
	file_types_description:   Only images
	file_size_limit:          0
	file_upload_limit:        100
	file_queue_limit:         0
	debug:                    true
	prevent_swf_caching:      true
	button_placeholder_id:    spanUploadButton
	button_placeholder:       Not Set
	button_image_url:         /sites/all/modules/image_fupload/swfupload/select_images.png
	button_width:             36
	button_height:            37
	button_text:              
	button_text_style:        color: #000000; font-size: 16pt;
	button_text_top_padding:  0
	button_text_left_padding: 0
	button_action:            -110
	button_disabled:          false
	custom_settings:          [object Object]
Event Handlers:
	swfupload_loaded_handler assigned:  false
	file_dialog_start_handler assigned: false
	file_queued_handler assigned:       true
	file_queue_error_handler assigned:  true
	upload_start_handler assigned:      true
	upload_progress_handler assigned:   true
	upload_error_handler assigned:      true
	upload_success_handler assigned:    true
	upload_complete_handler assigned:   true
	debug_handler assigned:             true

SWF DEBUG: SWFUpload Init Complete
SWF DEBUG: 
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Build Number:           SWFUPLOAD 2.2.0
SWF DEBUG: movieName:              SWFUpload_0
SWF DEBUG: Upload URL:             /fupload/flash
SWF DEBUG: File Types String:      *.png; *.gif; *.jpg; *.jpeg
SWF DEBUG: Parsed File Types:      png,gif,jpg,jpeg
SWF DEBUG: HTTP Success:           0
SWF DEBUG: File Types Description: Only images (*.png; *.gif; *.jpg; *.jpeg)
SWF DEBUG: File Size Limit:        0 bytes
SWF DEBUG: File Upload Limit:      100
SWF DEBUG: File Queue Limit:       100
SWF DEBUG: Post Params:
SWF DEBUG:                         fieldname=field_gallery_image
SWF DEBUG:                         nodetype=gallery_image
SWF DEBUG:                         PHPSESSID=f3b575751dbbd3c29dbde26b373f9f73
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG: 
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.png; *.gif; *.jpg; *.jpeg
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: Global Post Item: fieldname=field_gallery_image
SWF DEBUG: Global Post Item: nodetype=gallery_image
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /fupload/flash for File ID: SWFUpload_0_0
SWF DEBUG: Global Post Item: PHPSESSID=f3b575751dbbd3c29dbde26b373f9f73
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 7366. Total: 7366