MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: preg_match() [function.preg-match]: No ending delimiter '^' found
Error type/ Nr.: Warning - 2
File: M:\xampp\htdocs\test\assets\snippets\phpthumb\phpThumb.config.php
Line: 30
Line 30 source: $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__))));

$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__))));
Found working phpThumb package (php 5.3.0)
(eregi, ereg, var vs public, etc - all done)
Use at your own risk.
(and, of course, don’t forget about the new line from my previous post)
