Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (edited)

Hello,

 

I just installed roduct Listing Enhancements, Thumbnails & Manufacturer Headings V2.2 and got a successful result page, but when I went to check out the site, I got the following error: Fatal error: Call to a member function add_current_page() on a non-object in /home/bellaves/public_html/catalog/includes/application_top.php on line 312

 

I removed the following from application_top.php:

// navigation history
 if (tep_session_is_registered('navigation')) {
   if (PHP_VERSION < 4) {
     $broken_navigation = $navigation;
     $navigation = new navigationHistory;
     $navigation->unserialize($broken_navigation);
   }
 } else {
   tep_session_register('navigation');
   $navigation = new navigationHistory;
 }
 $navigation->add_current_page();

 

And I managed to get to the homepage. When I clicked on the first of my catagories I got the following error:

 

1054 - Unknown column 'pd.short_desc' in 'field list'

 

select p.products_image, pd.products_name, pd.products_info, pd.short_desc, p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id left join specials s on p.products_id = s.products_id, products_to_categories p2c where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '21' order by pd.products_name limit 0, 10

 

This may have to do with the Short Description contribution I had previously added, but according to the documentation, this shouldn't negatively effect this contribution. Is that correct?

 

I've recently taken over this account and am working with osCommerce for the first time and don't even know what mods or modifications have been made prior to me, so I'm hoping it isn't something I inherited...

 

Any help would be most appreciated as the site is down! Thank you in advance,

CArRiE

Edited by CallCarrie
Posted

Hello,

 

I just installed roduct Listing Enhancements, Thumbnails & Manufacturer Headings V2.2 and got a successful result page, but when I went to check out the site, I got the following error: Fatal error: Call to a member function add_current_page() on a non-object in /home/bellaves/public_html/catalog/includes/application_top.php on line 312

 

I didn't even edit this area of the page, so I don't know why it's suddenly a problem. I pulled the original (backed-up) file and made the edits again according to the instructions, and still I receive this error.

 

I've recently taken over this account and am working with osCommerce for the first time and don't even know what mods or modifications have been made prior to me, so I'm hoping it isn't something I inherited...

 

Any help would be most appreciated as the site is down! Thank you in advance,

CArRiE

Follow the links in my posts here: Click Me

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Follow the links in my posts here: Click Me

 

Thank you so much! You wouldn't be able to help me with my additional issue??

 

1054 - Unknown column 'pd.short_desc' in 'field list'

 

ETC... See above post

 

Thanks Again!

CArRiE

Posted

Thank you so much! You wouldn't be able to help me with my additional issue??

 

1054 - Unknown column 'pd.short_desc' in 'field list'

 

ETC... See above post

 

Thanks Again!

CArRiE

Click this

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Click this

 

Thank you, I did a search and had found that post, but it doesn't seem to be my problem. Here's my chunk of code from index.php:

 $column_list = array();
   reset($define_list);
   while (list($key, $value) = each($define_list)) {
     if ($value > 0) $column_list[] = $key;
   }

   $select_column_list = '';

   for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {
     switch ($column_list[$i]) {
       case 'PRODUCT_LIST_MODEL':
         $select_column_list .= 'p.products_model, ';
         break;
       case 'PRODUCT_LIST_NAME':
         $select_column_list .= 'pd.products_name, ';
         break;
       case 'PRODUCT_LIST_MANUFACTURER':
         $select_column_list .= 'm.manufacturers_name, ';
         break;
       case 'PRODUCT_LIST_QUANTITY':
         $select_column_list .= 'p.products_quantity, ';
         break;
       case 'PRODUCT_LIST_IMAGE':
         $select_column_list .= 'p.products_image, ';
         break;
       case 'PRODUCT_LIST_WEIGHT':
         $select_column_list .= 'p.products_weight, ';
         break;
     }
   }

$select_column_list .= 'pd.short_desc, ';

 

I really appreciate you taking the time to reply. Any other ideas?

Posted

Thank you, I did a search and had found that post, but it doesn't seem to be my problem. Here's my chunk of code from index.php:

 $column_list = array();
   reset($define_list);
   while (list($key, $value) = each($define_list)) {
     if ($value > 0) $column_list[] = $key;
   }

   $select_column_list = '';

   for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {
     switch ($column_list[$i]) {
       case 'PRODUCT_LIST_MODEL':
         $select_column_list .= 'p.products_model, ';
         break;
       case 'PRODUCT_LIST_NAME':
         $select_column_list .= 'pd.products_name, ';
         break;
       case 'PRODUCT_LIST_MANUFACTURER':
         $select_column_list .= 'm.manufacturers_name, ';
         break;
       case 'PRODUCT_LIST_QUANTITY':
         $select_column_list .= 'p.products_quantity, ';
         break;
       case 'PRODUCT_LIST_IMAGE':
         $select_column_list .= 'p.products_image, ';
         break;
       case 'PRODUCT_LIST_WEIGHT':
         $select_column_list .= 'p.products_weight, ';
         break;
     }
   }

$select_column_list .= 'pd.short_desc, ';

 

I really appreciate you taking the time to reply. Any other ideas?

Post in the support thread for the contribution.

 

It only makes sense to ask the person who coded the contribution.

 

Although the author can be less than... let's say "curteous" at times.

:-"

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Post in the support thread for the contribution.

 

It only makes sense to ask the person who coded the contribution.

 

Although the author can be less than... let's say "curteous" at times.

:-"

Swell... I will do my best to stay on his good side. Thanks again!

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