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.png

but I get this error

Unable to generate Textimage as the preset  is not defined.

Comments

deciphered’s picture

I will look into this ASAP and get back to you.

attiks’s picture

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));

deciphered’s picture

Sorry, been way overloaded and haven't had any free time lately, but will try to look into this very soon.

deciphered’s picture

Had a quick look and I believe the issue is related to clean-urls being disabled. Will have a fix up shortly.

attiks’s picture

I'm running it on IIS 6 using Isapi Rewrite, error only showed on new images, once generated all was ok.

deciphered’s picture

Where you running with clean-urls turned on or off?

attiks’s picture

On

deciphered’s picture

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.

attiks’s picture

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.

attiks’s picture

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]

deciphered’s picture

Status: Active » Fixed

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.

Status: Fixed » Closed (fixed)

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

steven mansour’s picture

Priority: Normal » Critical
Status: Closed (fixed) » Active

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.

wundo’s picture

Status: Active » Closed (fixed)

Closing