Error Messages Disabled Phpthumb
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies phpthumb tutorial of this site About Us Learn more about Stack Overflow the company Business phpthumb documentation Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask
Phpthumb Aoe
Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign
Phpthumb Not Working
up Switching on error messages in phpThumb up vote 4 down vote favorite How so I do this? I looked at phpThumb.php and the following is set, so I don't know why I am getting the error on my demo page ini_set('display_errors', 1); error_reporting(E_ALL); php image-processing phpthumb share|improve this question asked May 6 '12 at 22:53 Nicola 1,16662251 add a comment| 2 phpthumb missing hash Answers 2 active oldest votes up vote 3 down vote accepted The PHP error reporting and the error messages you see writing about inside the image are two different things and those settings are therefore not related. Edit: phpThumb() has the following error configuration: // * Error message configuration $PHPTHUMB_CONFIG['error_image_width'] = 400; // default width for error images $PHPTHUMB_CONFIG['error_image_height'] = 100; // default height for error images $PHPTHUMB_CONFIG['error_message_image_default'] = ''; // Set this to the name of a generic error image (e.g. '/images/error.png') that you want displayed in place of any error message that may occur. This setting is overridden by the 'err' parameter, which does the same thing. $PHPTHUMB_CONFIG['error_bgcolor'] = 'CCCCFF'; // background color of error message images $PHPTHUMB_CONFIG['error_textcolor'] = 'FF0000'; // color of text in error messages $PHPTHUMB_CONFIG['error_fontsize'] = 1; // size of text in error messages, from 1 (smallest) to 5 (largest) $PHPTHUMB_CONFIG['error_die_on_error'] = true; // die with error message on any fatal error (recommended with standalone phpThumb.php) $PHPTHUMB_CONFIG['error_silent_die_on_error'] = false; // simply die with no output of any kind on fatal errors (not recommended) $PHPTHUMB_CONFIG['error_die_on_source_failure'] = true; // die with error m
Sign in Pricing Blog Support Search GitHub This repository Watch 1 Star 8 Fork 1 https://github.com/simkimsia/phpThumb-for-cakephp-2.0/blob/master/phpThumb.config.php.default simkimsia/phpThumb-for-cakephp-2.0 Code Issues 1 Pull requests 0 Projects 0 Pulse https://github.com/JamesHeinrich/phpThumb/issues/54 Graphs Permalink Branch: master Switch branches/tags Branches Tags master Nothing to show Nothing to show Find file Copy path phpThumb-for-cakephp-2.0/phpThumb.config.php.default Fetching contributors… Cannot retrieve contributors at this time Raw Blame History executable file 254 lines (193 sloc) 21.5 KB // // available at http://phpthumb.sourceforge.net /// ////////////////////////////////////////////////////////////// /// // // See: phpthumb.readme.txt for usage instructions // // NOTE: THIS FILE HAS NO EFFECT IN OBJECT MODE! // // THIS CONFIG FILE ONLY APPLIES TO phpThumb.php // // /// ////////////////////////////////////////////////////////////// ob_start(); if (!file_exists(dirname(__FILE__).'/phpthumb.functions.php') || !include_once(dirname(__FILE__).'/phpthumb.functions.php')) error messages disabled { ob_end_flush(); die('failed to include_once(phpthumb.functions.php) - realpath="'.realpath(dirname(__FILE__).'/phpthumb.functions.php').'"'); } ob_end_clean(); // START USER CONFIGURATION SECTION: // * DocumentRoot configuration // phpThumb() depends on $_SERVER['DOCUMENT_ROOT'] to resolve path/filenames. This value is usually correct, // but has been known to be broken on some servers. This value allows you to override the default value. // Do not modify from the auto-detect default value unless you are having problems. //$PHPTHUMB_CONFIG['document_root'] = '/home/httpd/httpdocs'; //$PHPTHUMB_CONFIG['document_root'] = 'c:\\webroot\\example.com\\www'; //$PHPTHUMB_CONFIG['document_root'] = $_SERVER['DOCUMENT_ROOT']; //$PHPTHUMB_CONFIG['document_root'] = realpath((@$_SERVER['DOCUMENT_ROOT'] && file_exists(@$_SERVER['DOCUMENT_ROOT'].$_SERVER['PHP_SELF'])) ? $_SERVER['DOCUMENT_ROOT'] : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace(DIRECTORY_SEPARATOR, '/', realpath('.')))); $PHPTHUMB_CONFIG['document_root'] = realpath((getenv('DOCUMENT_ROOT') && preg_match('#^'.preg_quote(realpath(getenv('DOCUMENT_ROOT'))).'#', realpath(__FILE__))) ? getenv('DOCUMENT_ROOT') : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace(DIRECTORY_SEPARATOR, '/', dirname(__FILE__)))); // * Cache directory configuration (choose only one of these - leave the other lines commented-out): // Note: this directory must be writable (usually chmod 777 is neccesary) for caching to work. // If the directory is not writable no error will be generated but caching will be d
Sign in Pricing Blog Support Search GitHub This repository Watch 24 Star 171 Fork 43 JamesHeinrich/phpThumb Code Issues 11 Pull requests 0 Projects 0 Pulse Graphs New issue Error messages disabled, but when viewed unsure of what error is #54 Closed leecollings opened this Issue Feb 10, 2016 · 2 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 1 participant leecollings commented Feb 10, 2016 I am able to correctly generate an image tag with the source value http://bellavou.local/phpThumb/phpThumb.php?src=/wp-content/uploads/before-after/face-lift_5_b.jpg&w=120&hash=6e20b1923ea13dd7ca80aea15b65d3a1 which when viewed in a tab displays the 'Error messages disabled' message. When enabling debug mode, this is the file displayed: phpThumb() v1.7.13-201406261000 http://phpthumb.sourceforge.net phpThumb() version = 1.7.13-201406261000 phpversion() = 5.4.16 PHP_OS = WINNT $_SERVER[SERVER_SOFTWARE] = Apache/2.4.4 (Win32) PHP/5.4.16 __FILE__ = C:\wamp\www\bellavou\phpThumb\phpthumb.class.php realpath(.) = C:\wamp\www\bellavou\phpThumb $_SERVER[PHP_SELF] = /phpThumb/phpThumb.php $_SERVER[HOST_NAME] = $_SERVER[HTTP_REFERER] = $_SERVER[QUERY_STRING] = src=/wp-content/uploads/before-after/face-lift_5_b.jpg&w=120&hash=6e20b1923ea13dd7ca80aea15b65d3a1 $_SERVER[PATH_INFO] = $_SERVER[DOCUMENT_ROOT] = C:/wamp/www/bellavou/ getenv(DOCUMENT_ROOT) = C:/wamp/www/bellavou/ 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) = string(0) "" 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) = string(4) "128M" memory_get_usage() = integer 1672504 $this->config_prefer_imagemagick = TRUE $this-