-
AuthorPosts
-
Heng CHeong Kum Friend
Heng CHeong Kum
- Join date:
- September 2014
- Posts:
- 43
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 10
- Thanked:
- 5 times in 1 posts
June 18, 2008 at 1:37 pm #129825This is the problem I have:
Warning: imagejpeg() [function.imagejpeg]: Unable to open ‘/home/augustine/domains/perakspeak.com/public_html/v2/images/resized/images/stories/demo/sandin/dscn3235_295_222.jpg’ for writing: No such file or directory in /home/augustine/domains/perakspeak.com/public_html/v2/modules/mod_janews/helper.php on line 123
This installation is the quickstart v1.5
The image in the directory are larger in size, and it does not fit into the FrontPage News
http://www.perakspeak.com/v2Below is line 122, 123, 124 on the mod_janews/helper.php which I am not sure if something is wrong, this came with the installation.
[PHP]imagecopyresampled ($dst, $src, 0, 0, 0, 0, $tn_width, $tn_height, $width, $height);
imagejpeg($dst, $resized, 90); // write the thumbnail to cache as well…
return “images/resized/”.$rzname;[/PHP]I hope someone here can give me some advice, had been trying but couldn’t get it to work.
Thanks
citron Friendcitron
- Join date:
- June 2008
- Posts:
- 49
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
June 18, 2008 at 1:49 pm #254417The error tell you that there is No such file or directory
So first check if the folder “images/resized/” exist and look if there are picture inside the folder:
Check also the atributes to this folder. Your folder should have 775 atribute.
Heng CHeong Kum FriendHeng CHeong Kum
- Join date:
- September 2014
- Posts:
- 43
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 10
- Thanked:
- 5 times in 1 posts
June 18, 2008 at 2:24 pm #254421Hi citron,
Yes, I do realize that it says the “images/rezised” doesn’t exist. But I check it already, there folder is there. But not the file.
You see, the picture originally is not in this folder, I suspect this resize folder is automatically created when we bring the article to FrontPage.
I even change the folder attribute to 777.
Could it be something to do with .htaccess ? or somewhere that permission is not granted for it to access and modify the contents in that folder !
Thank for the reply citron, much appreciated….
Heng CHeong Kum FriendHeng CHeong Kum
- Join date:
- September 2014
- Posts:
- 43
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 10
- Thanked:
- 5 times in 1 posts
June 19, 2008 at 2:31 am #254523anyone can help? has this got something to do with the .htaccess?
Heng CHeong Kum FriendHeng CHeong Kum
- Join date:
- September 2014
- Posts:
- 43
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 10
- Thanked:
- 5 times in 1 posts
June 19, 2008 at 3:53 am #254542manage to solve it, just don’t use mod htaccess, and re-rename back the .htaccess back to htaccess.txt
macca Friendmacca
- Join date:
- April 2008
- Posts:
- 16
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
June 19, 2008 at 10:46 am #254638I had exactly the same error message but it turned out to be that I had named a image folder with uppercase. Found the solution in another thread.
<em>@AristeidisNtatsis 52269 wrote:</em><blockquote>I located the problem:
the folder names may do not contain capital letters!</blockquote>
Heng CHeong Kum FriendHeng CHeong Kum
- Join date:
- September 2014
- Posts:
- 43
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 10
- Thanked:
- 5 times in 1 posts
June 19, 2008 at 11:31 am #254644I also found out the UPPERCASE folder name issue after I remove the .htaccess
Thanks…. macca
However, the image file name in Uppercase doesn’t cause any problems.cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
June 19, 2008 at 1:26 pm #254663<em>@baboonbaboon 60224 wrote:</em><blockquote>manage to solve it, just don’t use mod htaccess, and re-rename back the .htaccess back to htaccess.txt</blockquote>
Hi baboonbaboon,
Just wondering. In the Configuration panel, when you turn on the SEF URLs it generally requires the .htaccess to be activated.
I looked at some of your files, it looks like the SEF is activated base on this format:
Is your SEF URLs activated?
Thanks.
Cornelio
Heng CHeong Kum FriendHeng CHeong Kum
- Join date:
- September 2014
- Posts:
- 43
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 10
- Thanked:
- 5 times in 1 posts
June 19, 2008 at 3:55 pm #254702Hi cgc0202,
Yes, in the global configuration section,
SEF : Yes
Apache mod_rewrite : No
Add suffix to Urls : YesI do notice there is a difference.
The below is a sample of Apache mod_rewrite : Yes (its another web I am going to build with Teline II)
http://www.breastcancerselfcheck.com/news/1-latest-news/160-breast-self-check.htmlWhile the one at http://www.perakspeak.com/v2 has “index.php” after the domain name.
I am not sure at the moment will it make a different with Google since this site is not publish to the public yet, but I think it should be alright since it should still be considered as a static page. Its my guess only though. If the SEF : No, then you should see “?” at the address bar. Google and other search engine may not like it.
1 user says Thank You to Heng CHeong Kum for this useful post
-
AuthorPosts
This topic contains 9 replies, has 4 voices, and was last updated by Heng CHeong Kum 16 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum