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

but I get this error

Unable to generate Textimage as the preset  is not defined.

#1

Deciphered - November 19, 2008 - 07:31

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

#2

attiks - January 7, 2009 - 11:05

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

Deciphered - January 7, 2009 - 21:06

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

#4

Deciphered - February 4, 2009 - 04:47

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

#5

attiks - February 4, 2009 - 06:29

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

#6

Deciphered - February 4, 2009 - 07:24

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

#7

attiks - February 4, 2009 - 07:47

On

#8

Deciphered - February 4, 2009 - 20:30

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

attiks - February 4, 2009 - 20:36

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

attiks - February 23, 2009 - 14:59

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

Deciphered - May 14, 2009 - 02:00
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.

#12

System Message - May 28, 2009 - 02:10
Status:fixed» closed

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

#13

Steven Mansour - November 29, 2009 - 04:44
Priority:normal» critical
Status:closed» 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.

 
 

Drupal is a registered trademark of Dries Buytaert.