Unable to generate Textimage as the preset is not defined.
GiorgosK - November 18, 2008 - 18:03
| Project: | Textimage |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I setup a preset "preset1"
and then I try to visit the page that gives me the image
http:// localhost /sites/default/files/textimage/preset1/hello.pngbut I get this error
Unable to generate Textimage as the preset is not defined.
#1
I will look into this ASAP and get back to you.
#2
I had the same problem, quick fix
change
function textimage_image() {$args = explode('/', str_replace(base_path() . file_directory_path() .'/textimage/', '', $_SERVER[REQUEST_URI]));
to
function textimage_image() {
// $args = explode('/', str_replace(base_path() . file_directory_path() .'/textimage/', '', $_SERVER[REQUEST_URI]));
$args = str_replace('index.php?q=', '', $_SERVER[REQUEST_URI]);
$args = explode('/', str_replace(base_path() . file_directory_path() .'/textimage/', '', $args));
#3
Sorry, been way overloaded and haven't had any free time lately, but will try to look into this very soon.
#4
Had a quick look and I believe the issue is related to clean-urls being disabled. Will have a fix up shortly.
#5
I'm running it on IIS 6 using Isapi Rewrite, error only showed on new images, once generated all was ok.
#6
Where you running with clean-urls turned on or off?
#7
On
#8
Hmm, that's unfortunate, if it was off I would have been able to reproduce it.
I will test some more and see what I can come up with.
#9
Don't spend too much time, I got this error a while back, but never seen it since then, so it might have been my system.
#10
Just updated another site to 6.x-2.1 and the same problem occured.
Clean-url's on, had to apply the fix in #2
BTW: site is running on IIS, so it might be an IIS problem or .htaccess, last rewrite rule is RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
#11
Changes where recently made to that particular section that should fix this issue.
Marking this as fixed, feel free to re-open it if the issue is still present.
Cheers,
Deciphered.
#12
Automatically closed -- issue fixed for 2 weeks with no activity.
#13
Hi, I'm also getting this error on the latest version, Drupal 6.14 here. I'm trying to generate titles for all my nodes using textimage, the preview works and I can create the preset, but going to files/textimage/presetname/12345.jpg yields the error.