PDA

View Full Version : new site, newbie in need of assistance!


ryan
19-05-07, 12:09
Hi
I just recently joined shop window and am trying to set up a site at www.easyfones2u.co.uk

I have uploaded all the files and followed all the instructions but all i get on the home page is white .... is there something simple i have missed out on here?!

Andy
19-05-07, 14:52
youve got errors, but error reporting is suppressed.

open includes/constants.inc.php

change:
ini_set('display_errors', 0); // php errors

to
ini_set('display_errors', 1); // php errors

save and upload.
try the page again and post any errors. There's a good chance the error message will tell you whats wrong.

Off the top of my head, make sure you CHMOD the following folders to 0777:

includes/smarty/templates_c
includes/smarty/cache

that is the usual casue of early install errors.

Hope thids helps

ryan
19-05-07, 15:19
Hi

Thanks for your reply. I had already set the CHMOD to 777 for those directories.

I get this error message now....


Warning: Smarty error: unable to read resource: "index.tpl" in /homepages/33/d196465908/htdocs/easyfones2u/includes/smarty/libs/Smarty.class.php on line 1095


I have no idea what /homepages/33/d196465908/htdocs/ is though.

authcode
19-05-07, 17:31
I have no idea what /homepages/33/d196465908/htdocs/ is though.

This is the server file system root to your home page. htdocs is the root folder you upload your website to i.e.

/homepages/33/d196465908/htdocs/index.htm

is identical to

http://www.easyfones2u.co.uk/index.htm

From the error you've posted I'm guessing you've uploaded your files to the wrong directory, you probably don't want your ShopWindow file structure in the "easyfones2u" directory that you've got there.
It's definately a problem with finding the right files - once you've sorted the path out you should be OK.

ryan
19-05-07, 21:15
ok thanks for that, i think i have sorted out the file location, now I get this message....

display('index.tpl'); ?>

authcode
20-05-07, 10:33
Just that? Weird.

Check your index.php file isn't corrupt - it should start with '<?php' and have 52 lines of code.
Check your web host supports php scripts. Make a new file called 'phpinfo.php' and put this code in it:
<?php
phpinfo();
?>

upload it to your website and view it with your browser. You should get a load of info about php, if you don't, you need to ask your web host how you can run php. Until then you won't be able to use the SW client.

ryan
20-05-07, 21:56
Hi
Thanks for your reply. My index file appears correct and has 52 lines. I had to change my htaccess file to run the php as php4, and now I get this message...

ShopWindow Client v1.0 status

* PHP check: OK
* Template folder writable: NO (Please change the permissions on the folder "HOME_PATHincludes/smarty/templates_c/" to writable)
* USER_ID set: YES
* USER_PASS set: YES

on my home page http://easyfones2u.co.uk

I have set the permissions on that folder to 777 so that should be ok, is there anything else I need to do?

ryan
20-05-07, 22:20
o just figured out, i had to change the global.inc.php file to define HOME_PAGE rather than HOME_URL as HOME_PAGE is what is used throughout the code.

now it is working, just need to do a template now.

Thanks for the help guys.

authcode
20-05-07, 22:30
EDIT: scrap that - see you've got it working now - nice one. Good luck.

-------------------------------------------------------------------------------------

HOME_PATHincludes/smarty/templates_c/

looking at this path I would guess it's having problems locating this path because there should be a '/' between HOME_PATH and 'includes'.

This check is taking place in status.php which is forming this (nonexistent) path.

Try commenting out (put '//' before) this line in index.php

include_once('status.php'); // detect any basic setup errors

and see what you get. If you get similar path errors then there's something still in the wrong place somewhere. When you extracted the files from the zip did you keep the directory structure?

ryan
20-05-07, 22:35
Cheers I beat you to it. It was just that the HOME_URL was defined but not HOME_PATH.

Now I just looked at the shop, and when I click on and links there I get a 404 error.

The instructions sounded so simple...

authcode
21-05-07, 10:12
http://easyfones2u.co.uk/T_CATEGORY?c=230
is supposed to read...
http://easyfones2u.co.uk/category.php?c=230
but the constant T_CATEGORY isn't being formed properly in constants.inc.php. This is because your HOME_URL doesn't have a trailing '/' but should.

I'm not sure exactly where the problem lies. If you've unzipped the client software AND kept the directory structure and up loaded the whole lot into htdocs on your host so that index.php is in htdocs it should be good to run straight out of the box. Have you moved any of the client files from their original locations?