Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi. I'm trying to install Define Mainpage. I was going over the instructions before I actually tried installing & I'm stuck on this step:

 

 

**CATALOG STEP 3 --> COPY the define_mainpage.php 'file/s' (TO_YOUR_LANGUAGE_FOLDERS):

=====================================================================

Must SET Full Read Write RWRWRW 777 Permission on this file!!

=====================================================================

 

catalog/includes/language/(YOUR_LANGUAGE_FOLDER)/define_mainpage.php

 

@@@@@@@@@@ END COPY NEW FILES (TO_YOUR_LANGUAGE_FOLDERS) @@@@@@@@@@

 

So:

1. Does it mean the catalog > admin & includes folders included in the zip file I downloaded? (they have define_mainpage.php files in them)

 

&

 

2. It says "folder" but my "catalog/includes/language/english folder doesn't open. The english.php does but the code in it doesn't look like "define_mainpage.php" fits in with the rest of the code in there. Please help. Thanks.

Posted

In the directory structure created when you unzipped the contribution there should be a file called define_mainpage.php

in the directory catalog/includes/language/english.

 

This is the one that needs to be copied to the languages folder. It should contain the test that will appear on the screen when you use the code in the php file of the same name.

 

If there isn't then try looking in an earlier version.

 

It could also be a typo and they meancatalog/admin/includes/language/english

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted (edited)

Hi. I hit a snag. I received these 3 error messages after following Lee Neilson's Define Mainpage install info.:

 

Warning: include(includes/languages/english/define_mainpage.php) [function.include]: failed to open stream: No such file or directory in /home/public_html/osCommerce/index.php on line 307

 

Warning: include(includes/languages/english/define_mainpage.php) [function.include]: failed to open stream: No such file or directory in /home/public_html/osCommerce/index.php on line 307

 

Warning: include() [function.include]: Failed opening 'includes/languages/english/define_mainpage.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/php') in /home/public_html/osCommerce/index.php on line 307

 

 

I checked line 307 & it looks like what was asked of me to copy. Here's what it says:

 

<td class="main"><?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFINE_MAINPAGE); ?></td>

 

Please help! Thanks.

Edited by gartex
  • 2 months later...
Posted

i had this problem,and the solution is very simple in catalog/index.php:

<td class="main"><?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_MAINPAGE); ?></td>

just erase the DEFINE.

regards

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...