Hello,

I'm using the PIRETS module, i've set everything up and I'm able to fetch listings, but the image cache PIRETS FETCH doesn't seem to be working, the image cache directory is created for the preset but it's empty - the watchdog has these errors:

here was an error saving the new image file sites/default/files/imagecache/house/pirets_img/4068/4068-10.jpeg.

the error type is imagecache.

I have no idea what is the problem or how to try and debug it.

any help would be greatly appreciated.

Idan

Comments

arbel’s picture

I've tried to debug the pirets.imagecache.inc file

this is what I get from the $result = pirets_query_prop_img

Class Object
(
[uri] => http://msx.rets.interealty.com/GetObject.asmx/GetObject?Type=Photo&Resou...
[headers_out] => Array
(
[0] => RETS-Version: RETS/1.5
[1] => Accept: image/jpeg
[2] => Cookie: ASP.NET_SessionId=gnhwm355j1cfrimmtl1nep2u; path=/; HttpOnly,RETS-Session-ID=gnhwm355j1cfrimmtl1nep2u; path=/
[3] => RETS-Request-ID: 1388420514
[4] => ******
)

[data_raw] =>
[headers_raw] => HTTP/1.1 200 OK
Date: Sat, 24 Jul 2010 15:51:07 GMT
Server: Microsoft-IIS/6.0
Cache-Control:private
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
MIME-Version: 1.0
RETS-Version: RETS/1.5
RETS-Server: Interealty-RETS/1.5.247.0
RETS-Request-ID: 1388420514
Content-ID: 813306
Object-ID: 1
Transfer-Encoding: chunked
Set-Cookie: RETS-Session-ID=gnhwm355j1cfrimmtl1nep2u; path=/
Cache-Control: private, max-age=0
Content-Type: text/xml
[error] => OK
[response_code] => 200
[protocol] => HTTP/1.1
[headers] => Array
(
[Date] => Sat, 24 Jul 2010 15:51:07 GMT
[Server] => Microsoft-IIS/6.0
[Cache-Control] => private, max-age=0
[X-Powered-By] => ASP.NET
[X-AspNet-Version] => 2.0.50727
[MIME-Version] => 1.0
[RETS-Version] => RETS/1.5
[RETS-Server] => Interealty-RETS/1.5.247.0
[RETS-Request-ID] => 1388420514
[Content-ID] => 813306
[Object-ID] => 1
[Transfer-Encoding] => chunked
[Set-Cookie] => RETS-Session-ID=gnhwm355j1cfrimmtl1nep2u; path=/
[Content-Type] => text/xml
)

)

the response code is 200, which looks like it's good, but the data_raw appears to be empty (or is it just the print_r display?).

Idan

jbergeron’s picture

What version of Imagecache are you using ?

Are you sure the CCK fields for the images were successfully created, and everything on the configuration checklist is green with a checkmark?

arbel’s picture

Yup, everything looks fine, all items are green, and 1x1 px files are generated. but when I browse the files with the imagecache preset, they are broken urls to the imagecache files that are supposed to be created.

is the [data_raw] supposed to be empty, could this be an issue with the RETS ?

Image cache 6.x-2.0-beta10.

Thanks

Idan

Garrett Albright’s picture

You seem to be somewhat proficient with PHP. Have you played with the PIRETS Devel module at all yet?

arbel’s picture

Hi,

I checked out the PIRETS devel module, and found the problem.

the field corolation was wrong, I selected the ML number as the ML id, that doesn't work.

what does work is the sysinfo field as the ML id.

Thanks for the help.

Idan

Garrett Albright’s picture

Status: Active » Closed (fixed)
justinlevi’s picture

Status: Closed (fixed) » Active
Issue tags: +imagecache, +pirets, +pirets_fetch_image

*Update - This was due to an unrelated .htaccess edit. The images are now loading for me.

I'm having a similar issue. However, If I use the "devel/piretes/image" form, I'm able to fetch the image using the sysid Field value for the property and an offset of 1. However, the pirets_fetch_image function doesn't seem to be called when I create my imagecache preset.

- ImageField 6.x-3.7
- ImageCache 2.0-beta10

Garrett Albright’s picture

Status: Active » Closed (fixed)

So thinkgs are working fine for you then? Reclosing the issue for my own sanity.

onthefritz’s picture

Im having the same issue and cant seem to get it fixed. Is there something Im missing here? Ive tried the Permissions change on the files directory. I dont see an .htaccess file that is restricting anything. Should I see one? Im getting the 1X1 images as well and missing images for those image urls.

Any feedback or help is much appreciated. If Im in the wrong thread, please direct me to the correct one. I researched this topic quite extensively to no avail.

Thanks