VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: kirkdickinson on November 18, 2013, 17:49:55 PM

Title: Couldn't create thumb.. Escape problem on Windows server?
Post by: kirkdickinson on November 18, 2013, 17:49:55 PM
Here is the error that I get:

vmError: Couldnt create thumb, file not found D:\home helonghornstore.com\wwwroot\joomla\images\stories\virtuemart\product\/5135500.jpg

I notice that the path is MISSING one letter and one backslash. 
It S/B 
D:\home\thelonghornstore.com\wwwroot\joomla\images\stories\virtuemart\product\/5135500.jpg

I have:
Joomla! 2.5.16
VirtueMart  2.0.24
MySQL 5.6.14
Apache/2.2.8
PHP version: 5.3.132.0
IIS Version:  7

Thanks,

Kirk
Title: Re: Couldn't create thumb.. Escape problem on Windows server?
Post by: Milbo on November 18, 2013, 20:24:14 PM
Apache/2.2.8 IIS Version:  7

this programs are not done to run parallel.
Title: Re: Couldn't create thumb.. Escape problem on Windows server?
Post by: kirkdickinson on November 18, 2013, 23:40:56 PM
Quote from: Milbo on November 18, 2013, 20:24:14 PM
Apache/2.2.8 IIS Version:  7

this programs are not done to run parallel.

I think the MySql Server is on a separate server from my webserver at the host.  I got that Apache number from the PHPMyAdmin panel.

Any idea on the thumb error and the possible escaped character in the path???

Thanks,

Kirk

Kirk
Title: Re: Couldn't create thumb.. Escape problem on Windows server?
Post by: Milbo on November 19, 2013, 09:47:05 AM
You may change the Directory seperator in the joomla config file to from \ to /.

I wonder about, no one had this so far and \t is not something like \n or \r. Additionally we do not filter this part, we take it from joomla as is, imho.
Title: Re: Couldn't create thumb.. Escape problem on Windows server?
Post by: kirkdickinson on November 19, 2013, 18:12:05 PM
Milbo,

Thank you. I will post this question over on the Joomla! forum and see what I can find out.

I can't find anywhere to change the directory separator and from my searching, that seems to be a feature that has been deprecated.

Kirk
Title: Re: Couldn't create thumb.. Escape problem on Windows server?
Post by: Milbo on November 19, 2013, 19:53:04 PM
It is still in j2.5 and used in vm2, or config.php helper search for DS.
Title: Re: Couldn't create thumb.. Escape problem on Windows server?
Post by: kirkdickinson on November 19, 2013, 20:45:23 PM
Milbo,

Thanks for helping.  I looked in my Joomla directory and I see a configuration.php file DS is not specified there.  I don't see any file there in the Joomla root directory called config.php

I searched throughout all my Joomla files and DS seems to be defined in about 20 files (not counting temp)  Here is code that I have seen in several Joomla files:

define('DS', DIRECTORY_SEPARATOR);

if (file_exists(dirname(__FILE__) . '/defines.php')) {
   include_once dirname(__FILE__) . '/defines.php';
}


Here is some code that I see in joomla\administrator\components\com_csvi\helpers\cron.php

define( 'DS', '/' );

That looks like the only place that defines the DS as a slash instead of a backslash, at least that I can find.  Is this the one I should change?

Thank You very much,

Kirk



Title: Re: Couldn't create thumb.. Escape problem on Windows server?
Post by: Milbo on November 20, 2013, 11:23:49 AM
Quote from: kirkdickinson on November 19, 2013, 20:45:23 PM

define('DS', DIRECTORY_SEPARATOR);

This one looks good.

Quote from: kirkdickinson on November 19, 2013, 20:45:23 PM
define( 'DS', '/' );

Yes, this one is what you should try in your case. replace the defintion done in the index.php of joomla and try again.
Title: Re: Couldn't create thumb.. Escape problem on Windows server?
Post by: kirkdickinson on November 20, 2013, 22:27:19 PM
Milbo,

Seems like that works. I had to put two backslashes there instead of one.  I assume that is an escape character.

I will remember this if it blows up somewhere else.  Seems to be working now.

Thanks,

Kirk
Title: Re: Couldn't create thumb.. Escape problem on Windows server?
Post by: Milbo on November 21, 2013, 00:18:06 AM
Just that you know, I develop on a windows machine, so this is really a strange thing.