[11-Feb-2014 08:20:37] PHP Warning: file_get_contents(/xxxx/xxxxx/public_html/xxx/assets/components/gallery/cache/_xxx_xxxx_ public_html_xxx_.3f2a6591ef3a3e72b1cd304653f331e1.jpeg) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in /home/xxxx/public_html/xxx/core/components/gallery/processors/web/phpthumb.php on line 150
_home_xxx_public_html_xxx_assets__gallery_3_197.jpg.3f2a6591ef3a3e72b1cd304653f331e1
<div class="slider-wrapper [[!If? &subject=`[[*nivoTheme]]`
&operand=`[[$nivoDefaultCss]]`
&then=`theme-default`]]
[[!If? &subject=`[[*nivoTheme]]`
&operand=`[[$nivoOrmanCss]]`
&then=`theme-orman`]]
[[!If? &subject=`[[*nivoTheme]]`
&operand=`[[$nivoPascalCss]]`
&then=`theme-pascal`]]
[[!If? &subject=`[[*nivoTheme]]`
&operand=`[[$nivoStylePackCss]]`
&then=`theme-style-pack`]]">
<div class="ribbon"></div>
<div id="slider" class="nivoSlider"
style="width:[[*nivoImageWidth]]px;
height:[[*nivoImageHeight]]px;
margin:0px auto;">
[[!Gallery? &album=`[[*nivoAlbum]]`
&thumbTpl=`nivoRowTpl`
&thumbWidth=`[[*nivoImageWidth]]`
&thumbHeight=`[[*nivoImageHeight]]`
&thumbProperties=`{"iar":"1"}`
&thumbZoomCrop=`0`]]
</div>
</div>
<div id="htmlcaption" class="nivo-html-caption"></div>
[[If?
&subject=`[[+url]]`
&operator=`empty`
&then=
`<img src="[[+thumbnail]]" alt="[[+name]]" title="[[+description]]"
style="width:[[*nivoImageWidth]]px;
height:[[*nivoImageHeight]]px;" />`
&else=
`<a href="[[+url]]" >
<img src="[[+thumbnail]]" alt="[[+name]]" title="[[+description]]"
style="width: [[*nivoImageWidth]]px;
height: [[*nivoImageHeight]]px;" /></a>`]]
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider({
pauseTime:[[*nivoTimer]],
effect:'[[*nivoEffect]]',
controlNav:[[*nivoControlNav]],
[[*nivoCaption]]});
var arrowHeight = $(".nivo-prevNav").height();
var sliderHeight = $("#slider").height();
var arrowPos = (sliderHeight/2)-(arrowHeight/2);
var sliderWidth = $("#slider").width();
var nivoImages = $(".nivo-controlNav").width();
var imageWidth = $("#slider img").width();
var imageHeight = $("#slider img").height();
var indicatorsPos = (sliderWidth/2)-(nivoImages/2);
$(".nivo-directionNav a").css({'top':arrowPos+"px"});
$(".nivo-controlNav").css({'left':indicatorsPos+"px"});
$(".nivoSlider img").css({'width':sliderWidth+"px",'height':sliderHeight+"px"});
});
</script>
<head> <title>[[++site_name]] - [[*pagetitle]]</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> [[$links]] [[*nivoTheme]] </head> <body> <div id = 'wrapper'> [[$header]] [[*nivoGallery]] [[$nivoScripts]]
I migrated from phpThumbof to pThumb.
I don't really know the causes why my nivo slider images is so slow. I don't know if the problem is gallery or the pThumb.
use something like getCache with a separate cache partition and have it update every couple hours or whatever. As it is, those uncached snippets have to be run every time somebody hits your page.
http://assumptiondavao.edu.ph/acd/assets/components/gallery/connector.php?action=web/phpthumb&w=776&h=324&zc=0&far=C&q=90&iar=1&src=%2Facd%2Fassets%2Fgallery%2F3%2F196.jpg
Server: nginx/1.4.5 Date: Thu, 13 Feb 2014 02:46:41 GMT Content-Type: text/html; charset=UTF-8 Content-Length: 5427 Connection: keep-alive Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Vary: Accept-Encoding Content-Encoding: gzip
[[Gallery? &album=`[[*nivoAlbum]]` &thumbTpl=`nivoRowTpl`]]
[[If?
&subject=`[[+url]]`
&operator=`empty`
&then=
`<img src="[[+image_absolute:pthumb=`&w=[[*nivoImageWidth]]&h=[[*nivoImageHeight]]&zc=0&iar=1`]]" alt="[[+name]]" title="[[+description]]"
style="width:[[*nivoImageWidth]]px;
height:[[*nivoImageHeight]]px;" />`
&else=
`<a href="[[+url]]" >
<img src="[[+image_absolute:pthumb=`&w=[[*nivoImageWidth]]&h=[[*nivoImageHeight]]&zc=0&iar=1`]]" alt="[[+name]]" title="[[+description]]"
style="width: [[*nivoImageWidth]]px;
height: [[*nivoImageHeight]]px;" /></a>`]]
If you mean make your urls more seo friendly and stop using the 'connector.php' then change the pthumb setting 'pthumb.use_ptcache' to 'Yes'.
another thing, can I consider this thing a problem?
http://assumptiondavao.edu.ph/acd/assets/components/gallery/connector.php?action=web/phpthumb&w=776&h=324&zc=0&far=C&q=90&iar=1&src=%2Facd%2Fassets%2Fgallery%2F3%2F196.jpg