skjaiswal1991 / 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

Cannot create symlink, error code(1314) #41

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Execute http://127.0.0.1/slir/w100/gallery/holiday/_MG_0001.jpg

What is the expected output? What do you see instead?
Expected: The resized picture.

Instead:
Cannot create symlink, error code(1314)
File: C:\xampp\htdocs\slir\slir.class.php
Line: 1133

What version of the product are you using? On what operating system?
2.0b4 - win7 ultimate

Please provide any additional information below.
Solve this problem by simply adding an @ to symlink($symlinkToPath, 
$cacheFilePath) on line 1133.

Here's the complete fixed line:
if ($symlinkToPath && function_exists('symlink') && 
(file_exists($cacheFilePath) || @symlink($symlinkToPath, $cacheFilePath)))

Works perfect for me. Thanks!

Greets,
kernel

P.S.: Fixed slir.class.php attached.

Original issue reported on code.google.com by www.krnl...@gmail.com on 13 May 2011 at 5:14

Attachments:

GoogleCodeExporter commented 8 years ago
1. increase memory_limit in php.ini, for example, memory_limit = 256M;
2. add a line in slirconfig.class.php: public static $maxMemoryToAllocate = 192;
http://code.google.com/p/smart-lencioni-image-resizer/issues/detail?id=39

Original comment by caiguan...@gmail.com on 13 Aug 2011 at 3:32

GoogleCodeExporter commented 8 years ago
This resolves my error .Worked out for me in no seconds.
Thanks

Original comment by indulekh...@gmail.com on 30 Jul 2014 at 6:46

GoogleCodeExporter commented 8 years ago
Good solution, thanks!

Original comment by gyula.ma...@gmail.com on 22 Feb 2015 at 11:08