Page 14 of 30 FirstFirst ... 4121314151624 ... LastLast
Results 131 to 140 of 298
  1. #131
    Join Date
    Jun 2006
    Posts
    440
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Thanks for your help, I tried the following and still I am not there, I am sure the answer is simple and yet nothing for me....as I am still struggling..

    ------------------------------------------------------------------
    Ok the file is currency_update.php it is now located in
    www.adulttoys4u.com.au/shop/currency_update.php. Yet I cannot call it by the url either and get this error messege.


    Warning: require_once(/shop/includes/configure.php) [function.require-once]: failed to open stream: No such file or directory in /home/www/adulttoys4u.com.au/shop/currency_update.php on line 20

    Fatal error: require_once() [function.require]: Failed opening required '/shop/includes/configure.php' (include_path='.:/usr/local/php5/lib/php') in /home/www/adulttoys4u.com.au/shop/currency_update.php on line 20

    ------------------------------------------------------------------------

    This is the line I amended as per your instructions

    DEFINE('PATH_TO_STORE_ROOT','/shop/');

    // Get Zen Cart configuration data
    require_once(PATH_TO_STORE_ROOT . 'includes/configure.php');
    require_once(PATH_TO_STORE_ROOT . 'includes/database_tables.php');

    --------------------------------------------------------------------------

    The Host control panel gives an example which shows I have to set the cron job up ...like this

    rn /home/www/adulttoys4u.com.au/shop/currency_update.php/*

    Thanks again.

  2. #132
    Join Date
    May 2009
    Posts
    42
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Quote Originally Posted by Renz View Post
    Thanks for your help, I tried the following and still I am not there, I am sure the answer is simple and yet nothing for me....as I am still struggling..

    ------------------------------------------------------------------
    Ok the file is currency_update.php it is now located in
    www.adulttoys4u.com.au/shop/currency_update.php. Yet I cannot call it by the url either and get this error messege.


    Warning: require_once(/shop/includes/configure.php) [function.require-once]: failed to open stream: No such file or directory in /home/www/adulttoys4u.com.au/shop/currency_update.php on line 20

    Fatal error: require_once() [function.require]: Failed opening required '/shop/includes/configure.php' (include_path='.:/usr/local/php5/lib/php') in /home/www/adulttoys4u.com.au/shop/currency_update.php on line 20

    ------------------------------------------------------------------------

    This is the line I amended as per your instructions

    DEFINE('PATH_TO_STORE_ROOT','/shop/');

    // Get Zen Cart configuration data
    require_once(PATH_TO_STORE_ROOT . 'includes/configure.php');
    require_once(PATH_TO_STORE_ROOT . 'includes/database_tables.php');

    --------------------------------------------------------------------------

    The Host control panel gives an example which shows I have to set the cron job up ...like this

    rn /home/www/adulttoys4u.com.au/shop/currency_update.php/*

    Thanks again.

    Don't put the slash before 'shop/'

    Try:

    DEFINE('PATH_TO_STORE_ROOT','shop/');

  3. #133
    Join Date
    May 2009
    Posts
    42
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Quote Originally Posted by Renz View Post
    Thanks for your help, I tried the following and still I am not there, I am sure the answer is simple and yet nothing for me....as I am still struggling..

    ------------------------------------------------------------------
    Ok the file is currency_update.php it is now located in
    www.adulttoys4u.com.au/shop/currency_update.php. Yet I cannot call it by the url either and get this error messege.


    Warning: require_once(/shop/includes/configure.php) [function.require-once]: failed to open stream: No such file or directory in /home/www/adulttoys4u.com.au/shop/currency_update.php on line 20

    Fatal error: require_once() [function.require]: Failed opening required '/shop/includes/configure.php' (include_path='.:/usr/local/php5/lib/php') in /home/www/adulttoys4u.com.au/shop/currency_update.php on line 20

    ------------------------------------------------------------------------

    This is the line I amended as per your instructions

    DEFINE('PATH_TO_STORE_ROOT','/shop/');

    // Get Zen Cart configuration data
    require_once(PATH_TO_STORE_ROOT . 'includes/configure.php');
    require_once(PATH_TO_STORE_ROOT . 'includes/database_tables.php');

    --------------------------------------------------------------------------

    The Host control panel gives an example which shows I have to set the cron job up ...like this

    rn /home/www/adulttoys4u.com.au/shop/currency_update.php/*

    Thanks again.
    But if the root of zen is in 'shop' and currency update is in 'shop' then all you need is a slash. remember 'PATH_TO_STORE_ROOT' is where is zen's root (not necessarily your websites root.) relative to currency_update.php

    for cron this sort of thing works for me:

    php -q /home/www/adulttoys4u.com.au/shop/currency_update.php

  4. #134
    Join Date
    Jun 2006
    Posts
    440
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Hi KES99

    I do so appreciate your efforts, though nothing has still worked, I have tried everything you suggested..
    --------------------------------------------------------------------------

    DEFINE('PATH_TO_STORE_ROOT','shop/');

    gave me this
    Warning: require_once(shop/includes/configure.php) [function.require-once]: failed to open stream: No such file or directory in /home/www/adulttoys4u.com.au/shop/currency_update.php on line 20

    Fatal error: require_once() [function.require]: Failed opening required '/includes/configure.php' (include_path='.:/usr/local/php5/lib/php') in /home/www/adulttoys4u.com.au/shop/currency_update.php on line 20

    & this DEFINE('PATH_TO_STORE_ROOT','/');

    gave me
    Warning: require_once(/includes/configure.php) [function.require-once]: failed to open stream: No such file or directory in /home/www/adulttoys4u.com.au/shop/currency_update.php on line 20

    Fatal error: require_once() [function.require]: Failed opening required '/includes/configure.php' (include_path='.:/usr/local/php5/lib/php') in /home/www/adulttoys4u.com.au/shop/currency_update.php on line 20

    --------------------------------------------------------------------------

    Just to clarify the shop file that all other files are in used to be called catalogue from the original zen cart installs..it is sat there on its own it is not in home or www or public ...

    I look fwd to your next suggestion..kind regards..

  5. #135
    Join Date
    Jun 2006
    Posts
    440
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Err just a thought are the file permissions at all relevant in this issue.

  6. #136
    Join Date
    May 2009
    Posts
    42
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Quote Originally Posted by Renz View Post
    Hi KES99
    Just to clarify the shop file that all other files are in used to be called catalogue from the original zen cart installs..it is sat there on its own it is not in home or www or public ...
    Don't understand...have you renamed the folder from catalogue to shop?

  7. #137
    Join Date
    May 2009
    Posts
    42
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Quote Originally Posted by Renz View Post
    Err just a thought are the file permissions at all relevant in this issue.
    They may be.....where exactly is configure.php and what file permissions do you have on it and the folder it's in.

    and if zen is "on its own it is not in home or www or public ..." exactly where is it?

  8. #138
    Join Date
    Jun 2006
    Posts
    440
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Hi KES99

    Yes I have renamed the catalogue to shop. The configure folder is where it supposed to be. (the original file structure)

    /shop/includes/configure.php

    write permissions are as suggested by security procedures for zen item number 3 set configure.php to read only 444

    Do you suggest I create a folder called www and drop the shop into it?

    Cheers

    RR

  9. #139
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: Currency Update (Automatic)

    chdir(dirname(__FILE__));
    DEFINE('PATH_TO_STORE_ROOT', dirname(__FILE__) . '/');

  10. #140
    Join Date
    May 2009
    Posts
    42
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Quote Originally Posted by Renz View Post
    Hi KES99

    Yes I have renamed the catalogue to shop. The configure folder is where it supposed to be. (the original file structure)

    /shop/includes/configure.php

    write permissions are as suggested by security procedures for zen item number 3 set configure.php to read only 444

    Do you suggest I create a folder called www and drop the shop into it?

    Cheers

    RR
    Personally I wouldn't have renamed anything. Too many things can and often do go wrong when you change the location of an installed item such as zen. Best is to install it where you want it and leave it alone.

    I also wouldn't make a www folder. If you're on a linux/apache system www is often part of your path from the servers root. Actually it is often a link to public_html (the real root of your domain). You might really confuse things in having 2 www's.

    Permission of 444 is correct.

    Please check your message box for a PM from me.

    Try the other solution suggested here by a_berezin. Other than that I'm stumped unless you reply in the afirmitive to my PM.

 

 
Page 14 of 30 FirstFirst ... 4121314151624 ... LastLast

Similar Threads

  1. Automatic Currency Updates - curl version problem
    By mtimber in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Dec 2008, 07:53 PM
  2. Automatic Currency Selection for a domain
    By [email protected] in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 3
    Last Post: 5 Jun 2007, 09:38 AM
  3. Automatic Currency Updates
    By dustyservers in forum Customization from the Admin
    Replies: 6
    Last Post: 28 Jun 2006, 12:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR