Debugging card generator

You hit this file from the front end
Listing ID is: 5202 - 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>A beautiful new development of three bedroom townhouses in Bigastro, a small town in the Vega Baja, just South of Alicante. The properties consists of three double bedrooms (one on the ground-floor and two on the first-floor, both with access to a terrace) including fitted wardrobes, three bathrooms (en-suite to the master bedroom), separate fully fitted modern kitchen with access to a front patio and spacious open-plan living/dining room, leading to a large terrace (part of which is covered). The properties also boast an incredible rooftop solarium to enjoy the Spanish sunshine from and offer the option of a two-car garage in the basement. The development benefits from a communal swimming pool and landscaped gardens, to which all properties have direct access.</p><p>Bigastro has all of the necessary amenities one could need on a daily basis including shops/bars/restaurants/supermarkets, which make it the perfect place of residence for many. It stands out for its excellent connections via the AP-7 motorway, which puts it just fifteen minutes from the beaches of Guardamar and thirty minutes from Alicante Airport.</p>

...and AFTER processing:

A beautiful new development of three bedroom townhouses in Bigastro, a small town in the Vega Baja, just South of Alicante. The properties consists of three double bedrooms (one on the ground-floor and two on the first-floor, both with access to a terrace) including fitted wardrobes, three bathrooms (en-suite to the master bedroom), separate fully fitted modern kitchen with access to a front patio and spacious open-plan living/dining room, leading to a large terrace (part of which is covered). The properties also boast an incredible rooftop solarium to enjoy the Spanish sunshine from and offer the option of a two-car garage in the basement. The development benefits from a communal swimming pool and landscaped gardens, to which all properties have direct access. Bigastro has all of the necessary amenities one could need on a daily basis including shops/bars/restaurants/supermarkets, which make it the perfect place of residence for many. It stands out for its excellent connections via the AP-7 motorway, which puts it just fifteen minutes from the beaches of Guardamar and thirty minutes from Alicante Airport.
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 (169000) - 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_5202_12251_piloto.jpg
  • [External listing so using medium]: https://s3.amazonaws.com/clients.sapphire.listingphotos/medium_5202_12251_communal20pool.jpg
  • [External listing so using medium]: https://s3.amazonaws.com/clients.sapphire.listingphotos/medium_5202_12251_properties20tipo20a.jpg
  • [External listing so using medium]: https://s3.amazonaws.com/clients.sapphire.listingphotos/medium_5202_12251_mg_3576.jpg
  • [External listing so using medium]: https://s3.amazonaws.com/clients.sapphire.listingphotos/medium_5202_12251_mg_3572.jpg
  • [External listing so using medium]: https://s3.amazonaws.com/clients.sapphire.listingphotos/medium_5202_12251_mg_3573.jpg

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

  • Let's download: medium_5202_12251_piloto.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_5202_12251_piloto.jpg
  • We received a good image, at least $imagecontent is not false!
  • Arrived at the saving part ready to use name: medium_5202_12251_piloto.jpg
  • fopen the file: /var/www/vhosts/sapphireproperties.co.uk/httpdocs/images/listing_photos/temp/medium_5202_12251_piloto.jpg,wb
  • fwrite the file with: Resource id #24, $imagecontent (Massive long string! lol
  • Let's download: medium_5202_12251_communal20pool.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_5202_12251_communal20pool.jpg
  • We received a good image, at least $imagecontent is not false!
  • Arrived at the saving part ready to use name: medium_5202_12251_communal20pool.jpg
  • fopen the file: /var/www/vhosts/sapphireproperties.co.uk/httpdocs/images/listing_photos/temp/medium_5202_12251_communal20pool.jpg,wb
  • fwrite the file with: Resource id #26, $imagecontent (Massive long string! lol
  • Let's download: medium_5202_12251_properties20tipo20a.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_5202_12251_properties20tipo20a.jpg
  • We received a good image, at least $imagecontent is not false!
  • Arrived at the saving part ready to use name: medium_5202_12251_properties20tipo20a.jpg
  • fopen the file: /var/www/vhosts/sapphireproperties.co.uk/httpdocs/images/listing_photos/temp/medium_5202_12251_properties20tipo20a.jpg,wb
  • fwrite the file with: Resource id #28, $imagecontent (Massive long string! lol
  • Let's download: medium_5202_12251_mg_3576.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_5202_12251_mg_3576.jpg
  • We received a good image, at least $imagecontent is not false!
  • Arrived at the saving part ready to use name: medium_5202_12251_mg_3576.jpg
  • fopen the file: /var/www/vhosts/sapphireproperties.co.uk/httpdocs/images/listing_photos/temp/medium_5202_12251_mg_3576.jpg,wb
  • fwrite the file with: Resource id #30, $imagecontent (Massive long string! lol
  • Let's download: medium_5202_12251_mg_3572.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_5202_12251_mg_3572.jpg
  • We received a good image, at least $imagecontent is not false!
  • Arrived at the saving part ready to use name: medium_5202_12251_mg_3572.jpg
  • fopen the file: /var/www/vhosts/sapphireproperties.co.uk/httpdocs/images/listing_photos/temp/medium_5202_12251_mg_3572.jpg,wb
  • fwrite the file with: Resource id #32, $imagecontent (Massive long string! lol
  • Let's download: medium_5202_12251_mg_3573.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_5202_12251_mg_3573.jpg
  • We received a good image, at least $imagecontent is not false!
  • Arrived at the saving part ready to use name: medium_5202_12251_mg_3573.jpg
  • fopen the file: /var/www/vhosts/sapphireproperties.co.uk/httpdocs/images/listing_photos/temp/medium_5202_12251_mg_3573.jpg,wb
  • fwrite the file with: Resource id #34, $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/4478.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/4478.pdf
Logging message to general log: "Printed window card for Ref: 4478 (ID 5202) and sending the $userID: "
Finished in 4.203 seconds
Exiting due to debug true (ie not returning the pdf!)