Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-25 12:56:20

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

"undefined variable: thing" ...when trying to generate image code

For certain images, not all, uploaded in the images panel everything seems fine except if I try and generate output code using either the “textile” or “xhtml” formats (the “textpattern” format works fine), I get this error message in the popup code generator: <code>Notice: Undefined variable: thing in /home/xxxxxx/public_html/textpattern/include/txp_tag.php on line 741</code>

Not that I would know what it meant anyway, but I went to that line and found: <code>return tdb($thing);</code>

The one thing I can say is the site was once sitting in a subdirectory and then moved to the root, and after that a few of the images were replaced using the replace image upload. Unfortunately I don’t recall which images it was and thus if there is a connection between those and the ones I’m experiencing this problem with.

I’ll try reuploading to see if there’s anything noticeable, any idea otherwise?

Site is running in “live” mode and there’s no errors in the diagnostics, but here they are anyway…

EDIT: Removed.

Last edited by Destry (2006-07-25 21:29:24)

Offline

#2 2006-07-25 21:32:27

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: "undefined variable: thing" ...when trying to generate image code

Solved.

As it turns out, certain pictures had quote marks around part of the text in the alt text attribute field. The Texpattern image output code was being generated fine because that doesn’t include the alt text attribute, the other two code formats do. Once the quotes were removed, the error disappeared and all three work as they should.

Yes, this makes perfect sense now, but it was only by a luck that I discovered the problem.

Last edited by Destry (2006-07-25 21:36:33)

Offline

#3 2006-07-26 00:55:25

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: "undefined variable: thing" ...when trying to generate image code

This should likely be fixed. I’ll check svn, see if the problem is still there.

Offline

#4 2006-07-30 05:14:54

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: "undefined variable: thing" ...when trying to generate image code

The problem is still there, but will shortly be fixed. :)

Offline

Board footer

Powered by FluxBB