Couldn't create thumb.. Escape problem on Windows server?

Started by kirkdickinson, November 18, 2013, 17:49:55 PM

Previous topic - Next topic

kirkdickinson

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
PHP Built On:    Windows NT NTC45 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
Database Version:      5.6.14
Database Collation:      utf8_general_ci
PHP Version:    5.3.13
Web Server:    Microsoft-IIS/7.5
WebServer to PHP Interface:    cgi-fcgi
Joomla! Version:    Joomla! 2.5.16 Stable [ Ember ] 06-November-2013 22:30 GMT
User Agent    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0

Milbo

Apache/2.2.8 IIS Version:  7

this programs are not done to run parallel.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

kirkdickinson

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
PHP Built On:    Windows NT NTC45 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
Database Version:      5.6.14
Database Collation:      utf8_general_ci
PHP Version:    5.3.13
Web Server:    Microsoft-IIS/7.5
WebServer to PHP Interface:    cgi-fcgi
Joomla! Version:    Joomla! 2.5.16 Stable [ Ember ] 06-November-2013 22:30 GMT
User Agent    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0

Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

kirkdickinson

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
PHP Built On:    Windows NT NTC45 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
Database Version:      5.6.14
Database Collation:      utf8_general_ci
PHP Version:    5.3.13
Web Server:    Microsoft-IIS/7.5
WebServer to PHP Interface:    cgi-fcgi
Joomla! Version:    Joomla! 2.5.16 Stable [ Ember ] 06-November-2013 22:30 GMT
User Agent    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0

Milbo

It is still in j2.5 and used in vm2, or config.php helper search for DS.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

kirkdickinson

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



PHP Built On:    Windows NT NTC45 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
Database Version:      5.6.14
Database Collation:      utf8_general_ci
PHP Version:    5.3.13
Web Server:    Microsoft-IIS/7.5
WebServer to PHP Interface:    cgi-fcgi
Joomla! Version:    Joomla! 2.5.16 Stable [ Ember ] 06-November-2013 22:30 GMT
User Agent    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0

Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

kirkdickinson

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
PHP Built On:    Windows NT NTC45 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
Database Version:      5.6.14
Database Collation:      utf8_general_ci
PHP Version:    5.3.13
Web Server:    Microsoft-IIS/7.5
WebServer to PHP Interface:    cgi-fcgi
Joomla! Version:    Joomla! 2.5.16 Stable [ Ember ] 06-November-2013 22:30 GMT
User Agent    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0

Milbo

Just that you know, I develop on a windows machine, so this is really a strange thing.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/