Hi, I am trying to install open cart with uniform server on my local computer. When I start installation, there does not come screen for pre-requisits. It directly goes to step 1. On last step when prompted, I delete installation directory and make both config.php files a readonly, nothing works. When I press admin or cart, it gives error in line 12 in config.php for cart and in line 13 for admin in same file. Error says unexpected T-string in above mentioned lines. What I am supposed to do?
May be this explains my lousy description better
Following error comes on pressing ONLINE SHOP button
Following error comes on pressing ADMINISTRATION button
Following error comes on pressing ONLINE SHOP button
Code: Select all
Parse error: syntax error, unexpected T_STRING in W:\www\upload\config.php on line 12
Code: Select all
Parse error: syntax error, unexpected T_STRING in W:\www\upload\admin\config.php on line 13
heh heh, you gazumped my next question.
I am running windows XP with xampp and it was flawless with 0.7.7
0.7.8 requires some massaging related to SEF urls which need to be turned off and disabled etc. There are lots of posts about that too.
I am running windows XP with xampp and it was flawless with 0.7.7
0.7.8 requires some massaging related to SEF urls which need to be turned off and disabled etc. There are lots of posts about that too.
Last edited by maxinput on Thu Sep 11, 2008 7:34 pm, edited 1 time in total.
Sorry, did not get your pointmaxinput wrote: heh heh, you gazumped my next question.

Thanks, got your idea now. Do you recommend not using uniform server? What is best alternative?
Last edited by qasrani on Thu Sep 11, 2008 7:40 pm, edited 1 time in total.
why dont you read the link i gave you. i know what the problem is and that link has the fixqasrani wrote: May be this explains my lousy description better
Following error comes on pressing ONLINE SHOP button
Following error comes on pressing ADMINISTRATION buttonCode: Select all
Parse error: syntax error, unexpected T_STRING in W:\www\upload\config.php on line 12
Code: Select all
Parse error: syntax error, unexpected T_STRING in W:\www\upload\admin\config.php on line 13
I posted the exact link
http://forum.opencart.com/index.php/topic,1642.0.html
The first post tells you how to fix it.
http://forum.opencart.com/index.php/topic,1642.0.html
The first post tells you how to fix it.
Thanks for your patience and your time, but as I mentioned, I am ZERO. Can you please tell me where to make those \\ changes? I mean what file or files?Qphoria wrote: I posted the exact link
http://forum.opencart.com/index.php/topic,1642.0.html
The first post tells you how to fix it.

config.php contains
admin/config.php contains
Kindly, let me know what to change and where. If possible, give me changed code :S
Code: Select all
<?php
// HTTP
define('HTTP_SERVER', 'http://localhost/store/');
define('HTTP_IMAGE', 'http://localhost/store/image/');
// HTTPS
define('HTTPS_SERVER', '');
define('HTTPS_IMAGE', '');
// DIR
define('DIR_CACHE', 'W:\www\store\cache\');
define('DIR_DOWNLOAD', 'W:\www\store\download\');
define('DIR_IMAGE', 'W:\www\store\image\');
define('DIR_LIBRARY', 'W:\www\store\library\');
define('DIR_MODEL', 'W:\www\store\catalog\model\');
define('DIR_CONTROLLER', 'W:\www\store\catalog\controller\');
define('DIR_LANGUAGE', 'W:\www\store\catalog\language\');
define('DIR_EXTENSION', 'W:\www\store\catalog\extension\');
define('DIR_TEMPLATE', 'W:\www\store\catalog\template\');
// DB
define('DB_HOST', 'localhost');
define('DB_USER', 'admin');
define('DB_PASSWORD', 'admin');
define('DB_NAME', 'store');
?>
Code: Select all
<?php
// HTTP
define('HTTP_SERVER', 'http://localhost/store/admin/');
define('HTTP_CATALOG', 'http://localhost/store/');
define('HTTP_IMAGE', 'http://localhost/store/image/');
// HTTPS
define('HTTPS_SERVER', '');
define('HTTPS_IMAGE', '');
// DIR
define('DIR_CACHE', 'W:\www\store\cache\');
define('DIR_DOWNLOAD', 'W:\www\store\download\');
define('DIR_IMAGE', 'W:\www\store\image\');
define('DIR_LIBRARY', 'W:\www\store\library\');
define('DIR_MODEL', 'W:\www\store\admin\model\');
define('DIR_CONTROLLER', 'W:\www\store\admin\controller\');
define('DIR_LANGUAGE', 'W:\www\store\admin\language\');
define('DIR_EXTENSION', 'W:\www\store\admin\extension\');
define('DIR_TEMPLATE', 'W:\www\store\admin\template\');
// CATALOG
define('DIR_CATALOG_TEMPLATE', 'W:\www\store\catalog\template\');
// DB
define('DB_HOST', 'localhost');
define('DB_USER', 'local');
define('DB_PASSWORD', 'local');
define('DB_NAME', 'store');
?>
Just coming in on the end of this one ..... take a look the paths in the config files:
There should be backslashes as on the first line above:
Code: Select all
define('DIR_CACHE', 'W:\www\store\cache\');
define('DIR_DOWNLOAD', 'W:wwwstoredownload');
Code: Select all
define('DIR_DOWNLOAD', 'W:\www\store\download\');
Chris @ SiteE@se Web Design
as the link shows.. change all paths from \ to \\
you could also change them to /
change this:
define('DIR_CACHE', 'W:\www\store\cache\');
to this:
define('DIR_CACHE', 'W:/www/store/cache/');
You also need to fix the rest of them. It looks like you removed the \ completely.
wwwstoredownload should be www/store/download... etc.
you could also change them to /
change this:
define('DIR_CACHE', 'W:\www\store\cache\');
to this:
define('DIR_CACHE', 'W:/www/store/cache/');
You also need to fix the rest of them. It looks like you removed the \ completely.
wwwstoredownload should be www/store/download... etc.
Thanks a million to you both...
Now comes this error
Am I too much asking?
Now comes this error
Code: Select all
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'admin'@'localhost' (using password: YES) in W:\www\store\library\database\database.php on line 16
Error: Could not make a database connection using admin@localhost
Who is online
Users browsing this forum: No registered users and 3 guests