Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Define Mainpage errors!


Recommended Posts

I have just installed the define mainpage contribution and Im getting a few errors now and im a bit confused about what I need to do. I have the version 1.3 and followed the directions but now I am getting this error on my main page

 

1054 - Unknown column 'customers_group_id' in 'field list'

 

select customers_group_id from customers where customers_id = ''

 

 

An im also getting the error TEXT_FILE_DOES_NOT_EXIST in my admin.

 

 

I found the directions a bit confusing (im pretty new to this). It says to install the files define_mainpage0.php, define_mainpage1.php and define_mainpage2. I found a file named define_mainpage.php but not the others, so I copied and renamed this file and put them in the appropriate locations (as per instructions). I noticed that on the contributions page it said that some of the code was incorrect in the instructions. I dont have b2b installed however so im not sure if that part of the code is relevant for me. But in the instruction I have it does mention b2b, so Im now wondering if Im not meant to put this part of the code in:

 

// define_mainpage for B2B

define('FILENAME_DEFINE_MAINPAGE0', 'define_mainpage0.php');

define('FILENAME_DEFINE_MAINPAGE1', 'define_mainpage1.php');

define('FILENAME_DEFINE_MAINPAGE2', 'define_mainpage2.php');

// define_mainpage for B2B

 

I also noticed that some parts of the code in the instructions had an underscore eg FILENAME_DEFINE_MAINPAGE_0 and some parts didnt FILENAME_DEFINE_MAINPAGE0

 

could this be part of the problem? If anyone can point me in the right direction that would be great, Ive been searching for an answer since last night and cant seem to find any clear answers.

Link to comment
Share on other sites

Ok well Ive figured out that I was getting confused between the code for the B2B contribution and the original version. The errors are now gone and I can edit the text in admin but now I still have one problem. When I edit the text in admin it doesnt show up on the main page.

 

Can anyone point me in the right direction for fixing this?

Link to comment
Share on other sites

Ok well Ive now figured it out. There is an error in the instructions:

 

Installation instructions Error:

 

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

 

// define_mainpage

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

// define_mainpage_eof

 

REPLACE WITH:

 

// define_mainpage

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

// define_mainpage_eof

 

I finally have it all working. Just thought I would post here incase anyone else runs into similar problems as I have.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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