Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

PDF Catalogs v.1.5.8, Fatal Error


Recommended Posts

Hello , I installed the PDF Catalogs v.1.5.8 contribution, however Im having problems.


After the install, I go to the tools page and start up the contr. but I end up with this error:


Fatal error: Call to undefined function: tep_get_languages_directory() in /mnt/ja2/...../htdocs/shop/catalog/admin/pdf_catalogue.php on line 562


Alot a posts on here say that if you have that problem that you need to go back to step 5 and make sure that the following is installed in the general file:


function tep_get_languages_directory($code) {
  global $languages_id;
  $language_query = tep_db_query("select languages_id, directory from " . TABLE_LANGUAGES . " where code = '" . tep_db_input($code) . "'");
  if (tep_db_num_rows($language_query)) {
    $language = tep_db_fetch_array($language_query);
    $languages_id = $language['languages_id'];
    return $language['directory'];
  } else {
    return false;


however that is already installed, so I don't think that is the problem. Any ideas anyone? Im not having much luck and any help would be greatly appreciated.




Link to comment
Share on other sites

There are two general.php files - one in /includes/functions/ and the other in admin/includes/functions/ - make sure that you added the function to the correct file! :P



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.

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