Zen Cart Logo
Forums / Basic Configuration / graphics dont show

graphics dont show

Locked

Views: 4,142

Results 1 to 20 of 23
This thread is locked. New replies are disabled.
27 Jul 2009, 9:13 AM
#1
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

graphics dont show

I am using version 1.3.8a Database Patch Level: 1.3.8

my url: http://www.attackinfo.com.au

I have my own web server. Apache (php, mysql)

everything looks fine when I call it up from here (i.e. ://localhost/zen) but when I use another machine (seperate internet) no graphics are displayed.

Can someone please have a look and let me know what I have done wrong?

Thankyou

27 Jul 2009, 9:33 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: graphics dont show

Check your includes/configure.php and admin/includes/configure.php. I suspect that when you installed Zen Cart you gave it a domain of "localhost" or "localhost/zen", which can't be resolved when you try to access it remotely.

Your HTTP_SERVER, and similar definitions, need to be "http://www.attackinfo.com.au".

27 Jul 2009, 9:38 AM
#3
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: graphics dont show

Thanks for the quick response.

I'll go try it now.

27 Jul 2009, 9:57 AM
#4
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: graphics dont show

ok heres what I did:

made a directory (r2r) and copied the configure.php file to it ending up with c:\xampp\htdocs\zen\includes\r2r\configure.php
opened the file in dreamweaver and made it writable then changed to the following:

define('HTTP_SERVER', 'http://www.attackinfo.com.au');
define('HTTPS_SERVER', 'https://localhost');

Then I created a directory (r2r) and copied the admin/includes configure.php to c:\xampp\htdocs\zen\admin\includes\r2r\configure.php opened it in DW and made it writable then changed the following:

define('HTTP_SERVER', 'http://www.attackinfo.com.au');
define('HTTPS_SERVER', 'https://localhost');
define('HTTP_CATALOG_SERVER', 'http://www.attackinfo.com.au');
define('HTTPS_CATALOG_SERVER', 'https://localhost');

In the instances where you see https://www.attackinfo.com.au above I have changed it from 'localhost'

Tested again but it's still not working.. but obviously I haven't done it properly.

How have I gone wrong?

27 Jul 2009, 10:05 AM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: graphics dont show

I'm guessing that you didn't upload your new configure.php files successfully. They're normally read-only on the server so some FTP clients don't like over-writing them. I'm still still seeing evidence of your old settings on your "live" site.

27 Jul 2009, 10:11 AM
#6
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: graphics dont show

Thanks. I'm not sure what you mean by uploading the new configure.php files.... so I restarted the apache server thinking that would correctly reload everything... but nope.

I was making the r2r directories off the original dir's to follow the override process... but maybe i've got that mixed up too.

Should I copy my new configure.php files bacak to there original places overwriting the originals?

I thought I'd better ask if this is a no no before I do it.

27 Jul 2009, 10:15 AM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: graphics dont show

Yes, your amended configure.php files need to replace the original versions, otherwise your changes will have no effect.

27 Jul 2009, 10:26 AM
#8
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: graphics dont show

okay I have done that and I get no change except a warning message that I have left the files writable.

ill change that now

27 Jul 2009, 10:28 AM
#9
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: graphics dont show

still no graphics.

any other ideas?

27 Jul 2009, 10:31 AM
#10
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: graphics dont show

In those configure files you are directing links (including stylesheets and images) to a folder called zen. I suspect that your domain is also directed to the zen folder. This means that links resolve themselves on your server to zen/zen/

This is probably in your DIR_WS_CATALOG definition.

27 Jul 2009, 10:56 AM
#11
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: graphics dont show

This is what that section says in admin/includes/configure.php

define('DIR_WS_ADMIN', '/zen/admin/');
define('DIR_WS_CATALOG', '/zen/');
define('DIR_WS_HTTPS_ADMIN', '/zen/admin/');
define('DIR_WS_HTTPS_CATALOG', '/zen/');

What should it be? (sorry i'm so ignorant)

This is what it says in includes/configure.php

define('DIR_WS_CATALOG', '/zen/');
define('DIR_WS_HTTPS_CATALOG', '/zen/');

What should this be? (sorry again)

27 Jul 2009, 11:09 AM
#12
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: graphics dont show

This is what is in the admin/includes/configure.php file

define('DIR_WS_ADMIN', '/zen/admin/');
define('DIR_WS_CATALOG', '/zen/');
define('DIR_WS_HTTPS_ADMIN', '/zen/admin/');
define('DIR_WS_HTTPS_CATALOG', '/zen/');

What should it be? (sorrry for my ignorance)

This is what is in the includes/configure.php file

define('DIR_WS_CATALOG', '/zen/');
define('DIR_WS_HTTPS_CATALOG', '/zen/');

What should this be? (sorry again)

27 Jul 2009, 11:11 AM
#13
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: graphics dont show

I recommend removing a "zen/" from each of the above.

27 Jul 2009, 11:28 AM
#14
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: graphics dont show

Thanks, Ok, I'll do that but I thought I had better give a bit more info about the https://www.attackinfo.com.au domain.

I am using the domain https://www.attackinfo.com.au because I have set up a virtual host for appache like this:
<VirtualHost *:80>
DocumentRoot "C:\xampp\htdocs\zen"
ServerName https://www.attackinfo.com.au
ServerAlias attackinfo.com.au *.attackinfo.com.au
</VirtualHost>

just thought I'd let you know that in case it had some relevence

let you know how i go. Thanks for all the help

27 Jul 2009, 11:32 AM
#15
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: graphics dont show

The DocumentRoot setting confirms my suspicions above. Hopefully removing a level of redirection into "zen/" folders from your configure files will allow everything to run correctly.

27 Jul 2009, 11:44 AM
#16
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: graphics dont show

Thankyou very much.

Have a look now. (https://www.attackinfo.com.au)

Its just a rough customisation and I know its a very poorly optimized site. but it's a start.

Image handler should fix the speed a bit.

Thanks for all your help kuroi

27 Jul 2009, 11:47 AM
#17
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: graphics dont show

That's looking much better :thumbsup:

27 Jul 2009, 11:58 AM
#18
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: graphics dont show

Hi, sorry , it seems another problem has been generated by my changing things.

I cannot open my admin now.

It used to be accessable from hhtp://localhost/zen/admin

but now when I type that in the browser it jumps to http://www.attackinfo.com.au/zen/admin/login.php and says:
OBJECT NOT FOUND

However when I type http://localhost/zen
I can still get to my page.

Can you help me fix this too?

27 Jul 2009, 12:02 PM
#19
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: graphics dont show

It's the same problem. Looks like you still have a spare "zen/" lurking in your admin/includes/configure.php file.

27 Jul 2009, 12:17 PM
#20
adam65 avatar

adam65

New Zenner

Join Date:
Jul 2009
Posts:
89
Plugin Contributions:
0

Re: graphics dont show

ok i took the zen/ out of: define('DIR_WS_ADMIN', '/admin/');
That worked!

Should I have taken the zen/ out of :
define('DIR_WS_HTTPS_ADMIN', '/zen/admin/');
define('DIR_WS_HTTPS_CATALOG', '/zen/');

aswell?