Does not load categories

luusl - May 7, 2008 - 07:44
Project:Flex Image
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I've installed and activated the Flex Image module but having some trouble using it. Whenever I open the url ... the flash appled loads and shows the message "Loading Categories...". But this message never disappears. I've waited for hours but nothing ever happens. I have a clean install with Image and Taxonomy enabled. What can cause such a phenomenon?

#1

luusl - May 7, 2008 - 07:46

Forget to replace the placeholder ... by the correct url which should be q=flex_image/open

#2

sysco - May 23, 2008 - 21:58

I have the same problem, by loading the flash module and nothing happens.

#3

valdes1978 - May 27, 2008 - 01:12

Same problem here. What is the fix?

#4

cicciobombolo - May 30, 2008 - 17:29

Hello,
I have the same problem. Please help
Thank you

#5

teodoro - June 3, 2008 - 04:26

Create a Category for images upload and it works

#6

luusl - July 9, 2008 - 09:49

aha, and where can I do that?

#7

shannon.haworth - August 23, 2008 - 20:54

I installed and attempted to use this module and ran into several issues. All of which I was able to work around.

Issue #1: The application loads with a pop-up that says "Loading categories..." and hangs.

Troubleshooting:
I have the debug version of the flash player installed on my browser. When I first tried the url http://hostname//drupal/?q=flex_image/open I received a ActionScript error popup (you have to have the debug version of flash player installed to view ActionScript errors). The error message was:

An ActionScript error has occurred:
ArgumentError: Error #1063: Argument Count Mismatch on folders/load_folders_errorHandler(). Expected 0, got 1.
at flash.events ...

I pressed "Continue" and the flex application displayed a pop-up saying "Loading categories..." and did not progress any further.

On a hunch I fired up a network sniffer and saw that the flex application was calling the following URL:
http://localhost/drupal/flex_image/folders

This URL resulted in a 404 error which caused the ill-fated attempt to invoke the ActionScript error handler.

Fix #1: Added the following to my apache configuration (don't forget to restart):
RewriteEngine on
RewriteRule ^/drupal/flex_image/(.*)$ /drupal/index.php?q=flex_image/$1 [R]

This is a rewrite rule that causes the request "http://localhost/drupal/flex_image/folders" to be converted into "http://localhost/drupal/index.php?q=flex_image/folders
" which on my installation of Drupal is valid.

This fix prevented the 404 error, which in turn prevented the ActionScript error. Finally the "Loading categories..." pop-up disappeared.

Issue #2:
When the "Loading Categories..." dialog is removed it is replaced with an alert box saying "No category of the type Image was found. Cannot start".

Troubleshooting:

On another hunch (I don't know PHP and have only used drupal for about an hour) I decided that the comment about Categories may be related to the installation dependency for the taxonomy module. I created a vocabulary of the type "images" and it resolved this issue.

Fix #2
Navigated to: Administer->Content Management->Taxonomy
Clicked on the "Add Vocabulary" tab.
For vocabulary name I entered "Upload"
For content type I clicked "image"

The application now loads.

Hope this helps someone.

#8

luusl - September 27, 2008 - 10:49

Issue #1 was exacly my problem, so applying fix #1 successfully solved this. Tanks!

 
 

Drupal is a registered trademark of Dries Buytaert.