Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New installation successful but can't go on!


hughwb

Recommended Posts

I have finally managed to get step 7 to work and have a "configuration was successful" message. However, clicking on the catalog button, gives the following errors

 

"Parse error: parse error, unexpected T_STRING in e:\domains\m\myonlinecraftmarket.co.uk\user\htdocs\catalog\includes\configure.php on line 34

 

Warning: main(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in e:\domains\m\myonlinecraftmarket.co.uk\user\htdocs\catalog\includes\application_top.php on line 55

 

Fatal error: main(): Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.;c:\php4\pear') in e:\domains\m\myonlinecraftmarket.co.uk\user\htdocs\catalog\includes\application_top.php on line 55"

 

Whilst clicking on the Admin Tools button gives the following

 

"Parse error: parse error, unexpected T_STRING in e:\domains\m\myonlinecraftmarket.co.uk\user\htdocs\catalog\admin\includes\configure.php on line 19

 

Warning: main(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in e:\domains\m\myonlinecraftmarket.co.uk\user\htdocs\catalog\admin\includes\application_top.php on line 46

 

Fatal error: main(): Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.;c:\php4\pear') in e:\domains\m\myonlinecraftmarket.co.uk\user\htdocs\catalog\admin\includes\application_top.php on line 46"

 

Please could someone advise.

 

Many thanks

 

Hugh

Link to comment
Share on other sites

Hi Hugh

 

Help is in the error msg. Just take a look at the line(s) refered to in the error msgs, to see if you could spot anything there, or if you dont understand them then post them here (just the lines concerned/in question).

 

Good Luck!

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

Hi Ken,

 

Thanks for the help. I have looked at the errors for the catalog button and managed to sort them out. However the Admin tools error elude me. The lines in question are:

 

Line 19 of configure.php "define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required"

 

Line 46 of application_top.php "require(DIR_WS_INCLUDES . 'filenames.php');"

 

Many thanks

 

Hugh

Link to comment
Share on other sites

Hi Hugh

 

The way you used to solve the problem of

Parse error: parse error, unexpected T_STRING in e:\domains\m\myonlinecraftmarket.co.uk\user\htdocs\catalog\includes\configure.php on line 34

could be applied to your line 19 error. Try to delete catalog before /admin/, but it depends on th eother defines in the configure.php.

 

The reason why you see DIR_WS_INCLUDES (line 46) in the error msg is because it (DIR_WS_INCLUDES) has been defined in the configure.php or not correctly.

 

btw is it a windows (local server) you are using for your osc?

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

Hi Ken,

 

Thank you very much. That's brilliant. I have removed the /catalog/ and that seems to have solved the whole problem. Didn't need to do anything with the includes error.

 

However, all the images are either broken, red cross on white background, or distorted, as if they were a very bad tv signal, if that makes sense.

 

Could you point me in the right direction for this?

 

Many thanks

 

Hugh

Link to comment
Share on other sites

Hi Hugh

 

Red cross means the image is missing: right click on thhe red cross and see where it is looking for the images and then check if the image is actually located there or not;

Distorted: the size or shape of your original images are not the same as the default values in osC, e.g., in osC, it requires a 10:8 (w:h) ratio by default. if yours are different then the images are going to be distorted.

 

I think thrers still some errors in your configure.php with regard to the missing images.

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

Hi Ken,

 

Thanks again for all this. The images that are distorted are the install process images, the admin tool images and those that appear in the test version of the catalog so I would hope these are correctly sized? (i.e. they came with the OSC 2.2 download).

 

I wondered if the problem was due to permissions so tried to change these on one image file. I could not.

 

I have also been reading the next steps in the documentation which states that I need to change some permissions for security reasons.

 

My ISP says that "You are on a Windows server and due to the nature of Windows servers you can not change the permissions of files via CHMOD. If you like, you can swap to a Linux server, this is free and no files are deleted. You can now make this change from this control panel. Please see the Switch Windows/Linux option".

 

So, would you recommend moving to a Linux server? If so, should I start again with the install. I can remember having to edit the install_3.php file to allow for the fact that I was on a windows server and also loading 'register globals 1.5' to allow the install to go ahead with this switched off.

 

Your help is greatly appreciated.

 

Hugh

Link to comment
Share on other sites

Hi Hugh

 

Running osC on a windows server, although not imppossible, would give you all sort of troubles ahead as someone new to osC. If you want to make your life easier then Yes you should go for a linux server with php & mySQL (best with safe mode OFF, register globals ON, mod_rewrite ON, gd ENABLED etc. all of which are currently required or better-have for a fully functional osC shop). Majority of osC shops are running on linux boxes.

 

If the server is OK as described above then installing a stock osC should not take more than 15mins (it takes me less than 5mins btw). So whether you'd re-install or move files over is not really a problem. Just make sure the server meets the requirements.

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...