PHP error debug
Error: preg_match() [function.preg-match]: Compilation failed: PCRE does not support \L, \l, \N, \U, or \u at offset 4
Error type/ Nr.: Warning - 2
File: D:\localhost\modx\assets\photocrop\config.default.inc.php
Line: 96
Line 96 source: if (!preg_match(’#^’ . $configuration[’RESOURCE_BASE’] . ’#’, $configuration[’RESOURCE_PATH’])) {
It happens when it’s opening the [!Photocrop!] blank page.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
It works!
Thank you
Anyway,
why don’t you create "Make a copy" option?
There is no backup before editing.
And how to change the "User-defined selection"?
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
-
- 209 Posts
"User-defined selections" are set in config file -> "assets/photocrop/config.default.inc.php"
There is an array "$this->config[’USER_BUTTONS’]" which you can customize. I would recommend you to duplicate "config.default.inc.php" to something like "config.myproject.inc.php", next do customization in a duplicate, and finally call application on its hosting page as [!Photocrop? &config=`myproject`!]. This will prevent your custom button settings from being overwritten during further upgrade.
"Make a copy" -- just taken onto my to-consider/to-do list.
[[PhotocropLink? &idApp=`xyz` &RESOURCE_URL=`assets/galleries/[*id*]/`]]
is not working to the MaxiGallery’s image folder.
My example goes to this URL:
http://localhost/modx/index.php?id=19?RESOURCE_URL=assets/galleries/18/
Anyway,
Why do you have to use another document page?
Why not using a stand-alone pop-up window to do the cropping?
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
-
- 209 Posts
It looks that you have not performed full upgrade ("PhotocropLink" snippet was not overwritten with the newest version; it is located under assets/photocrop/snippets/*.txt).