When i try to create a gallerie from directory i have this error:

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /galerie/ajax/type_form
StatusText: Internal Server Error

CommentFileSizeAuthor
#8 galerie error.jpg29.21 KBbashirqaasim

Comments

sanjayfernando’s picture

Yes i get the same error. I believe its got something to do with setting the default dir to load images

fomichoff’s picture

Can you please tell the solution to this problem. Thank you!

Подскажите, пожалуйста, решение данной проблемы. Спасибо!

clauded’s picture

subscribe

achalak’s picture

the same issue,
subscribe.

gphilippe’s picture

same problem

Sammichman’s picture

I have the same problem. Any news on this?

cr51gtr’s picture

I have the same problem. Anyone with a fix?

bashirqaasim’s picture

Priority: Normal » Critical
StatusFileSize
new29.21 KB

Same error

eustace’s picture

Problem is caused by use of function file_directory_path() discontinued in Drupal 7. Use file_default_scheme() instead. Open galerie_directory.module and replace all four instances of file_directory_path() with file_default_scheme() and this should solve the problem. I hope the module authors make a permanent fix for all. Good module.

gphilippe’s picture

Thanks but how to make that ?

eustace’s picture

Navigate to the folder where you installed galerie e.g. /your-drupal-root-dir/sites/default/modules/. Locate the folder 'galerie'. Go into it and you should find other folders like 'galerie', 'galerie_directory', 'galerie_flickr', etc. Go into 'galerie_directory' and you should find a file named 'galerie_directory.module'. Open this file in an editor, search for "file_directory_path()" (no quotation marks) and replace with "file_default_scheme()" (no quotation marks). Safe and try to recreate the galerie content type. The error should go away. I hope it works for you.

pimentoski’s picture

thanks eustace, it works perfect for me

jorgecardenas’s picture

The solutions worked, using file_default_scheme() instead of file_directory_path() it just a matter of update the file next release, unfortunately I do not know how to do it otherwise I would have it done.

hbblogger’s picture

Thank you for this solution. How did this get past the testing stage?? I now get a gallery, but it is impossible to see that thumbnails (they are small black marks) and there seems to be no way to set thumbnail size or type in Galerie. (possibly this should be a new bug report?)

jasp255’s picture

My problem is this:
-See the black squares
-See multiple lines: Warning: mkdir(): Permission denied en drupal_mkdir() (línea 2244 de /var/www/includes/file.inc).

I don't know what is the directory that haven't permisions.

SeeSchloss’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Component: Miscellaneous » Code
Assigned: Unassigned » SeeSchloss
Status: Active » Fixed

The file_directory_path() is fixed in git, I'll make a release one of these days (the function was removed after my release of 7.x-1.0).

The black squares thing might have been related, I suppose. A lot of things did not work anymore and now that I am back I am fixing them. When I make sure the update process works, I'll release a new version, that should happen soon.

And there is no way to set thumbnail size, and there will be none (unless someone else submits a good enough patch).

Status: Fixed » Closed (fixed)
Issue tags: -gallerie from directory error

Automatically closed -- issue fixed for 2 weeks with no activity.