Debugging card generator

You hit this file from the front end
Listing ID is: 1904 - which is there(!), not empty and numerical
Setting security _GET whitelist: ('id','lang','header','size','sticker','extended','password','feature')
No lang is set so defaulting to _en_GB
Size is set to:
Feature is set to:
Eco-sold is set to:

Setting some basic variables

$siteurlhttps://www.sapphireproperties.co.uk
$basepath/var/www/vhosts/sapphireproperties.co.uk/httpdocs
$template_name (as constructed from db set name, plus any other parameters)sapphire
Because we have a lang set, I have reconstructed the siteurl (for the QR mostly) to: https://www.sapphireproperties.co.uk
Query to get class name succeeded - It's: For sale
Query to get property details succeeded

Starting descriptions

Let's have a closer look at the EN description BEFORE processing:

<p>Here we have a great ground-floor apartment for sale in the village of Formentera del Segura. The accommodation consists of two bedrooms (both with fitted wardrobes), a large family bathroom (bath hand basin and toilet), a spacious lounge-diner with air-conditioning, separate utility-room, with Galeria, plus a well-appointed kitchen with breakfast bar. Leading off the lounge you have a good-size covered terrace which overlooks the park area to the front. The communal pool is just yards away. The apartment will be offered furnished - Outstanding value for money!</p>

...and AFTER processing:

Here we have a great ground-floor apartment for sale in the village of Formentera del Segura. The accommodation consists of two bedrooms (both with fitted wardrobes), a large family bathroom (bath hand basin and toilet), a spacious lounge-diner with air-conditioning, separate utility-room, with Galeria, plus a well-appointed kitchen with breakfast bar. Leading off the lounge you have a good-size covered terrace which overlooks the park area to the front. The communal pool is just yards away. The apartment will be offered furnished - Outstanding value for money!
No ES desc detected
No FR desc detected
No NL desc detected
No RU desc detected
No SV desc detected

Checking for two types of special English print desc (print, or short)..., that would trump the desc above...

No special print_desc was found
No special print_desc_es description was found

Checking prices

We have the current price (69995) - Checking for old prices...

The highest retrieved by the $listing->get_highestPrice() function is:


Checking features

We don't have any features on this site, so skipping that whole section

Checking images

Running query to see if this listing has a pdf_images_order field

