anushrimathur / smart-lencioni-image-resizer

Automatically exported from code.google.com/p/smart-lencioni-image-resizer
GNU General Public License v3.0
0 stars 0 forks source link

Image does not exist error, but image filename shown contains \slir\index.php #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Look at this URL:

http://www.visualitineraries.com/slir/index.php?h=180&i=/img/locations/12963.jpg

In slirconfigdefaults.class.php, I have:

 public static $documentRoot = null;

>>What version of the product are you using? On what operating system?
Downloaded it yesterday from GitHub, running on Windows, IIS 7.0.

Error log shows:

REQUEST: 
www.visualitineraries.com/slir/index.php?h=180&i=/img/locations/12963.jpg

#0 
C:\HostingSpaces\vizitin\visualitineraries.com\wwwroot\slir\core\slirrequest.cla
ss.php(170): SLIRRequest->setPath('/img/locations/...')
#1 
C:\HostingSpaces\vizitin\visualitineraries.com\wwwroot\slir\core\slirrequest.cla
ss.php(126): SLIRRequest->__set('i', '/img/locations/...')
#2 
C:\HostingSpaces\vizitin\visualitineraries.com\wwwroot\slir\core\slir.class.php(
286): SLIRRequest->initialize()
#3 
C:\HostingSpaces\vizitin\visualitineraries.com\wwwroot\slir\core\slir.class.php(
444): SLIR->getRequest()
#4 
C:\HostingSpaces\vizitin\visualitineraries.com\wwwroot\slir\core\slir.class.php(
257): SLIR->shouldUseRequestCache()
#5 C:\HostingSpaces\vizitin\visualitineraries.com\wwwroot\slir\index.php(30): 
SLIR->processRequestFromURL()
#6 {main}

I've also tried setting the documentRoot to "/visualitineraries.com/wwwroot", 
and when I do, I get this error message:

Image does not exist:
/visualitineraries.com/wwwroot/img/locations/12963.jpg

(same thing gets written in the error log in this case)

FYI I am seeing cached files written to the cache/rendered folder, but nothing 
to the cache/request folder

My web.config for the slir folder does have the index.php default doc set 
there.  But I tried adding index.php? after the /slir/ in the request just in 
case something was wrong there...no luck.

Any ideas?

I've successfully installed this on a number of Apache servers, and on my IIS7 
server in my office.

Thanks in advance!

Michael.

Original issue reported on code.google.com by MichaelC...@gmail.com on 20 Apr 2012 at 6:25

GoogleCodeExporter commented 9 years ago
Hi Michael, I have exactly the same problem, I see it in your URL has been 
resolved ... Can you help?

Original comment by espinazo on 10 Nov 2012 at 12:54

GoogleCodeExporter commented 9 years ago
I don't recall what I did to fix it....sorry :-(

It might have been something in my slir config file, I think.  Send me an email 
and I'll send you back my config file, maybe that will help.  
michael@visualitineraries.com.

MC

Original comment by MichaelC...@gmail.com on 10 Nov 2012 at 11:56

GoogleCodeExporter commented 9 years ago
I had the same issue this is how I fixed it:
in the slirconfig.class.php file init() method add:
parent::$documentRoot = $_SERVER['DOCUMENT_ROOT'];

I got another I can unrelated error after that: Cannot create symlink, error 
code(1314)
this was easily fixed using this information:
https://code.google.com/p/smart-lencioni-image-resizer/issues/detail?id=41

Original comment by FrankFol...@gmail.com on 17 Oct 2013 at 2:15