Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Define Main Page Error - Please help me :-)


Recommended Posts

Posted

I installed the contribution for a Define main page (see below). I set my permission as instructed to 777. All seemed to go well except for I have an error on the store home page:

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

 

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

 

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

 

I have looked on line 310 in my store/index.php page and what was said to install on that line is here:

 

**CATALOG STEP 1 --> OPEN catalog/index.php:

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

Look for this around line 307 (near bottom):

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

 

<td class="main"><br><?php echo TEXT_MAIN; ?></td>

 

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

And replace that line with this:

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

 

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

 

@@@@@@@@@@@@@@@@@@@@ END /CATALOG/INDEX.PHP @@@@@@@@@@@@@@@@@@@@@@

 

Any idea how to fix this? I'm pasting the entire contribution below (without the define_mainpage.php files):

INSTALLATION (CATALOG):

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

 

 

 

**CATALOG STEP 1 --> OPEN catalog/index.php:

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

Look for this around line 307 (near bottom):

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

 

<td class="main"><br><?php echo TEXT_MAIN; ?></td>

 

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

And replace that line with this:

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

 

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

 

@@@@@@@@@@@@@@@@@@@@ END /CATALOG/INDEX.PHP @@@@@@@@@@@@@@@@@@@@@@

 

 

 

 

**CATALOG STEP 2 --> DEFINE catalog/includes/filenames.php:

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

ADD these lines (follow suit) ALPHABETICALLY Listed

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

 

// define_mainpage

define('FILENAME_MAINPAGE', 'define_mainpage.php');

// define_mainpage_eof

 

@@@@@@@@@@@@@@@@@ END DEFINE FILE (FILENAMES.PHP) @@@@@@@@@@@@@@@@@

 

 

 

 

**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) @@@@@@@@@@

 

 

 

 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 

INSTALLATION (ADMIN):

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

 

 

 

**ADMIN STEP 1 --> COPY the admin/define_mainpage.php (TO_YOUR_ADMIN_FOLDER):

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

COPY the admin/define_mainpage.php to /admin

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

 

admin/define_mainpage.php

 

@@@@@@@@@@@@ END COPY NEW FILES (TO_YOUR_ADMIN_FOLDER) @@@@@@@@@@@@

 

 

 

 

**ADMIN STEP 2 --> DEFINE admin/includes/filenames.php

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

ADD these lines (follow suit) ALPHABETICALLY Listed

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

 

// define_mainpage

define('FILENAME_DEFINE_MAINPAGE', 'define_mainpage.php');

// define_mainpage

 

@@@@@@@@@@@@@@@@@ END DEFINE FILE (FILENAMES.PHP) @@@@@@@@@@@@@@@@@

 

 

 

 

**ADMIN STEP 3 --> ADD/MODIFY admin/includes/boxes/catalog.php:

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

Look for thess around line 29 to 30:

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

 

'<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a>');

}

 

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

And replace those lines with these:

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

 

// define_mainpage

'<a href="' . tep_href_link(FILENAME_DEFINE_MAINPAGE, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_DEFINE_MAINPAGE . '</a><br>' .

// define_mainpage_eof

'<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a>');

}

 

@@@@@@@@@@@@ END ADMIN/INCLUDES/BOXES/CATALOG.PGP @@@@@@@@@@@@@@@@@

 

 

 

 

**ADMIN STEP 4 --> DEFINE admin/includes/languages/(YOUR_LANGUAGE_FILE).php

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

ADD these lines (follow suit) ADMIN BOXTYPE Listed

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

 

// define_mainpage

define('BOX_CATALOG_DEFINE_MAINPAGE', 'Define MainPage');

// define_mainpage_eof

 

@@@@@@@@@@@@@@ END DEFINE FILE (YOUR_LANGUAGE_FILE) @@@@@@@@@@@@@@

 

 

 

FINISHED_____________________________________

  • 2 years later...

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...