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.
Re: Currency Update (Automatic)
Quote:
Originally Posted by
Renz
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/');
Re: Currency Update (Automatic)
Quote:
Originally Posted by
Renz
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
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..
Re: Currency Update (Automatic)
Err just a thought are the file permissions at all relevant in this issue.
Re: Currency Update (Automatic)
Quote:
Originally Posted by
Renz
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?
Re: Currency Update (Automatic)
Quote:
Originally Posted by
Renz
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?
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
Re: Currency Update (Automatic)
chdir(dirname(__FILE__));
DEFINE('PATH_TO_STORE_ROOT', dirname(__FILE__) . '/');
Re: Currency Update (Automatic)
Quote:
Originally Posted by
Renz
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.