• I keep getting this error.
    CG-Amazon failed to cache to disk — couldn’t write file to the cache_amazon directory.
    I changed dir permisions to 777, but I am still getting the same error.
    In the area that should list something out of my wish list, it comes up with “No products found.”
    Any ideas??

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter basicjim

    (@basicjim)

    I did a search on the error, and have seen other people with the same problem, but not any solutions.

    Thread Starter basicjim

    (@basicjim)

    Okay… I am a little slow. I got the permissions on the folder right, but didn’t set the permissions on the file IN the folder.
    Sorry!!

    That sounds like the base permissions of your web/phpserver (or the owner they run under) isn’t high enough for normal file creation. Once the folder is created, the files should be created just fine.
    HOWEVER, if you copied UP already-cached files from say a test machine (which I use) locally, those files would potentially have the incorrect permissions for allowing the webserver/php to overwrite them…
    -d

    David,

    I had to do a clean install of CG-Amazon because another plug-in, I think changed some settings to it. So I deleted everything on my server and dumped the CG-Amazon tables in my MySql database and cleared the references in the database to the cache_amazon folder because it was keeping two ASIN’s in the folder.

    After a couple of reinstalls, everything looks good now, but I get this error when searching for an ASIN:

    Call to undefined function: uni_decode() in /homepages/7/d106361195/htdocs/netmix_home/
    wordpress/wp-content/plugins/cg-plugins/cg-amazon.php on line 2062

    Do you know what this is and how to fix it? Please let me know. Thanks.

    Tony Z.

    Oh, should my cache_amazon folder be set to 755 or 777? It was working originally on 755, but I saw a post where someone said something about changing it to 777.

    Appreciate your help.

    Thanks.

    Tony

    Hey Tony –

    Sorry about that — I posted in the 1.5.2 release thread about that bug and the solution, but haven’t wanted to go upload a 1.5.2.1 sub-release yet… maybe I should just update the current build! ??

    Add the line:
    require_once($myAmaPath."uni_fns.php");

    in cg-amazon.php, line 18 (after the other two require_once statements).

    That should fix the issue.

    I’m not great with folder permissions… I probably use 777, which may be ‘too much’. If it’s working with less, leave it with less… ??

    -d

    David,

    Thanks!

    You know, now that I think about it, I think I actually saw that post…I’m so sorry, in my frustration, I forgot that there was a bug fix. I’d already done it and just forgot to do it again in the reinstall.

    Thanks for your time. Much appreciated. By the way, you’re a genius! I look at all those lines of code and I could only hope to one day understand how you put all that stuff together…it’s amazing!

    Tony Z.

    Greetings…and hoping your holidays were good. I have been having a hard time installing the CG Amazon. I am not new to plugins, but am confused as to which folders are uploaded where..I downloaded Dave Chaitgear’s bundle and see that there are several folders…

    I am not sure whether to make different folders (subfolders) when I upload them to the wp-content/plugins/cg-plugins/cache_amazon/cache_feedreads…

    whew….please be patient with me…I have tried reading the threads posted…I just don’t understand them…

    btw…this is the error message I get:

    CG-Amazon failed to cache to disk — couldn’t write file to the cache_amazon directory.

    thanks…

    andrena

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Error in CG-Amazon’ is closed to new replies.