Post by qasrani » Thu Sep 11, 2008 7:05 pm

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?

Newbie

Posts

Joined
Thu Sep 11, 2008 7:01 pm

User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by qasrani » Thu Sep 11, 2008 7:25 pm

May be this explains my lousy description better

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
Following error comes on pressing ADMINISTRATION button

Code: Select all

Parse error: syntax error, unexpected T_STRING in W:\www\upload\admin\config.php on line 13

Newbie

Posts

Joined
Thu Sep 11, 2008 7:01 pm

Post by qasrani » Thu Sep 11, 2008 7:28 pm

I have windows xp professional with SP 3 installed couple of days ago and I have latest version of uniform server

Newbie

Posts

Joined
Thu Sep 11, 2008 7:01 pm

Post by maxinput » Thu Sep 11, 2008 7:32 pm

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.
Last edited by maxinput on Thu Sep 11, 2008 7:34 pm, edited 1 time in total.

Newbie

Posts

Joined
Tue Jul 29, 2008 3:33 pm

Post by qasrani » Thu Sep 11, 2008 7:34 pm

maxinput wrote: heh heh, you gazumped my next question.
Sorry, did not get your point  ::)

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.

Newbie

Posts

Joined
Thu Sep 11, 2008 7:01 pm

Post by Qphoria » Thu Sep 11, 2008 8:09 pm

qasrani wrote: May be this explains my lousy description better

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
Following error comes on pressing ADMINISTRATION button

Code: Select all

Parse error: syntax error, unexpected T_STRING in W:\www\upload\admin\config.php on line 13
why dont you read the link i gave you. i know what the problem is and that link has the fix

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by qasrani » Thu Sep 11, 2008 11:06 pm

I am sorry, I am a complete and absolute ZERO in this matter. Can you kindly give me exact post link or exact informations how to do this?  :'(

Newbie

Posts

Joined
Thu Sep 11, 2008 7:01 pm

Post by Qphoria » Thu Sep 11, 2008 11:34 pm

I posted the exact link
http://forum.opencart.com/index.php/topic,1642.0.html

The first post tells you how to fix it.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by qasrani » Thu Sep 11, 2008 11:53 pm

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.
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?  ::)

Newbie

Posts

Joined
Thu Sep 11, 2008 7:01 pm

Post by Qphoria » Fri Sep 12, 2008 12:07 am

ah.. thought I listed the file there.

the files:

config.php and admin/config.php

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by qasrani » Fri Sep 12, 2008 12:14 am

config.php contains

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');
?>
admin/config.php contains

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');
?>
Kindly, let me know what to change and where. If possible, give me changed code :S

Newbie

Posts

Joined
Thu Sep 11, 2008 7:01 pm

Post by SiteE@se » Fri Sep 12, 2008 1:21 am

Just coming in on the end of this one ..... take a look the paths in the config files:

Code: Select all

define('DIR_CACHE', 'W:\www\store\cache\');
define('DIR_DOWNLOAD', 'W:wwwstoredownload');
There should be backslashes as on the first line above:

Code: Select all

define('DIR_DOWNLOAD', 'W:\www\store\download\');

Chris @ SiteE@se Web Design


Active Member

Posts

Joined
Mon Dec 17, 2007 7:40 am
Location - UK

Post by Qphoria » Fri Sep 12, 2008 1:21 am

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.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by qasrani » Fri Sep 12, 2008 1:33 am

Thanks a million to you both...

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
Am I too much asking?

Newbie

Posts

Joined
Thu Sep 11, 2008 7:01 pm

Post by qasrani » Fri Sep 12, 2008 1:37 am

Just got that also solved. I have no idea, where my brain was, but now I found it. Thanks really really really a million! You guys are so nice and friendly and helpful especially Qphoria

Newbie

Posts

Joined
Thu Sep 11, 2008 7:01 pm
Who is online

Users browsing this forum: No registered users and 3 guests