Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: cno_image_order
Textpattern 4.5.0 reports this errror
internal_error "Invalid argument supplied for foreach()"
Offline
Re: cno_image_order
uli wrote #265318:
A word of warning, though: I’d not hand over a TXP backend with cno_io to a hasty client, the UX is rather poor. Better than nothing, but requires sensitivity and patience.
Spot on … but it works … for now (4.5.7). It’s a pity the plugin isn’t developed anymore because I think it’s very uselful. Especially for sites with a lot of images and categories. Because what’s the alternative? An image tag with 70 ID’s in the right order … :((
Last edited by RedFox (2015-08-20 07:27:58)
Offline
#39 2015-08-20 12:06:07
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: cno_image_order
tye wrote #294238 (in his separate topic):
I don’t get any images to sort – just an Image Sequence tab with no images…. is there another step to the install?
RedFox wrote #265338:
Arggg … no images … :(
[…]
but it works … for now (4.5.7)
Joop, did you happen to repair the plugin, or does it work on a separate installation? And most of all: Can you help tye with his same problem? Thanks!
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: cno_image_order
uli wrote #294251:
Joop, did you happen to repair the plugin, or does it work on a separate installation? And most of all: Can you help tye with his same problem? Thanks!
It just works … with Txp 4.5.7 … cno_image_order 0.2a … Chrome 44.x
I only tweaked the CSS of cno_image_order … see // redfox
:
<style type="text/css" media="screen">
#wrapper {
width: 780px;
margin: 0 auto;
}
#navigation {
overflow: hidden;
font-size: 9px;
padding-left: 0; // redfox
}
ul#navigation li ul li {
float: left;
}
ul#navigation ul {
clear: left;
}
#navigation li, #navigation ul {
margin: 0;
padding: 0;
list-style: none;
}
#navigation .category {
// float: left; // redfox
clear: both; // redfox
border-bottom: 1px solid #DDD;
margin-right: 10px;
margin-bottom: 30px;
}
#navigation .category span {
font-weight: bold;
letter-spacing: 0.1em;
display: block;
background: #FFFF99;
text-transform: uppercase;
padding: 3px;
border-bottom: 5px solid #fff;
clear: both; // redfox
}
#navigation .category span a {
display: block;
text-decoration: underline;
}
#navigation .category span a:hover {
text-decoration: none;
}
#navigation .category li span {
text-decoration: none;
font-weight: normal;
letter-spacing: normal;
background: #eee;
text-transform: none;
border-bottom: 2px solid #fff;
cursor: move;
}
#wrapper #navigation .drop_area {
background: #FFCC33;
text-transform: uppercase;
}
.toggler {
cursor: pointer;
}
#dragHelper {
color: #000;
padding: 2px;
display: block;
background: #FFCC33;
font-size: 10px;
border-top: 2px solid #ffdf80;
border-bottom: 2px solid #ffdf80;
}
.update {
display: block;
text-align: center;
width: 771px;
background: #80f769;
border-bottom: 2px solid #67c755;
border-top: 2px solid #67c755;
margin-bottom: 10px;
padding: 5px 0;
}
</style>
Last edited by RedFox (2015-08-20 17:49:56)
Offline
Re: cno_image_order
Thanks Uli / Redfox – I wonder if its a php version issue… I’m getting errors in Debug mode. I’m using php 5.3.29.
OK – I fixed it, my images weren’t in a category so this line was returning an error – I’ll play around and see if I can fix it (or if it needs a fix)
$categorys = getRows("select * from ".safe_pfx('txp_category')." where name != 'root' and type='image'");
Plugin works great – thanks :)
Offline
#42 2015-08-22 00:08:44
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: cno_image_order
wornout wrote #265401:
internal_error "Invalid argument supplied for foreach()
Had that error today on an almost vanilla installation, and like tye wrote one post above, it was all caused by a) debug mode b) having no images and c) no categories for them. All problems vanished after all that was put in place and connected. The plugin still works flawless.
Thanks, tye, for getting to the bottom of it :)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline