Closed jspencer177 closed 8 years ago
The debug log does contain a huge amount of information, most of which is not interesting at any particular time. Usually searching for the word "fail" will help you localize the problem. In this case, the problem simply seems to be your source image doesn't exist:
"/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg" does not exist
Well, the file does exist, but the path seems to be wrong there (two "resize" directories). I'll track thaat down. Thank you.
I think I'm going to need to reopen this. I fixed the file path but now I don't get the error box, just an image placeholder. The error log now says the image exists but still no image.
phpThumb() v1.7.13-201406261000 http://phpthumb.sourceforge.net
phpThumb() version = 1.7.13-201406261000 phpversion() = 5.6.23 PHP_OS = Linux $_SERVER[SERVER_SOFTWARE] = Apache FILE = /homepages/44/d615211338/htdocs/newtonart/membership/resize/phpthumb.class.php realpath(.) = /homepages/44/d615211338/htdocs/newtonart/membership/resize $_SERVER[PHP_SELF] = /newtonart/membership/resize/phpThumb.php $_SERVER[HOST_NAME] = $_SERVER[HTTP_REFERER] = http://cyberartisans.info/newtonart/membership/artistupload.php $_SERVER[QUERY_STRING] = src=images/B-52.jpg&w=150&hash=cda324e451207f0619196eca12c6b203 $_SERVER[PATH_INFO] = $_SERVER[DOCUMENT_ROOT] = /kunden/homepages/44/d615211338/htdocs getenv(DOCUMENT_ROOT) = /kunden/homepages/44/d615211338/htdocs
get_magic_quotes_gpc() = FALSE get_magic_quotes_runtime() = FALSE error_reporting() = integer 32767 ini_get(error_reporting) = string(1) "0" ini_get(display_errors) = string(1) "1" ini_get(allow_url_fopen) = string(1) "1" ini_get(disable_functions) = string(0) "" get_cfg_var(disable_functions) = FALSE ini_get(safe_mode) = FALSE ini_get(open_basedir) = string(0) "" ini_get(max_execution_time) = string(2) "60" ini_get(memory_limit) = string(4) "256M" get_cfg_var(memory_limit) = string(4) "256M" memory_get_usage() = integer 1192376
$this->config_prefer_imagemagick = TRUE $this->config_imagemagick_path = NULL $this->ImageMagickWhichConvert() = /usr/bin/convert [actual ImageMagick path used] = string(16) "/usr/bin/convert" file_exists([actual ImageMagick path used]) = TRUE ImageMagickVersion(false) = 6.6.0-4 2015-11-27 Q16 ImageMagickVersion(true) = Version: ImageMagick 6.6.0-4 2015-11-27 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC Features: OpenMP
$this->config_cache_directory = string(66) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache/" $this->config_cache_directory_depth = integer 2 $this->config_cache_disable_warning = FALSE $this->config_cache_maxage = integer 2592000 $this->config_cache_maxsize = integer 10485760 $this->config_cache_maxfiles = integer 200 $this->config_cache_force_passthru = TRUE $this->cache_filename = string(197) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache//d/de/phpThumb_cache_cyberartisans.info__srcdeeb82d57cd46c7d6a9f0bec1157dedc_par0b9e73569dbbfe81d5e1ff2a11d92887_dat1468380836.jpeg" is_readable($this->config_cache_directory) = TRUE is_writable($this->config_cache_directory) = TRUE is_readable($this->cache_filename) = TRUE is_writable($this->cache_filename) = TRUE
$this->config_document_root = string(31) "/homepages/44/d615211338/htdocs" $this->config_temp_directory = string(65) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache" $this->config_output_format = string(4) "jpeg" $this->config_output_maxwidth = integer 0 $this->config_output_maxheight = integer 0 $this->config_error_message_image_default = string(0) "" $this->config_error_bgcolor = string(6) "CCCCFF" $this->config_error_textcolor = string(6) "FF0000" $this->config_error_fontsize = integer 1 $this->config_error_die_on_error = TRUE $this->config_error_silent_die_on_error = FALSE $this->config_error_die_on_source_failure = TRUE $this->config_nohotlink_enabled = TRUE $this->config_nohotlink_valid_domains = array(1) { [0]=> string(18) "cyberartisans.info" } $this->config_nohotlink_erase_image = TRUE $this->config_nohotlink_text_message = string(38) "Off-server thumbnailing is not allowed" $this->config_nooffsitelink_enabled = TRUE $this->config_nooffsitelink_valid_domains = array(1) { [0]=> string(18) "cyberartisans.info" } $this->config_nooffsitelink_require_refer = FALSE $this->config_nooffsitelink_erase_image = FALSE $this->config_nooffsitelink_text_message = string(35) "Image taken from cyberartisans.info" $this->config_high_security_enabled = TRUE $this->config_allow_src_above_docroot = FALSE $this->config_allow_src_above_phpthumb = TRUE $this->config_max_source_pixels = float 44739243 $this->config_use_exif_thumbnail_for_speed = FALSE $this->config_border_hexcolor = string(6) "000000" $this->config_background_hexcolor = string(6) "FFFFFF" $this->config_ttf_directory = string(65) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/fonts" $this->config_disable_pathinfo_parsing = TRUE $this->config_disable_imagecopyresampled = FALSE
$this->phpThumbDebug = integer 9 $this->thumbnailQuality = integer 75 $this->thumbnailFormat = string(4) "jpeg" $this->gdimg_output = resource $this->gdimg_source = unknown type $this->sourceFilename = string(75) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/images/B-52.jpg" $this->source_width = integer 1408 $this->source_height = integer 1056 $this->thumbnailCropX = integer 0 $this->thumbnailCropY = integer 0 $this->thumbnailCropW = integer 1408 $this->thumbnailCropH = integer 1056 $this->exif_thumbnail_width = string(0) "" $this->exif_thumbnail_height = string(0) "" $this->exif_thumbnail_type = string(0) "" $this->thumbnail_width = float 150 $this->thumbnail_height = float 112 $this->thumbnail_image_width = string(3) "150" $this->thumbnail_image_height = float 112.5 strlen($this->rawImageData) = 0 strlen($this->exif_thumbnail_data) = 0
$this->src = string(75) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/images/B-52.jpg" $this->new = NULL $this->w = string(3) "150" $this->h = FALSE $this->f = string(0) "" $this->q = integer 75 $this->sx = NULL $this->sy = NULL $this->sw = NULL $this->sh = NULL $this->far = NULL $this->bg = NULL $this->bc = NULL $this->file = NULL $this->goto = NULL $this->err = NULL $this->xto = NULL $this->ra = NULL $this->ar = NULL $this->aoe = NULL $this->iar = NULL $this->maxb = NULL
builtin_function_exists(exif_thumbnail) = TRUE builtin_function_exists(gd_info) = TRUE builtin_function_exists(image_type_to_mime_type) = TRUE builtin_function_exists(GetImageSize) = TRUE builtin_function_exists(ImageCopyResampled) = TRUE builtin_function_exists(ImageCopyResized) = TRUE builtin_function_exists(ImageCreate) = TRUE builtin_function_exists(ImageCreateFromString) = TRUE builtin_function_exists(ImageCreateTrueColor) = TRUE builtin_function_exists(ImageIsTrueColor) = TRUE builtin_function_exists(ImageRotate) = TRUE builtin_function_exists(ImageTypes) = TRUE builtin_function_exists(version_compare) = TRUE builtin_function_exists(ImageCreateFromGIF) = TRUE builtin_function_exists(ImageCreateFromJPEG) = TRUE builtin_function_exists(ImageCreateFromPNG) = TRUE builtin_function_exists(ImageCreateFromWBMP) = TRUE builtin_function_exists(ImageCreateFromXBM) = TRUE builtin_function_exists(ImageCreateFromXPM) = FALSE builtin_function_exists(ImageCreateFromString) = TRUE builtin_function_exists(ImageCreateFromGD) = TRUE builtin_function_exists(ImageCreateFromGD2) = TRUE builtin_function_exists(ImageCreateFromGD2Part) = TRUE builtin_function_exists(ImageJPEG) = TRUE builtin_function_exists(ImageGIF) = TRUE builtin_function_exists(ImagePNG) = TRUE builtin_function_exists(ImageWBMP) = TRUE
gd_info.GD Version = string(26) "bundled (2.1.0 compatible)" gd_info.FreeType Support = TRUE gd_info.FreeType Linkage = string(13) "with freetype" gd_info.T1Lib Support = FALSE gd_info.GIF Read Support = TRUE gd_info.GIF Create Support = TRUE gd_info.JPEG Support = TRUE gd_info.PNG Support = TRUE gd_info.WBMP Support = TRUE gd_info.XPM Support = FALSE gd_info.XBM Support = TRUE gd_info.WebP Support = FALSE gd_info.JIS-mapped Japanese Font Support = FALSE
exif_info.EXIF Support = string(7) "enabled" exif_info.EXIF Version = string(51) "1.4 $Id: db007ca2e6d0b4513ae77990972997fad8bfe9c9 $" exif_info.Supported EXIF Version = string(4) "0220" exif_info.Supported filetypes = string(9) "JPEG,TIFF"
ApacheLookupURIarray() -- FAILED
$_GET[src] = string(15) "images/B-52.jpg" $_GET[w] = string(3) "150" $_GET[hash] = string(32) "cda324e451207f0619196eca12c6b203" $_GET[phpThumbDebug] = integer 9
$this->debugmessages:
$this->debugtiming:
Using your strategy of searching for the word "fail" I find this:
ApacheLookupURIarray() -- FAILED
and a couple of ImageMagick failures, but I'm not sure what that means or how to fix it.
It's the ImageMagick failure that's causing you problems, specifically:
ImageMagick failed with message (libgomp: Thread creation failed: Resource temporarily unavailable)
For reference, the call to ImageMagick was:
convert -density '150' -background '#FFFFFF' -thumbnail '150x' -quality '75' -interlace line '/homepages/44/d615211338/htdocs/newtonart/membership/resize/images/B-52.jpg[0]' jpeg:'/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache/pThumbcgNJJE'
I'm not sure why your resources were unavailable to start ImageMagick. I haven't seen that error before.
I was closing in on ImageMagick also. In phpThumb.demo.check.php I get the following under ImageMagick formats: sh: ./identify: No such file or directory
Is it having trouble finding ImageMagick? How do I locate a path to ImageMagick?
No, it's finding ImageMagick fine (/usr/bin/convert = version 6.6.0-4 2015-11-27 Q16).
If you do a search for "libgomp: Thread creation failed: Resource temporarily unavailable" you may find a solution to your problem, which I suspect is more related to ImageMagick than phpThumb (although I haven't looked at any of the multitude of search results).
HI James. I looked at the various solutions and didn't find any that seemed to apply (I did try a couple with no improvement). And my hosting service "tech" support was useless as expected. Is there a way to turn off ImageMagick? I tried changing 'prefer_imagemagick' to false and that didn't help. I'm no longer getting the libgomp error but I'm not getting an image. Here is the error text:
phpThumb() v1.7.13-201406261000
http://phpthumb.sourceforge.net
phpThumb() version = 1.7.13-201406261000
phpversion() = 5.6.23
PHP_OS = Linux
$_SERVER[SERVER_SOFTWARE] = Apache
__FILE__ = /homepages/44/d615211338/htdocs/newtonart/membership/resize/phpthumb.class.php
realpath(.) = /homepages/44/d615211338/htdocs/newtonart/membership/resize
$_SERVER[PHP_SELF] = /newtonart/membership/resize/phpThumb.php
$_SERVER[HOST_NAME] =
$_SERVER[HTTP_REFERER] = http://cyberartisans.info/newtonart/membership/artistupload.php
$_SERVER[QUERY_STRING] = src=images/andydulay.jpg&w=150&hash=dbb78885313de4086b7cfb69dc6ef450
$_SERVER[PATH_INFO] =
$_SERVER[DOCUMENT_ROOT] = /kunden/homepages/44/d615211338/htdocs
getenv(DOCUMENT_ROOT) = /kunden/homepages/44/d615211338/htdocs
get_magic_quotes_gpc() = FALSE
get_magic_quotes_runtime() = FALSE
error_reporting() = integer 32767
ini_get(error_reporting) = string(1) "0"
ini_get(display_errors) = string(1) "1"
ini_get(allow_url_fopen) = string(1) "1"
ini_get(disable_functions) = string(0) ""
get_cfg_var(disable_functions) = FALSE
ini_get(safe_mode) = FALSE
ini_get(open_basedir) = string(0) ""
ini_get(max_execution_time) = string(2) "60"
ini_get(memory_limit) = string(4) "128M"
get_cfg_var(memory_limit) = FALSE
memory_get_usage() = integer 1166592
$this->config_prefer_imagemagick = FALSE
$this->config_imagemagick_path = string(16) "/usr/bin/convert"
$this->ImageMagickWhichConvert() = /usr/bin/convert
[actual ImageMagick path used] = string(16) "/usr/bin/convert"
file_exists([actual ImageMagick path used]) = TRUE
ImageMagickVersion(false) = 6.6.0-4 2015-11-27 Q16
ImageMagickVersion(true) = Version: ImageMagick 6.6.0-4 2015-11-27 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
$this->config_cache_directory = string(66) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache/"
$this->config_cache_directory_depth = integer 2
$this->config_cache_disable_warning = FALSE
$this->config_cache_maxage = integer 2592000
$this->config_cache_maxsize = integer 10485760
$this->config_cache_maxfiles = integer 200
$this->config_cache_force_passthru = TRUE
$this->cache_filename = string(197) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache//4/48/phpThumb_cache_cyberartisans.info__src48649a9c3a2a568c8442f63309cab76b_par0b9e73569dbbfe81d5e1ff2a11d92887_dat1468360460.jpeg"
is_readable($this->config_cache_directory) = TRUE
is_writable($this->config_cache_directory) = TRUE
is_readable($this->cache_filename) = TRUE
is_writable($this->cache_filename) = TRUE
$this->config_document_root = string(31) "/homepages/44/d615211338/htdocs"
$this->config_temp_directory = string(66) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache/"
$this->config_output_format = string(4) "jpeg"
$this->config_output_maxwidth = integer 0
$this->config_output_maxheight = integer 0
$this->config_error_message_image_default = string(0) ""
$this->config_error_bgcolor = string(6) "CCCCFF"
$this->config_error_textcolor = string(6) "FF0000"
$this->config_error_fontsize = integer 1
$this->config_error_die_on_error = TRUE
$this->config_error_silent_die_on_error = FALSE
$this->config_error_die_on_source_failure = TRUE
$this->config_nohotlink_enabled = TRUE
$this->config_nohotlink_valid_domains = array(1) { [0]=> string(18) "cyberartisans.info" }
$this->config_nohotlink_erase_image = TRUE
$this->config_nohotlink_text_message = string(38) "Off-server thumbnailing is not allowed"
$this->config_nooffsitelink_enabled = TRUE
$this->config_nooffsitelink_valid_domains = array(1) { [0]=> string(18) "cyberartisans.info" }
$this->config_nooffsitelink_require_refer = FALSE
$this->config_nooffsitelink_erase_image = FALSE
$this->config_nooffsitelink_text_message = string(35) "Image taken from cyberartisans.info"
$this->config_high_security_enabled = TRUE
$this->config_allow_src_above_docroot = FALSE
$this->config_allow_src_above_phpthumb = FALSE
$this->config_max_source_pixels = float 22369621
$this->config_use_exif_thumbnail_for_speed = FALSE
$this->config_border_hexcolor = string(6) "000000"
$this->config_background_hexcolor = string(6) "FFFFFF"
$this->config_ttf_directory = string(65) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/fonts"
$this->config_disable_pathinfo_parsing = TRUE
$this->config_disable_imagecopyresampled = FALSE
$this->phpThumbDebug = integer 9
$this->thumbnailQuality = integer 75
$this->thumbnailFormat = string(4) "jpeg"
$this->gdimg_output = resource
$this->gdimg_source = unknown type
$this->sourceFilename = string(80) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/images/andydulay.jpg"
$this->source_width = integer 640
$this->source_height = integer 480
$this->thumbnailCropX = integer 0
$this->thumbnailCropY = integer 0
$this->thumbnailCropW = integer 640
$this->thumbnailCropH = integer 480
$this->exif_thumbnail_width = string(0) ""
$this->exif_thumbnail_height = string(0) ""
$this->exif_thumbnail_type = string(0) ""
$this->thumbnail_width = float 150
$this->thumbnail_height = float 112
$this->thumbnail_image_width = string(3) "150"
$this->thumbnail_image_height = float 112.5
strlen($this->rawImageData) = 0
strlen($this->exif_thumbnail_data) = 0
$this->src = string(80) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/images/andydulay.jpg"
$this->new = NULL
$this->w = string(3) "150"
$this->h = FALSE
$this->f = string(0) ""
$this->q = integer 75
$this->sx = NULL
$this->sy = NULL
$this->sw = NULL
$this->sh = NULL
$this->far = NULL
$this->bg = NULL
$this->bc = NULL
$this->file = NULL
$this->goto = NULL
$this->err = NULL
$this->xto = NULL
$this->ra = NULL
$this->ar = NULL
$this->aoe = NULL
$this->iar = NULL
$this->maxb = NULL
builtin_function_exists(exif_thumbnail) = TRUE
builtin_function_exists(gd_info) = TRUE
builtin_function_exists(image_type_to_mime_type) = TRUE
builtin_function_exists(GetImageSize) = TRUE
builtin_function_exists(ImageCopyResampled) = TRUE
builtin_function_exists(ImageCopyResized) = TRUE
builtin_function_exists(ImageCreate) = TRUE
builtin_function_exists(ImageCreateFromString) = TRUE
builtin_function_exists(ImageCreateTrueColor) = TRUE
builtin_function_exists(ImageIsTrueColor) = TRUE
builtin_function_exists(ImageRotate) = TRUE
builtin_function_exists(ImageTypes) = TRUE
builtin_function_exists(version_compare) = TRUE
builtin_function_exists(ImageCreateFromGIF) = TRUE
builtin_function_exists(ImageCreateFromJPEG) = TRUE
builtin_function_exists(ImageCreateFromPNG) = TRUE
builtin_function_exists(ImageCreateFromWBMP) = TRUE
builtin_function_exists(ImageCreateFromXBM) = TRUE
builtin_function_exists(ImageCreateFromXPM) = FALSE
builtin_function_exists(ImageCreateFromString) = TRUE
builtin_function_exists(ImageCreateFromGD) = TRUE
builtin_function_exists(ImageCreateFromGD2) = TRUE
builtin_function_exists(ImageCreateFromGD2Part) = TRUE
builtin_function_exists(ImageJPEG) = TRUE
builtin_function_exists(ImageGIF) = TRUE
builtin_function_exists(ImagePNG) = TRUE
builtin_function_exists(ImageWBMP) = TRUE
gd_info.GD Version = string(26) "bundled (2.1.0 compatible)"
gd_info.FreeType Support = TRUE
gd_info.FreeType Linkage = string(13) "with freetype"
gd_info.T1Lib Support = FALSE
gd_info.GIF Read Support = TRUE
gd_info.GIF Create Support = TRUE
gd_info.JPEG Support = TRUE
gd_info.PNG Support = TRUE
gd_info.WBMP Support = TRUE
gd_info.XPM Support = FALSE
gd_info.XBM Support = TRUE
gd_info.WebP Support = FALSE
gd_info.JIS-mapped Japanese Font Support = FALSE
exif_info.EXIF Support = string(7) "enabled"
exif_info.EXIF Version = string(51) "1.4 $Id: db007ca2e6d0b4513ae77990972997fad8bfe9c9 $"
exif_info.Supported EXIF Version = string(4) "0220"
exif_info.Supported filetypes = string(9) "JPEG,TIFF"
ApacheLookupURIarray() -- FAILED
$_GET[src] = string(20) "images/andydulay.jpg"
$_GET[w] = string(3) "150"
$_GET[hash] = string(32) "dbb78885313de4086b7cfb69dc6ef450"
$_GET[phpThumbDebug] = integer 9
$this->debugmessages:
* phpThumb() v1.7.13-201406261000 in file "phpthumb.class.php" on line 220
* setParameter(config_document_root, string(31) "/homepages/44/d615211338/htdocs") in file "phpThumb.php" on line 152
* setParameter(config_high_security_enabled, TRUE) in file "phpThumb.php" on line 152
* setParameter(config_high_security_url_separator, string(1) "&") in file "phpThumb.php" on line 152
* setParameter(config_disable_debug, FALSE) in file "phpThumb.php" on line 152
* setParameter(config_allow_src_above_docroot, FALSE) in file "phpThumb.php" on line 152
* setParameter(config_allow_src_above_phpthumb, FALSE) in file "phpThumb.php" on line 152
* setParameter(config_auto_allow_symlinks, TRUE) in file "phpThumb.php" on line 152
* setParameter(config_additional_allowed_dirs, array(0) { } ) in file "phpThumb.php" on line 152
* setParameter(config_cache_directory, string(66) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache/") in file "phpThumb.php" on line 152
* setParameter(config_cache_disable_warning, FALSE) in file "phpThumb.php" on line 152
* setParameter(config_cache_directory_depth, integer 2) in file "phpThumb.php" on line 152
* setParameter(config_cache_maxage, integer 2592000) in file "phpThumb.php" on line 152
* setParameter(config_cache_maxsize, integer 10485760) in file "phpThumb.php" on line 152
* setParameter(config_cache_maxfiles, integer 200) in file "phpThumb.php" on line 152
* setParameter(config_cache_source_enabled, FALSE) in file "phpThumb.php" on line 152
* setParameter(config_cache_source_directory, string(73) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache/source/") in file "phpThumb.php" on line 152
* setParameter(config_cache_source_filemtime_ignore_local, FALSE) in file "phpThumb.php" on line 152
* setParameter(config_cache_source_filemtime_ignore_remote, TRUE) in file "phpThumb.php" on line 152
* setParameter(config_cache_default_only_suffix, string(0) "") in file "phpThumb.php" on line 152
* setParameter(config_cache_prefix, string(34) "phpThumb_cache_cyberartisans.info_") in file "phpThumb.php" on line 152
* setParameter(config_cache_force_passthru, TRUE) in file "phpThumb.php" on line 152
* setParameter(config_temp_directory, string(66) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache/") in file "phpThumb.php" on line 152
* setParameter(config_prefer_imagemagick, FALSE) in file "phpThumb.php" on line 152
* setParameter(config_imagemagick_use_thumbnail, TRUE) in file "phpThumb.php" on line 152
* setParameter(config_imagemagick_path, string(16) "/usr/bin/convert") in file "phpThumb.php" on line 152
* setParameter(config_max_source_pixels, float 22369621) in file "phpThumb.php" on line 152
* setParameter(config_output_format, string(4) "jpeg") in file "phpThumb.php" on line 152
* setParameter(config_output_maxwidth, integer 0) in file "phpThumb.php" on line 152
* setParameter(config_output_maxheight, integer 0) in file "phpThumb.php" on line 152
* setParameter(config_output_interlace, TRUE) in file "phpThumb.php" on line 152
* setParameter(config_error_image_width, integer 400) in file "phpThumb.php" on line 152
* setParameter(config_error_image_height, integer 100) in file "phpThumb.php" on line 152
* setParameter(config_error_message_image_default, string(0) "") in file "phpThumb.php" on line 152
* setParameter(config_error_bgcolor, string(6) "CCCCFF") in file "phpThumb.php" on line 152
* setParameter(config_error_textcolor, string(6) "FF0000") in file "phpThumb.php" on line 152
* setParameter(config_error_fontsize, integer 1) in file "phpThumb.php" on line 152
* setParameter(config_error_die_on_error, TRUE) in file "phpThumb.php" on line 152
* setParameter(config_error_silent_die_on_error, FALSE) in file "phpThumb.php" on line 152
* setParameter(config_error_die_on_source_failure, TRUE) in file "phpThumb.php" on line 152
* setParameter(config_nohotlink_enabled, TRUE) in file "phpThumb.php" on line 152
* setParameter(config_nohotlink_valid_domains, array(1) { [0]=> string(18) "cyberartisans.info" } ) in file "phpThumb.php" on line 152
* setParameter(config_nohotlink_erase_image, TRUE) in file "phpThumb.php" on line 152
* setParameter(config_nohotlink_text_message, string(38) "Off-server thumbnailing is not allowed") in file "phpThumb.php" on line 152
* setParameter(config_nooffsitelink_enabled, TRUE) in file "phpThumb.php" on line 152
* setParameter(config_nooffsitelink_valid_domains, array(1) { [0]=> string(18) "cyberartisans.info" } ) in file "phpThumb.php" on line 152
* setParameter(config_nooffsitelink_require_refer, FALSE) in file "phpThumb.php" on line 152
* setParameter(config_nooffsitelink_erase_image, FALSE) in file "phpThumb.php" on line 152
* setParameter(config_nooffsitelink_watermark_src, string(26) "/demo/images/watermark.png") in file "phpThumb.php" on line 152
* setParameter(config_nooffsitelink_text_message, string(35) "Image taken from cyberartisans.info") in file "phpThumb.php" on line 152
* setParameter(config_border_hexcolor, string(6) "000000") in file "phpThumb.php" on line 152
* setParameter(config_background_hexcolor, string(6) "FFFFFF") in file "phpThumb.php" on line 152
* setParameter(config_ttf_directory, string(65) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/fonts") in file "phpThumb.php" on line 152
* setParameter(config_http_user_agent, string(109) "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36") in file "phpThumb.php" on line 152
* setParameter(config_disable_pathinfo_parsing, TRUE) in file "phpThumb.php" on line 152
* setParameter(config_disable_imagecopyresampled, FALSE) in file "phpThumb.php" on line 152
* setParameter(config_disable_onlycreateable_passthru, TRUE) in file "phpThumb.php" on line 152
* setParameter(config_http_fopen_timeout, integer 10) in file "phpThumb.php" on line 152
* setParameter(config_http_follow_redirect, TRUE) in file "phpThumb.php" on line 152
* setParameter(config_allow_local_http_src, FALSE) in file "phpThumb.php" on line 152
* setParameter(config_use_exif_thumbnail_for_speed, FALSE) in file "phpThumb.php" on line 152
* setParameter(src, string(20) "images/andydulay.jpg") in file "phpThumb.php" on line 329
* resolvePath: /homepages/44/d615211338/htdocs/newtonart/membership/resize/images/andydulay.jpg (allowed_dirs: Array
(
)
) in file "phpthumb.class.php" on line 1096
* resolvePath: iteration, path=/homepages/44/d615211338/htdocs/newtonart/membership/resize/images/andydulay.jpg, base path = /homepages/44/d615211338/htdocs in file "phpthumb.class.php" on line 1115
* open_basedir: "" in file "phpthumb.class.php" on line 1082
* resolvePath: stop at component 10 in file "phpthumb.class.php" on line 1131
* resolvePath: stop at path=/homepages/44/d615211338/htdocs/newtonart/membership/resize/images/andydulay.jpg in file "phpthumb.class.php" on line 1134
* resolvePath: path parsed, over in file "phpthumb.class.php" on line 1140
* setSourceFilename(/homepages/44/d615211338/htdocs/newtonart/membership/resize/images/andydulay.jpg) set $this->sourceFilename to "/homepages/44/d615211338/htdocs/newtonart/membership/resize/images/andydulay.jpg" in file "phpthumb.class.php" on line 271
* setParameter(w, string(3) "150") in file "phpThumb.php" on line 329
* setParameter(hash, string(32) "dbb78885313de4086b7cfb69dc6ef450") in file "phpThumb.php" on line 329
* setParameter(phpThumbDebug, integer 9) in file "phpThumb.php" on line 329
* $CanPassThroughDirectly=false because $_GET[hash] are set in file "phpThumb.php" on line 410
* $CanPassThroughDirectly="0" && $phpThumb->src="/homepages/44/d615211338/htdocs/newtonart/membership/resize/images/andydulay.jpg" in file "phpThumb.php" on line 421
* Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 919
* $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 925
* $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 936
* $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 953
* SetCacheFilename() _src set from md5($this->sourceFilename) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/images/andydulay.jpg" = "48649a9c3a2a568c8442f63309cab76b" in file "phpthumb.class.php" on line 3443
* SetCacheFilename() _par set from md5(_w150_dpi150_q75) in file "phpthumb.class.php" on line 3476
* Would have used cached file, but skipping due to phpThumbDebug in file "phpThumb.php" on line 66
* * Would have sent headers (1): Last-Modified: Fri, 15 Jul 2016 15:31:02 GMT in file "phpThumb.php" on line 67
* * Would have sent headers (2): Content-Type: image/jpeg in file "phpThumb.php" on line 69
* * Would have sent headers (3): Location: /newtonart/membership/resize/cache//4/48/phpThumb_cache_cyberartisans.info__src48649a9c3a2a568c8442f63309cab76b_par0b9e73569dbbfe81d5e1ff2a11d92887_dat1468360460.jpeg in file "phpThumb.php" on line 72
* resolvePath: /homepages/44/d615211338/htdocs/newtonart/membership/resize/images/andydulay.jpg (allowed_dirs: Array
(
)
) in file "phpthumb.class.php" on line 1096
* resolvePath: iteration, path=/homepages/44/d615211338/htdocs/newtonart/membership/resize/images/andydulay.jpg, base path = /homepages/44/d615211338/htdocs in file "phpthumb.class.php" on line 1115
* resolvePath: stop at component 10 in file "phpthumb.class.php" on line 1131
* resolvePath: stop at path=/homepages/44/d615211338/htdocs/newtonart/membership/resize/images/andydulay.jpg in file "phpthumb.class.php" on line 1134
* resolvePath: path parsed, over in file "phpthumb.class.php" on line 1140
* $this->sourceFilename set to "/homepages/44/d615211338/htdocs/newtonart/membership/resize/images/andydulay.jpg" in file "phpthumb.class.php" on line 849
* $this->cache_filename already set, skipping SetCacheFilename() in file "phpthumb.class.php" on line 3398
* starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3236
* GetImageSize(/homepages/44/d615211338/htdocs/newtonart/membership/resize/images/andydulay.jpg) says image is 640x480 in file "phpthumb.class.php" on line 3246
* SetOrientationDependantWidthHeight() starting with "640"x"480" in file "phpthumb.class.php" on line 3215
* SetOrientationDependantWidthHeight() setting w="150", h="0" in file "phpthumb.class.php" on line 3231
* EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3343
* starting SourceImageToGD() in file "phpthumb.class.php" on line 3603
* starting ImageCreateFromFilename(/homepages/44/d615211338/htdocs/newtonart/membership/resize/images/andydulay.jpg) in file "phpthumb.class.php" on line 3518
* ImageCreateFromFilename found ($getimagesizeinfo[2]==2) in file "phpthumb.class.php" on line 3527
* Calling ImageCreateFromJPEG(/homepages/44/d615211338/htdocs/newtonart/membership/resize/images/andydulay.jpg) in file "phpthumb.class.php" on line 3535
* Not using EXIF thumbnail data because $this->gdimg_source is already set in file "phpthumb.class.php" on line 3670
* CalculateThumbnailDimensions() starting with [W,H,sx,sy,sw,sh] initially set to [640,480,,,,] in file "phpthumb.class.php" on line 3086
* CalculateThumbnailDimensions() starting with [x,y,w,h] initially set to [0,0,640,480] in file "phpthumb.class.php" on line 3101
* CreateGDoutput() returning canvas "150x112" in file "phpthumb.class.php" on line 3210
* ImageResizeFunction($o, $s, 0, -0, 0, 0, 150, 112.5, 640, 480) in file "phpthumb.class.php" on line 4253
* memory_get_usage() after copy-resize = 2695836 in file "phpthumb.class.php" on line 403
* memory_get_usage() after ImageDestroy = 1141076 in file "phpthumb.class.php" on line 405
* AntiOffsiteLinking() checking $_SERVER[HTTP_REFERER] "http://cyberartisans.info/newtonart/membership/artistupload.php" in file "phpthumb.class.php" on line 2366
* AntiOffsiteLinking() - "cyberartisans.info" is in $this->config_nooffsitelink_valid_domains (cyberartisans.info) in file "phpthumb.class.php" on line 2380
* AntiOffsiteLinking() says this is allowed in file "phpthumb.class.php" on line 2399
* skipping AlphaChannelFlatten() because !$this->is_alpha in file "phpthumb.class.php" on line 2455
* GenerateThumbnail() completed successfully in file "phpthumb.class.php" on line 417
* CleanUpCacheDirectory() set to purge (30.0 days; 10.00 MB; 200 files) in file "phpthumb.class.php" on line 667
* CleanUpCacheDirectory() skipped because "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache//phpThumbCacheStats.txt" is recently modified in file "phpthumb.class.php" on line 677
* RenderOutput() attempting ImageJPEG($this->gdimg_output) in file "phpthumb.class.php" on line 446
* RenderOutput() completing with $this->outputImageData = 4532 bytes in file "phpthumb.class.php" on line 526
* RenderToFile(/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache//4/48/phpThumb_cache_cyberartisans.info__src48649a9c3a2a568c8442f63309cab76b_par0b9e73569dbbfe81d5e1ff2a11d92887_dat1468360460.jpeg) succeeded in file "phpthumb.class.php" on line 554
* Would have used cached file, but skipping due to phpThumbDebug in file "phpThumb.php" on line 66
* * Would have sent headers (1): Last-Modified: Fri, 15 Jul 2016 15:31:02 GMT in file "phpThumb.php" on line 67
* * Would have sent headers (2): Content-Type: image/jpeg in file "phpThumb.php" on line 69
* * Would have sent headers (3): Location: /newtonart/membership/resize/cache//4/48/phpThumb_cache_cyberartisans.info__src48649a9c3a2a568c8442f63309cab76b_par0b9e73569dbbfe81d5e1ff2a11d92887_dat1468360460.jpeg in file "phpThumb.php" on line 72
$this->debugtiming:
* 1468596666.334752 : phpThumb() constructor in file "phpthumb.class.php" on line 219
* 1468596666.325766 : phpThumb.php start in file "phpThumb.php" on line 119
* 1468596666.335957 : phpThumbDebug[0] in file "phpThumb.php" on line 211
* 1468596666.335988 : phpThumbDebug[1] in file "phpThumb.php" on line 267
* 1468596666.336022 : phpThumbDebug[2] in file "phpThumb.php" on line 314
* 1468596666.336221 : phpThumbDebug[3] in file "phpThumb.php" on line 348
* 1468596666.336266 : phpThumbDebug[4] in file "phpThumb.php" on line 415
* 1468596666.336286 : phpThumbDebug[5] in file "phpThumb.php" on line 500
* 1468596666.336475 : skipped using cached image in file "phpThumb.php" on line 65
* 1468596666.336578 : phpThumbDebug[6] in file "phpThumb.php" on line 516
* 1468596666.336599 : phpThumbDebug[7] in file "phpThumb.php" on line 581
* 1468596666.369758 : phpThumbDebug[8] in file "phpThumb.php" on line 591
* 1468596666.373639 : skipped using cached image in file "phpThumb.php" on line 65
* 1468596666.373725 : phpThumbDebug[9] in file "phpThumb.php" on line 624
* Total processing time: 0.047959
Seems to be working to me. prefer_imagemagick
is indeed the correct way to disable ImageMagick.
Your source image /newtonart/membership/resize/images/andydulay.jpg is resized and I can actually see the cached thumbnail at /newtonart/membership/resize/cache/4/48/phpThumb_cache_cyberartisans.info__src48649a9c3a2a568c8442f63309cab76b_par0b9e73569dbbfe81d5e1ff2a11d92887_dat1468360460.jpeg
Remember you need to disable debug mode or you won't see any images at all, only debug output.
I understand. However, when I disable debug mode (change 'disable_debug' to true), I still don't get an image. You can see this at http://cyberartisans.info/newtonart/membership/artistupload.php. If I open the image with debug mode disabled, I get an interesting error message:
Strict Standards: strtotime(): It is not safe to rely on the system's timezone settings.
You are *required* to use the date.timezone setting or the date_default_timezone_set() function.
In case you used any of those methods and you are still getting this warning, you most likely
misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in
/homepages/44/d615211338/htdocs/newtonart/membership/resize/phpThumb.php on line 87.
Is this an indication that the server time is somehow a problem? According to php.ini, the default time zone is set to America/New_York.
I'm wondering if my call to phpThumb is faulty. Here's what I'm using:
require_once('resize/phpThumb.config.php');
echo '<img src="'.htmlspecialchars(phpThumbURL('src=images/andydulay.jpg&w=150', 'resize/phpThumb.php')).'">';
Nothing wrong with your call to phpThumb. But you do need to configure your PHP installation for the timezone, specifically ini.date.timezone
Quoting from http://www.php.net/manual/en/function.date-default-timezone-set.php:
Since PHP 5.1.0 (when the date/time functions were rewritten), every call to a
date/time function will generate a E_NOTICE if the timezone isn't valid, and/or
a E_WARNING message if using the system settings or the TZ environment variable.
I hope this is closing in on it.
I have added the following to the file you were looking at:
ini_set("date.timezone", "America/New_York");
and further down I have checked it with:
$script_tz = date_default_timezone_get();
echo "Default timezone: ".$script_tz."<p>";
This produces this text when I display that file:
Default timezone: America/New_York
But I still don't get an image and when I right-click the image placeholder and look at the image code I still get "Strict Standards: strtotime(): It is not safe to rely on the system's timezone settings. etc."
So (1) What am I doing wrong here. and (2) Is this why I'm not seeing an image?
This problem is why you're not seeing the image -- PHP is spewing warnings that breaks the image output.
How is date.timezone configured in php.ini itself? Are you able to edit php.ini on your server?
I've heard that PHP is sometimes quirky with setting timezone configuration. Setting the timezone in php.ini is best, but if you're unable to do so for some reason you could try using the dedicated function date_default_timezone_set('America/New_York');
rather than ini_set. Or perhaps setting the configuration in .htaccess if you're able to do that but not able to edit php.ini
http://websistent.com/setting-a-timezone-in-php/
According to phpinfo, date.timezone has no local value and no master value. I don't have access to php.ini (although my next move will be to contact the hosting service and ask them to make the change). But I already tried date_default_timezone_set('America/New_York') with no result. I also tried changing the .htaccess file as suggested in the link you gave me. When I enter their suggested code into .htaccess, I get a 500 Internal Server Error.
I'm beginning to think it would be easier to move it to another host.
Finally got it working! The hosting service lets me put a php.ini file in a directory with just the changes required. I added one with date.timezone="America/New_York" in it. That didn't work until I put it into the directory with phpThumb. That worked.
Thank you very much for your patience and support in this thread. The website I'm building will depend on phpThumb to do many of the things I promised my client it would, so getting it working was extremely important. Thanks again!
Incidentally, ImageMagick now works also....
Good to hear, glad you got it working.
I've gotten phpThumb to the point where it gives me the error box, so I assume my paths are correct. When I enable debugging and look at the error message, I get the following, but I have no idea what it is trying to tell me. Thanks for any help you can provide. Is there anyplace I can go to help me decode the error listing in the future?