Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error in admin


peteruittilburg

Recommended Posts

Posted

After inserting the contri Admin notes, I get an error message in the admin>configuration. The error is:

Fatal error: Call to undefined function translate() in /home/sites/site81/web/admin/includes/boxes/configuration.php on line 29

This line is:

$cfg_groups .= '<a href="' . tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $configuration_groups['cgID'], 'NONSSL') . '" class="menuBoxContentLink">' . translate($configuration_groups['cgTitle'],'','') . '</a><br>';

 

I suppose it is concerning the function translate($configuration_groups['cgTitle'],'','')

My knowledge of PHP is not that great, so I don?t know what the function translate() should do. Also, I cannot find the declaration of this function.

 

So my question is, what is going wrong here, or, what should translate() do.

And please, no more jokes like: back up, back up, back up :blush:

 

Thanks in advance,

Peter

Posted
So my question is, what is going wrong here, or, what should translate() do.

No idea what the translate() function does as you didn't provide the definition for it and that function is not part of the default oscommerce functions. Check your contrib package again as it should either detail where the function should be added (most likely in admin/includes/functions/general.php) or it may be contained in a file that needs to be included.

 

 

So my question is, what is going wrong here, or, what should translate() do.

And please, no more jokes like: back up, back up, back up :blush:

That is never a joke - just solid advice. ;)

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Solved it!

$translate is used by the default osC shop, the function translate() isn?t. This function is introduces by the contri artikelgroesse and declared in admin/includes/application_top.php. I don?t know how I did it, by inserting an other contri that has nothing to do with application_top.php, I exchanged my adapted shop version of this file with the default shop version?!?

Must have bin magic I think.

 

Thanks for your help.

You?ve put me in the right (contri adaptions) direction.

Archived

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

×
×
  • Create New...