Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
image thumbnails error
i’m building a new version of a site. i made a fresh install, and then i imported some key tables like textpattern, and the images. i thought this would give me a cleaner site.
in the images tab of my new site, i get this error:
Notice: Undefined variable: thumb_w in C:\xampp\htdocs\mysite\textpattern\include\txp_image.php on line 191
then below it the list of images appears, many have thumbnails. uploading a new image and trying to create a thumbnail is unsuccessful.
line 191 says: ($thumb_w ? “width=’$thumb_w’ height=’$thumb_h’” : ‘’). ‘ />’;
Last edited by mrtunes (2009-12-29 01:52:48)
Offline
Re: image thumbnails error
Did you import the table from a Txp 4.2.0 site? thumb_w
was introduced in that version.
Code is topiary
Offline
Re: image thumbnails error
jsoo wrote:
Did you import the table from a Txp 4.2.0 site?
thumb_w
was introduced in that version.
no, it was a 4.0.8 on a live site. should i upgrade on the live domain and then re-export the tables?
Offline
Re: image thumbnails error
mrtunes wrote:
no, it was a 4.0.8 on a live site. should i upgrade on the live domain and then re-export the tables?
I expect that would fix the issue.
Code is topiary
Offline
Re: image thumbnails error
ok i upgraded the main site to 4.2.0 – re-exported the txp_image table, and imported it to localhost. nothing changed unfortunately
Offline
Re: image thumbnails error
Does the txp_image table indeed have image_w and image_h sorry, thumb_w and thumb_h columns after import?
Any errors showing in Diagnostics?
Last edited by jsoo (2010-01-07 15:58:32)
Code is topiary
Offline
Re: image thumbnails error
jsoo wrote:
ok i took better note of these specific columns, and it looks like i didn’t import it well last time. now it’s all resolved. thank you.Does the txp_image table indeed have image_w and image_h columns after import?
Any errors showing in Diagnostics?
something i noticed along the way of this redesign i’m doing – the new 4.2.0 gives some fairly scary looking errors after you upgrade your site. for someone not expecting it, it looks like they’ve corrupted the entire system, but it goes away after the second refresh.
Last edited by mrtunes (2009-12-29 20:37:59)
Offline
#8 2010-01-07 00:31:44
- korpulente
- Member
- Registered: 2009-01-29
- Posts: 36
Re: image thumbnails error
I get the exact same PHP error, after exporting my txp_image table from one 4.2.0 install into another.
The txp_image table doesn’t have any image_w or image_h columns. However there are a thumb_w and thumb_h column in txp_prefs…
How did you manage to fix it, mrtunes?
Offline
Re: image thumbnails error
well i don’t really know much about how 4.2.0 works, but if it’s properly upgraded those tables should be there. can you check the bottom of your admin panel to confirm you are indeed 4.2.0?
Offline
#10 2010-01-07 00:58:19
- korpulente
- Member
- Registered: 2009-01-29
- Posts: 36
Re: image thumbnails error
Yes, this is indeed Textpattern 4.2.0. And no updates available. :-/
Offline
Re: image thumbnails error
can you go into phpmyadmin, click on the txp_images table, scroll to the far right and take a screenshot?
actually, don’t bother doing that.
but here’s what mine looks like:
Last edited by mrtunes (2010-01-07 01:04:47)
Offline
#12 2010-01-07 01:11:58
- korpulente
- Member
- Registered: 2009-01-29
- Posts: 36
Re: image thumbnails error
That’s weird. I don’t seem to have those columns, thumb_w and thumb_h, in txp_image.
Offline