Guest Posted December 11, 2006 Posted December 11, 2006 Hi i have just attepted a install of xsell but i have come accross a few problems which i need some advice with first being on my main page http://www.jestersmagic.co.uk/magicstore/ This appears Warning: I am able to write to the configuration file: /home/h30jest/public_html/magicstore/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. When i access admin this appears //Cache function rdel($path, $deldir = true) { // $path est le chemin relatif au fichier php // $deldir (paramètre optionel, par défaut à vrai) permet de dire si vous souhaitez supprimer le répertoire (vrai) ou le vider uniquement (faux) // on vérifie d'abord que le nom du repertoire contient "/" à la fin, sinon on le lui rajoute if ($path[strlen($path)-1] != "/") $path .= "/"; if (is_dir($path)) { $d = opendir($path); while ($f = readdir($d)) { if ($f != "." && $f != "..") { $rf = $path . $f; // chemin relatif au fichier php if (is_dir($rf)) // si c'est un répertoire on appel récursivement la fonction rdel($rf); else // sinon on efface le fichier unlink($rf); } } closedir($d); if ($deldir) // si $deldir est vrai on efface le répertoire rmdir($path); } else { unlink($path); } } //Fin cache Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/h30jest/public_html/magicstore/admin/includes/functions/general.php:1318) in /home/h30jest/public_html/magicstore/admin/includes/functions/sessions.php on line 67 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/h30jest/public_html/magicstore/admin/includes/functions/general.php:1318) in /home/h30jest/public_html/magicstore/admin/includes/functions/sessions.php on line 67 If anyone could help i would be grateful Thanks James
Guest Posted December 11, 2006 Posted December 11, 2006 sorry i meant the first warning was Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/h30jest/public_html/magicstore/includes/configure.php:49) in /home/h30jest/public_html/magicstore/includes/functions/sessions.php on line 97 Warning: I am able to write to the configuration file: /home/h30jest/public_html/magicstore/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. on http://www.jestersmagic.co.uk/magicstore If anyone could help i would appreciate it Thanks James
jdvb Posted December 11, 2006 Posted December 11, 2006 first errors, check and see to it that there are no spaces or empty lines before <?php or after ?> in includes/configure.php second error, go to your ftp client, and rightclick includes/configure.php --> set permissions --> 644 --> done
Guest Posted December 12, 2006 Posted December 12, 2006 first errors, check and see to it that there are no spaces or empty lines before <?php or after ?> in includes/configure.php second error, go to your ftp client, and rightclick includes/configure.php --> set permissions --> 644 --> done There were no spaces found and permissions were already set to 644 so nothing has changed
Guest Posted December 12, 2006 Posted December 12, 2006 There were no spaces found and permissions were already set to 644 so nothing has changed I changed the permissions to 444 and it worked but i am still getting the following error. in admin //Cache function rdel($path, $deldir = true) { // $path est le chemin relatif au fichier php // $deldir (paramètre optionel, par défaut à vrai) permet de dire si vous souhaitez supprimer le répertoire (vrai) ou le vider uniquement (faux) // on vérifie d'abord que le nom du repertoire contient "/" à la fin, sinon on le lui rajoute if ($path[strlen($path)-1] != "/") $path .= "/"; if (is_dir($path)) { $d = opendir($path); while ($f = readdir($d)) { if ($f != "." && $f != "..") { $rf = $path . $f; // chemin relatif au fichier php if (is_dir($rf)) // si c'est un répertoire on appel récursivement la fonction rdel($rf); else // sinon on efface le fichier unlink($rf); } } closedir($d); if ($deldir) // si $deldir est vrai on efface le répertoire rmdir($path); } else { unlink($path); } } //Fin cache Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/h30jest/public_html/magicstore/admin/includes/functions/general.php:1318) in /home/h30jest/public_html/magicstore/admin/includes/functions/sessions.php on line 67 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/h30jest/public_html/magicstore/admin/includes/functions/general.php:1318) in /home/h30jest/public_html/magicstore/admin/includes/functions/sessions.php on line 67
jdvb Posted December 12, 2006 Posted December 12, 2006 paste the code from magicstore/admin/includes/functions/general.php arround line 1318 here. think there is something wrong with a "?>" and or a "<?php"
Guest Posted December 12, 2006 Posted December 12, 2006 paste the code from magicstore/admin/includes/functions/general.php arround line 1318 here.think there is something wrong with a "?>" and or a "<?php" Hiya i found the problem with that thanks but over one hurdle i have found another in catalog it has '' . BOX_CATALOG_XSELL_PRODUCTS . ' ' . listed and when i click on it i got to this page http://jestersmagic.co.uk/magicstore/admin...TS)%20.%20' Sorry to be a pain hopefully i have nearly done everything now thanks James
jdvb Posted December 12, 2006 Posted December 12, 2006 that once again is a problem with a "<?php" and or a "?>" positioned incorrectly or missing, or a single or double quote incorrect, do find the source code where it goes wrong and past that here. you will just need the code before tep_href_link(FILENAME_XSELL_PRODUCTS) and after it, so that anyone that knows a litle about php that comes here can help you fix the problem.
Guest Posted December 12, 2006 Posted December 12, 2006 that once again is a problem with a "<?php" and or a "?>" positioned incorrectly or missing, or a single or double quote incorrect, do find the source code where it goes wrong and past that here. you will just need the code before tep_href_link(FILENAME_XSELL_PRODUCTS) and after it, so that anyone that knows a litle about php that comes here can help you fix the problem. Thanks for your help i have managed to work a bit more out for myself but i have come accross another problem all information listed below. Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/h30jest/public_html/magicstore/admin/includes/functions/database.php:13) in /home/h30jest/public_html/magicstore/admin/includes/functions/database.php on line 13 Line 13 function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') {
Recommended Posts
Archived
This topic is now archived and is closed to further replies.