HELP please anyone?

I really need some help on this



i had to reinstall (fresh install )my cart but i reinstall the updated one VERSION 1.3.4-sp3

everything went great intill i went to my admin page

this is what i get Warning: Smarty error: unable to read resource: “index.tpl” in /home/content/a/d/m/admin???/html/classes/templater/Smarty.class.php on line 1095

can anyone help me pleaseeeeeeee

index.tpl is missing, I check to make sure if it’s their or not, otherwise I’d just re-upload everything and re-install…

thanks i will take a good look at every thing again ill get back with ya

no it wasnt in there but it isnt in the file to reupload it

as you can see no index.tpl file i down loaded cscart_v1.3.4-sp3 from my help desk and i did a full install overwriting other files. front page works great but NO admin page. How do i get my admin page back

















Can anyone help us here

How are you uploading these files to your server, as the full “tar” then uncompressing it on your server or uncompressing on your PC then using FTP to your server.



If on your PC what do you use to uncompress.

unzipping from computer than uploading it to my server. does that matter? It looks like to me that the file wasn’t even in there. Your help is greatly appreciated. It wiped out everything that I have done in the past 8 months.

Use winrar to unzip these “tar” files, then have a look to see if the file you are missing is there, if it is, then re-upload and see if it works after that.

[quote name=‘zardos’]Use winrar to unzip these “tar” files, then have a look to see if the file you are missing is there, if it is, then re-upload and see if it works after that.[/quote]I am using WinRAR Pro to unzip the file but i dont see any file called index.tpl in classes folder not sure why it would be missing is it some where else. now there is in var/skins_repository/base/admin and customer

[QUOTE]dont see any file called index.tpl in classes folder[/QUOTE]



Thats because their is no “index.tpl” in the classes folder, never has been.

Have you by any chance changed the name of you “admin.php” file to something like “adminmaximus”

What hosting are you using mate,

UKAV had the same issue using 1.3.4 SP3 after upgrading from 1.3.4 SP2



I take NO RESPONSIBLITY if your store dies, although gracefully taking credit for copy and pasting. Not going to say that this will work, but that’s what you’ll tell us :smiley:



Please let me explain.

The problem was caused by the fact that MySQL server dropped the connection after the short period of time. The error that caused this problem is “MySQL server has gone away”:

[URL=“MySQL :: MySQL 8.0 Reference Manual :: B.3.2.7 MySQL server has gone away”]http://dev.mysql.com/doc/refman/5.0/en/gone-away.html[/URL]



In order to solve this problem please modify the “install.php” file located in the “core” directory of your CS-Cart location and replace there the following part of code:



} else {
// Install default blue scheme if the skin doesn't have the admin zone
fn_install_skin('default_blue');
db_query("UPDATE $db_tables[settings] SET value='default_blue' WHERE option_name='skin_name_admin'");
}

if (!empty($skin_data['partner']) && $skin_data['partner'] == 'Y') {
if (fn_copy('var'.DS.'skins_repository'.DS.$skin_name.DS.'partner', 'skins'.DS.$skin_name.DS.'partner', false) == false) {die('
ERROR occured while coping the files... Please check if skins_repository directory exists and has read permissions');
}
} else {

// Install default blue scheme if the skin doesn't have the affiliate zone
fn_install_skin('default_blue');
db_query("UPDATE $db_tables[settings] SET value='default_blue' WHERE option_name='skin_name_partner'");
}
}

?>


with this one:


} else {
// Install default blue scheme if the skin doesn't have the admin zone
fn_install_skin('default_blue');
//db_query("UPDATE $db_tables[settings] SET value='default_blue' WHERE option_name='skin_name_admin'");
}

if (!empty($skin_data['partner']) && $skin_data['partner'] == 'Y') {

if (fn_copy('var'.DS.'skins_repository'.DS.$skin_name.DS.'partner', 'skins'.DS.$skin_name.DS.'partner', false) == false) {

die('
ERROR occured while coping the files... Please check if skins_repository directory exists and has read permissions');
}
} else {

// Install default blue scheme if the skin doesn't have the affiliate zone
fn_install_skin('default_blue');
//db_query("UPDATE $db_tables[settings] SET value='default_blue' WHERE option_name='skin_name_partner'");
}
}
?>


Also please replace the following part of code:

if ($mode == 'install_skin') {
db_initiate($db_host, $db_user, $db_password, $db_name);
$skin_name = db_get_field("SELECT value FROM $db_tables[settings] WHERE option_name='skin_name_customer'");

fn_start_scroller_i();

fn_install_skin($skin_name);


with this one:


if ($mode == 'install_skin') {
db_initiate($db_host, $db_user, $db_password, $db_name);
$skin_name = db_get_field("SELECT value FROM $db_tables[settings] WHERE option_name='skin_name_customer'");

db_query("UPDATE $db_tables[settings] SET value='default_blue' WHERE option_name='skin_name_admin'");

db_query("UPDATE $db_tables[settings] SET value='default_blue' WHERE option_name='skin_name_partner'");

fn_start_scroller_i();

fn_install_skin($skin_name);


Save the file.



Please execute install.php file again. You will be asked for an Authentication code. Your Authentication code is stored at the very end of the “config.php” file located in the root directory of your CS-Cart location.



Please let us know the result. If the problem is still there please provide us with FTP access to your server in order that we could investigate this problem.



Sorry for delay in answering. Thank you.