<![CDATA[ [plugin] DirectResize 0.9. Рroject is closed and no longer supported. - My Forums]]> https://forums.modx.com/thread/?thread=35822 <![CDATA[Re: [plugin] DirectResize 0.9. Рroject is closed and no longer supported.]]> https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=23#dis-post-410114 Despite andrnag's correction suggestion for the htaccess file. The weird thing it works fine most of the time but not if you close and open your browser.

The browser restores the tab (for example Opera & FireFox). In that case the images will not show. If you press F5 they will show again, also if you click to another page and back. Also a fresh tab typing in any url on the site they will show. Restored tabs appear to not have the proper rewrite. Is there any way to fix that?

PS: I use paprika's fixed phpthumb with the github version of DirectResize 0.9 rev 6.]]>
dorstox Feb 01, 2012, 10:22 PM https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=23#dis-post-410114
<![CDATA[Re: [plugin] DirectResize 0.9. &#1056;roject is closed and no longer supported.]]> https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=23#dis-post-200164


I got a working DR setup with highslide zoom. On one page however it chokes. It has an eForm with a captcha image which causes it to break. I don’t know why it breaks.

Basically I want DR just to ignore this specific image. Any tips on achieving this will be very much appreciated.

« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
 
PHP error debug
  Error: 	getimagesize() [function.getimagesize]: Filename cannot be empty	 
  Error type/ Nr.: 	Warning - 2	 
  File: 	/home/USER/domains/DOMAIN.com/public_html/assets/plugins/directresize/directResize.php	 
  Line: 	252	 
  Line 252 source: 	if (!getimagesize($this->absolutePath($this->current["source"]["src"]))) 	 
 
Parser timing
  MySQL: 	0.0056 s	(23 Requests)
  PHP: 	0.0576 s	 
  Total: 	0.0632 s
]]>
dorstox Mar 24, 2011, 07:45 AM https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=23#dis-post-200164
<![CDATA[Re: [plugin] DirectResize 0.9. &#1056;roject is closed and no longer supported.]]> https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=23#dis-post-200163 Quote from: MrDutchy at Oct 11, 2010, 07:23 AM


Speaking of which .. Has anyone tested this with Revolution before? If yes, how did that go?

PS: My apologies for reviving this thread. smiley

Revo has the phpthumbof add-on, which replaces this functionality.
If you didn’t already know the answer, sorry you had to wait such a long time for a reply!]]>
christianhanvey Mar 17, 2011, 08:36 PM https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=23#dis-post-200163
<![CDATA[Re: [plugin] DirectResize 0.9. &#1056;roject is closed and no longer supported.]]> https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=23#dis-post-200162 Have some unbelieveble things to see (http://viazhskiy.ru/):

  • it works fine on Chrome (Win)
  • in Safari (Win) it doesen’t until you reload page several times (3-4)
  • in Firefox the same thing (we come out to the post,- then return and pic appears)
  • [li]IE8 - the same.
WTF?]]>
mmice Nov 21, 2010, 01:11 AM https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=23#dis-post-200162
<![CDATA[Re: [plugin] DirectResize 0.9. &#1056;roject is closed and no longer supported.]]> https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=23#dis-post-200161
Speaking of which .. Has anyone tested this with Revolution before? If yes, how did that go?

PS: My apologies for reviving this thread. smiley]]>
dorstox Oct 11, 2010, 02:23 AM https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=23#dis-post-200161
<![CDATA[Re: [plugin] DirectResize 0.9. &#1056;roject is closed and no longer supported.]]> https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=22#dis-post-200160 Quote from: cyclissmo at Jun 15, 2010, 11:50 PM

betoranaldi, those look like easily correctible syntax errors. In the MODx plugin code:

Replace:
define(DIRECTRESIZE_PATH, "assets/plugins/directresize/");
define(DIRECTRESIZE_GALLERYDIR, "assets/drgalleries/");

With
define('DIRECTRESIZE_PATH', "assets/plugins/directresize/");
define('DIRECTRESIZE_GALLERYDIR', "assets/drgalleries/");

And replace:
if (($modx->config[which_editor] != "none" && empty($_POST)) || (isset($_POST[which_editor]) && $_POST[which_editor]!="none"))

With
if (($modx->config['which_editor'] != "none" && empty($_POST)) || (isset($_POST['which_editor']) && $_POST['which_editor']!="none"))


Thank you, I feel like an idiot now. I was looking in every file except the plugin itself.]]>
betoranaldi Jun 15, 2010, 07:09 PM https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=22#dis-post-200160
<![CDATA[Re: [plugin] DirectResize 0.9. &#1056;roject is closed and no longer supported.]]> https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=22#dis-post-200159
Replace:
define(DIRECTRESIZE_PATH, "assets/plugins/directresize/");
define(DIRECTRESIZE_GALLERYDIR, "assets/drgalleries/");

With
define('DIRECTRESIZE_PATH', "assets/plugins/directresize/");
define('DIRECTRESIZE_GALLERYDIR', "assets/drgalleries/");

And replace:
if (($modx->config[which_editor] != "none" && empty($_POST)) || (isset($_POST[which_editor]) && $_POST[which_editor]!="none"))

With
if (($modx->config['which_editor'] != "none" && empty($_POST)) || (isset($_POST['which_editor']) && $_POST['which_editor']!="none"))
]]>
cyclissmo Jun 15, 2010, 06:50 PM https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=22#dis-post-200159
<![CDATA[Re: [plugin] DirectResize 0.9]]> https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=22#dis-post-200158 Quote from: Bytesource at May 18, 2009, 02:18 AM

Quote from: Bytesource at May 17, 2009, 02:23 PM

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)?



Did you ever find a solution to this? I am moving a site to a different server and on this new server I get the same exact system log error "Use of undefined constant which_editor - assumed ’which_editor’"]]>
betoranaldi Jun 15, 2010, 06:32 PM https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=22#dis-post-200158
<![CDATA[Re: [plugin] DirectResize 0.9. &#1056;roject is closed and no longer supported.]]> https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=22#dis-post-200157
My new version isn’t for everyone; it has no phx, lightbox or template support (at the moment). But it does do a fast and very efficient job of resizing, resampling and caching images.

If anyone has a dire need for a simple and stable thumbnail generator, feel free to pm me for a copy of the plugin. It’s still beta; once properly debugged and documented hopefully the repository will accept it smiley

- Mike]]>
cyclissmo Jun 15, 2010, 03:42 PM https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=22#dis-post-200157
<![CDATA[Re: [plugin] DirectResize 0.9. &#1056;roject is closed and no longer supported.]]> https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=22#dis-post-200156
The problem was with godaddy. I needed to add:

Options -MultiViews

to my htaccess. What has me pissed is that it was working before WITHOUT that line and let me to think the problem was something I did.]]>
pixelstation Jun 15, 2010, 01:43 AM https://forums.modx.com/thread/35822/plugin-directresize-0-9-roject-is-closed-and-no-longer-supported?page=22#dis-post-200156