Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • Heng CHeong Kum Friend
    #129825

    This 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/v2

    Below 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 Friend
    #254417

    The 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 Friend
    #254421

    Hi 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 Friend
    #254523

    anyone can help? has this got something to do with the .htaccess?

    Heng CHeong Kum Friend
    #254542

    manage to solve it, just don’t use mod htaccess, and re-rename back the .htaccess back to htaccess.txt

    macca Friend
    #254638

    I 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 Friend
    #254644

    I 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 Friend
    #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:

    http://www.perakspeak.com/v2/index.php/sport/horse-racing/63-horse-racing/102-india-closes-torch-relay-to-spectators.html

    Is your SEF URLs activated?

    Thanks.

    Cornelio

    Heng CHeong Kum Friend
    #254702

    Hi cgc0202,

    Yes, in the global configuration section,

    SEF : Yes
    Apache mod_rewrite : No
    Add suffix to Urls : Yes

    I 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.html

    While 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.

Viewing 9 posts - 1 through 9 (of 9 total)

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