Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#151 2012-02-01 06:56:30

lithium002
Member
Registered: 2011-04-29
Posts: 25

Re: smd_thumbnail: manage multiple thumbnails of your images

I get the following errors when trying to create a thumbnail:

Warning: getimagesize(/images/33t.png) [function.getimagesize]: failed to open stream: No such file or directory in /textpattern/lib/class.thumb.php on line 87

Notice: Undefined index: image in /textpattern/lib/class.thumb.php on line 232

Warning: imagecopyresampled() expects parameter 2 to be resource, null given in /textpattern/lib/class.thumb.php on line 232

Notice: Undefined index: image in /html/textpattern/lib/class.thumb.php on line 277

Warning: imagedestroy() expects parameter 1 to be resource, null given in /textpattern/lib/class.thumb.php on line 277

I’m running PHP 5.3 and Textpattern 4.4.1. I feel like there might be some sort of permission issue but I haven’t been able to figure out what’s happening. Any help?

Offline

#152 2012-02-01 08:10:30

wornout
Member
From: Italy
Registered: 2009-01-20
Posts: 256
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

I’ve got the same problem.
I the tools/pref panel, do you create thumbnail from thumbnail?
Try changing that: create thumbnail from full size image.

Offline

#153 2012-02-02 03:49:32

lithium002
Member
Registered: 2011-04-29
Posts: 25

Re: smd_thumbnail: manage multiple thumbnails of your images

Yes!

That was it! Woohoo!

Awesome plugin.

Offline

#154 2012-02-12 19:38:12

lonelytraveller
Member
From: Firenze, Italy
Registered: 2008-04-04
Posts: 45

Re: smd_thumbnail: manage multiple thumbnails of your images

@rossharvey I’m using smd_thumbnail together with Stef’s wonderful smd_featured plug-in and this is the code I use to generate my slider:

<txp:smd_featured>
           <img src="<txp:smd_thumbnail type='cover' display='url' limit='1' id='<txp:custom_field name="article_image" />' />" title="#htmlcaption" /> 
      </txp:smd_featured>

Tht’s just what I need in my case, but you can easily adapt it to your needs. The only issue I noticed is that I need to specify the id parameter or else the image won’t show up, I don’t know if it’s the standard behaviour.

Offline

#155 2012-03-05 22:05:32

lozmatic
Member
From: Melbourne, Australia
Registered: 2006-08-27
Posts: 259
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

Hi,

I’m getting this error:

Tag error: <txp:smd_thumbnail /> -> Textpattern Notice: Unknown image. on line 1262
textpattern/lib/txplib_misc.php(653) : eval()'d code:1262 trigger_error()
textpattern/publish.php:1188 smd_thumbnail()
textpattern/publish.php:1100 processTags()
textpattern/publish/taghandlers.php:2261 parse()
textpattern/publish.php:1188 body()
textpattern/publish.php:1100 processTags()
textpattern/lib/txplib_misc.php:1706 parse()
textpattern/publish.php:937 parse_form()
textpattern/publish.php:964 doArticle()
textpattern/publish.php:592 parseArticles()

I’m running 4.4.1 and PHP version: 5.2.17.

The plugin works in the Image tab perfectly but get the error above when using <txp:smd_thumbnail />.

Any ideas?

I’ve got the plugin running on other websites perfectly.

Offline

#156 2012-03-05 22:11:13

wornout
Member
From: Italy
Registered: 2009-01-20
Posts: 256
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

Can you post the code that generates this error?

Offline

#157 2012-03-05 22:56:48

lozmatic
Member
From: Melbourne, Australia
Registered: 2006-08-27
Posts: 259
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

Hi, do you mean the HTML in the form?

Offline

#158 2012-03-05 23:02:55

wornout
Member
From: Italy
Registered: 2009-01-20
Posts: 256
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

Yes, witch is the Textpattern code where you put smd:thumbnail tag?

Offline

#159 2012-03-05 23:23:30

lozmatic
Member
From: Melbourne, Australia
Registered: 2006-08-27
Posts: 259
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

Here it goes:

<div class="body-news">
<div style="float: left; width: 600;"><h1><txp:title /></h1></div>
<div style="float: right" class="blog-right-heading"><p class="header">About</p></div>
<div class="body-news-main">
<div class="sub-title"><txp:category1 link="1" title="1" section="blog" /> <span class="color-lightgreen">|</span>
<span class="color-verylightgreen"><txp:posted format="%b %d, %Y" /></span> <span class="color-lightgreen">|
</span> <span class="color-verylightgreen"><txp:author link="0" /></span></div>
<div class="news-item">
<div class="holder">
<div id="pane2" class="scroll-pane">
<strong><txp:excerpt /></strong>
<txp:smd_thumbnail />
<txp:body />
</div>
</div>
</div>
</div>
<div class="blog-extra">
<txp:output_form form="v1.code.blog.about"/>
<br />
<div class="blog-right-heading"><p class="header">categories</p></div>
<txp:category_list break="" wraptag="" parent="blog" exclude="blog">
<p><txp:category title="1" link="1" /></p>
</txp:category_list>
<br />
</div>

Grazie :)

Offline

#160 2012-03-05 23:46:09

wornout
Member
From: Italy
Registered: 2009-01-20
Posts: 256
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

Same question! Answered here and next!
smd:thumbnail doesn’t accept article_image native. You’ve got to hard code it!

Offline

#161 2012-03-06 03:02:33

lozmatic
Member
From: Melbourne, Australia
Registered: 2006-08-27
Posts: 259
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

That worked – thanks!

I should have fgured it out as I’ve used the plugin before.

I’ve hardcoded the ID using smd_macro (another awesome ‘smd’ plugin) :)

Offline

#162 2012-03-07 21:29:36

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: smd_thumbnail: manage multiple thumbnails of your images

On a new site, I have this problem :

  • Creating thumbnails from the image window work without problem
  • Batch creating thumbnails from the tools/prefs tab don’t work. When I click on create, the counter give the max number of images to transform, and it’s all …

I don’t understand why the app give differents permissions for 3 types of thumbnails created at the same time :

  • rwx—S—- (type = carre_100)
  • rwxr-s-r-x (type = largeur_350 and largeur_570)

smd_thumbnail 0.22 and TXP 4.4.1 (r3673)

Offline

#163 2012-03-08 13:13:25

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: smd_thumbnail: manage multiple thumbnails of your images

It works if I go back to a revision before the AJAX changes.

It seems that some plugins will cause problems with the release of TXP 4.5

Offline

#164 2012-03-08 14:59:50

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,452
Website GitHub

Re: smd_thumbnail: manage multiple thumbnails of your images

jpdupont wrote:

It works if I go back to a revision before the AJAX changes.

Yes, the plugin uses AJAX to do that bit, and Txp 4.5.0 will require the plugin’s type to change from 1 to type 5 to support that. Of course without the new version of Plugin Composer that I’m running, you won’t be able to do that from the Textpattern interface.

You will have to go into phpMyAdmin and change the plugin’s type column to 5 and it’ll work again.

It’s going to cause a bit of headache for plugins like this because the next version of the plugin won’t have any functional changes but will just have a different ‘type’ and people who expect the plugin to work in 4.4.1 and below may not be able to run the new version because 4.4.1 doesn’t know what a type 5 plugin is. Quite what it’ll do when it encounters a new plugin type is unclear. It might refuse to run at all or might just assume it’s type 0 (public only) which’ll probably break things for any admin side plugins.

Last edited by Bloke (2012-03-08 15:03:35)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#165 2012-03-08 15:05:07

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: smd_thumbnail: manage multiple thumbnails of your images

Thanks Stef, I will try this in phpMyAdmin.

Offline

Board footer

Powered by FluxBB