Quote from: Bytesource at May 17, 2009, 09:23 AM
I finally found out why DirectResize seemed to ignore my configuration file.
Unfortunately not. Now whenever I open a document in the modx manager the following warning pops up:
DirectResize - OnDocFormPrerender
An error occurred while loading. Please see the event log for more information
In the event log at
Reports/System Events I then found the following logs for
DirectResize - Plugin:
- Use of undefined constant which_editor - assumed ’which_editor’
- Use of undefined constant DIRECTRESIZE_PATH - assumed ’DIRECTRESIZE_PATH’
Apart from these error messages, DirectResize seems to work as usual. However, there is definitely something wrong here, otherwise I would not get a warning every time I open or save a document.
Any idea what might be the problem?
Best regards,
Stefan
Edit:
When I go to
Resources/Manage Resources/Plugins/DirectResize --> Configuration and remove the content DirectResize
&config = Configuration; string;thumb the error messages stop and DirectResize seems to just use the default configuration set in
directResize.php
The name of my configuration file is
thumb.config.php.
<?php
$dr_global["path"] = "assets/images/sovonex";
$dr_local["tpl_thumb"]["all"] = "[+dr.shortcut.source2thumb+]";
$dr_local["thumbonly"]["all"] = true;
$dr_local["thumb_quality"]["all"] = 95;
?>
Could it be that there is something wrong with the file name (upper/lower case error) or the content (my command of php is quite limited so I just did some copy&paste here)?