...which it does NOT, so we'll just use SQL to get the first six images like normal

  • [External listing so using medium]: https://s3.amazonaws.com/clients.sapphire.listingphotos/medium_1904_7689_p1020408_640x480.jpg
  • [External listing so using medium]: https://s3.amazonaws.com/clients.sapphire.listingphotos/medium_1904_7689_p1020411_640x480.jpg
  • [External listing so using medium]: https://s3.amazonaws.com/clients.sapphire.listingphotos/medium_1904_7689_p1020415_640x480.jpg
  • [External listing so using medium]: https://s3.amazonaws.com/clients.sapphire.listingphotos/medium_1904_7689_p1020416_640x480.jpg
  • [External listing so using medium]: https://s3.amazonaws.com/clients.sapphire.listingphotos/medium_1904_7689_p1020418_640x480.jpg
  • [External listing so using medium]: https://s3.amazonaws.com/clients.sapphire.listingphotos/medium_1904_7689_p1020419_640x480.jpg

  • NOTE: images.upload.inc.php is set to use Amazon S3 in configuration
  • S3 class successfully included

  • Let's download: medium_1904_7689_p1020408_640x480.jpg - Local check says we do NOT have that file
  • allow_url_fopen is available so using file_get_contents to get https://s3.amazonaws.com/clients.sapphire.listingphotos/medium_1904_7689_p1020408_640x480.jpg
  • We received a good image, at least $imagecontent is not false!
  • Arrived at the saving part ready to use name: medium_1904_7689_p1020408_640x480.jpg
  • fopen the file: /var/www/vhosts/sapphireproperties.co.uk/httpdocs/images/listing_photos/temp/medium_1904_7689_p1020408_640x480.jpg,wb
  • fwrite the file with: Resource id #20, $imagecontent (Massive long string! lol
  • Let's download: medium_1904_7689_p1020411_640x480.jpg - Local check says we do NOT have that file
  • allow_url_fopen is available so using file_get_contents to get https://s3.amazonaws.com/clients.sapphire.listingphotos/medium_1904_7689_p1020411_640x480.jpg
  • We received a good image, at least $imagecontent is not false!
  • Arrived at the saving part ready to use name: medium_1904_7689_p1020411_640x480.jpg
  • fopen the file: /var/www/vhosts/sapphireproperties.co.uk/httpdocs/images/listing_photos/temp/medium_1904_7689_p1020411_640x480.jpg,wb
  • fwrite the file with: Resource id #22, $imagecontent (Massive long string! lol
  • Let's download: medium_1904_7689_p1020415_640x480.jpg - Local check says we do NOT have that file
  • allow_url_fopen is available so using file_get_contents to get https://s3.amazonaws.com/clients.sapphire.listingphotos/medium_1904_7689_p1020415_640x480.jpg
  • We received a good image, at least $imagecontent is not false!
  • Arrived at the saving part ready to use name: medium_1904_7689_p1020415_640x480.jpg
  • fopen the file: /var/www/vhosts/sapphireproperties.co.uk/httpdocs/images/listing_photos/temp/medium_1904_7689_p1020415_640x480.jpg,wb
  • fwrite the file with: Resource id #24, $imagecontent (Massive long string! lol
  • Let's download: medium_1904_7689_p1020416_640x480.jpg - Local check says we do NOT have that file
  • allow_url_fopen is available so using file_get_contents to get https://s3.amazonaws.com/clients.sapphire.listingphotos/medium_1904_7689_p1020416_640x480.jpg
  • We received a good image, at least $imagecontent is not false!
  • Arrived at the saving part ready to use name: medium_1904_7689_p1020416_640x480.jpg
  • fopen the file: /var/www/vhosts/sapphireproperties.co.uk/httpdocs/images/listing_photos/temp/medium_1904_7689_p1020416_640x480.jpg,wb
  • fwrite the file with: Resource id #26, $imagecontent (Massive long string! lol
  • Let's download: medium_1904_7689_p1020418_640x480.jpg - Local check says we do NOT have that file
  • allow_url_fopen is available so using file_get_contents to get https://s3.amazonaws.com/clients.sapphire.listingphotos/medium_1904_7689_p1020418_640x480.jpg
  • We received a good image, at least $imagecontent is not false!
  • Arrived at the saving part ready to use name: medium_1904_7689_p1020418_640x480.jpg
  • fopen the file: /var/www/vhosts/sapphireproperties.co.uk/httpdocs/images/listing_photos/temp/medium_1904_7689_p1020418_640x480.jpg,wb
  • fwrite the file with: Resource id #28, $imagecontent (Massive long string! lol
  • Let's download: medium_1904_7689_p1020419_640x480.jpg - Local check says we do NOT have that file
  • allow_url_fopen is available so using file_get_contents to get https://s3.amazonaws.com/clients.sapphire.listingphotos/medium_1904_7689_p1020419_640x480.jpg
  • We received a good image, at least $imagecontent is not false!
  • Arrived at the saving part ready to use name: medium_1904_7689_p1020419_640x480.jpg
  • fopen the file: /var/www/vhosts/sapphireproperties.co.uk/httpdocs/images/listing_photos/temp/medium_1904_7689_p1020419_640x480.jpg,wb
  • fwrite the file with: Resource id #30, $imagecontent (Massive long string! lol

Grabbing the template at: templates/tpl.window_card_sapphire.php
Template included OK

Checking cache for filename: /var/www/vhosts/sapphireproperties.co.uk/httpdocs/pdf/pdf_cache/3783Q.pdf

File does not exist in cache

Checking SESSION for UserID - apparently not set?!


You did not arrive from admin so the final header would be: /pdf/pdf_cache/3783Q.pdf
Logging message to general log: "Printed window card for Ref: 3783Q (ID 1904) and sending the $userID: "
Finished in 4.014 seconds
Exiting due to debug true (ie not returning the pdf!)