Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP Expert needed, Call to undefined function problem.


NewBudda

Recommended Posts

Posted

I have a conflict between 2 contributions and was not sure in which thread to post, sorry if this is the wrong one...

I have recently installed the Additional Image Module and all was fine until I tried to modify existing products. Halfway down the product page I got this error message:

 

Call to undefined function: tep_get_products_head_title_tag() in ../admin/categories.php on line 743

 

Now I checked the file and line 743 reads

			   <td class="main"><?php echo tep_draw_textarea_field('products_head_title_tag[' . $languages[$i]['id'] . ']', 'soft', '70', '5', (isset($products_head_title_tag[$languages[$i]['id']]) ? stripslashes($products_head_title_tag[$languages[$i]['id']]) : tep_get_products_head_title_tag($pInfo->products_id, $languages[$i]['id']))); ?></td>

I know this has something to do with the contribution Header Tag Control but my php knowledge is not good enough to spot which function is not defined.

 

I tried posting both files (prior and now) here but they are too long.

 

According to the installation instructions of AIM "...its a treat to use Winmerge to compare and install AIM". Well, no it isnt if you have to compare a modified file with the installtion file with limited php knowledge.

I would really appreciate any pointers on how to solve this myself, so I can learn from it...

Thank you for your time!

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Posted
I know this has something to do with the contribution Header Tag Control but my php knowledge is not good enough to spot which function is not defined.

 

You already have it's tep_get_products_head_title_tag()

 

This post should be in the header tags support forum if indeed that function relates to that contribution.

Posted
You already have it's tep_get_products_head_title_tag()

 

What exactly does that mean?

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Posted
What exactly does that mean?

 

 

The function tep_get_products_head_title_tag(); is not defined in your oscommerce files yet admin/categories requires it to be.

 

If it is a function of the "header tags" contribution then you need to go back through the install instructions and find out where you went wrong.

 

I say again .. this post is in the wrong location .. it should be in the relevant contribution support topic as it is not a core oscommerce function.

Posted
If it is a function of the "header tags" contribution then you need to go back through the install instructions and find out where you went wrong.

 

I say again .. this post is in the wrong location .. it should be in the relevant contribution support topic as it is not a core oscommerce function.

 

Are you sure about this? I dont really know what functions this is, HTC is a guess of mine, based on the fact that it seems connect to "products_head_title_tag". Sorry, if I didnt make that clear enough.

 

The function tep_get_products_head_title_tag(); is not defined in your oscommerce files yet admin/categories requires it to be.

I got that far, thank you. Where would it be defined and how would I define it?

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Posted
Are you sure about this? I dont really know what functions this is, HTC is a guess of mine, based on the fact that it seems connect to "products_head_title_tag". Sorry, if I didnt make that clear enough.

I got that far, thank you. Where would it be defined and how would I define it?

 

 

Sorry, I for one am not going to trawl through contributions to find the source of your problem.

 

As I said before it is not a standard oscommerce function so you need to identify which contributions you have installed and find where you have gone wrong.

Posted

My last post in this.

 

I "bothered" to actually search for the problem

 

googled site:oscommerce.com tep_get_products_head_title_tag

 

and guess what ...

 

http://www.oscommerce.com/forums/lofiversion/i...php?t41771.html

Posted
My last post in this.

 

I "bothered" to actually search for the problem

 

googled site:oscommerce.com tep_get_products_head_title_tag

 

and guess what ...

 

http://www.oscommerce.com/forums/lofiversion/i...php?t41771.html

 

i did too, but did not get that link. Thank you for your help, if not your tone.

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Posted

Apologies if the "tone" seemed abrasive NB but as much as people love to give support on these forums we equally expect people to search for existing solutions before posting.

 

We also expect for problems related to specific contributions to be posted in the relevant support topics for those contributions.

 

Problems related to the "core" oscommerce code will be answered gladly and freely in this forum. Outside of this however you have the choice to seek advice in the specific contribution forum or pay for expert help.

 

In this case you didn't need to pay for expert help and although you were not happy with my "tone" I also expect that you noted I was the only one to respond at all.

Archived

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

×
×
  • Create New...