Every now and then I get an error which reads "textimage/image/1144253623 not found" in my logs. The problem is completely intermittent. Is anyone else getting this problem? Can anyone suggest any possible reasons why textimage might fail intermittently?

Comments

quicksketch’s picture

Status: Active » Needs review

My captchas were failing constantly on several pages, so I wouldn't really call it "intermittent"! It looks like the textimage is only being generated if the page is cacheable. This doesn't seem to make much sense, the textimages should be available at all times. Here's a patch to remove the "if ($may_cache)" conditional on creating textimages.

--- textimage-old.module	2006-03-17 01:02:19.000000000 -0600
+++ textimage.module	2006-04-07 13:05:56.000000000 -0500
@@ -51,15 +51,13 @@
 
   $suffix = '';
 
-  if ($may_cache) {
-    if (arg(2)!=null) $suffix='/'.arg(2);
-    $items[] = array(
-      'path' => 'textimage/image'.$suffix, 'title' => t('textimage'),
-      'callback' => '_textimage_image', 
-      'access' => user_access('access textimages'),
-      'type' => MENU_CALLBACK
-    );
-  }
+	if (arg(2)!=null) $suffix='/'.arg(2);
+	$items[] = array(
+		'path' => 'textimage/image'.$suffix, 'title' => t('textimage'),
+		'callback' => '_textimage_image', 
+		'access' => user_access('access textimages'),
+		'type' => MENU_CALLBACK
+	);
 
   return $items;
 }
dan_aka_jack’s picture

Hmm... thanks for the patch but my gut feeling is that we're dealing with two separate issues here. My problem is _definitely_ intermittent and seemingly random. But I'll try your patch and see if that fixes my intermittent problem. Thanks, Jack

wundo’s picture

Status: Needs review » Reviewed & tested by the community

I believe that the problem is really what quicksketch said.

Here it worked. ;)

Thanks quicksketch.

wundo’s picture

Status: Reviewed & tested by the community » Fixed

patch committed.

dan_aka_jack’s picture

good work guys. I've added the patch to my site. Thanks! (Isn't open source software great!)

quicksketch’s picture

Thanks for commiting wundo, works great!

dan_aka_jack’s picture

bother, I'm still getting intermittent failure (as I suggested at the start of this thread, this thread has been dealing with two issues all along). I've started a new issue here:

http://drupal.org/node/58939

Anonymous’s picture

Status: Fixed » Closed (fixed)