Fatal error: Call to undefined function: include_attach_lang

Since Opentools.de has now gone away I've created this forum to house FAQs and support for this mod in phpBB2.

Moderator: Experts

Locked
Guerrero
Posts: 4
Joined: Sun Dec 10, 2006 7:22 pm

Fatal error: Call to undefined function: include_attach_lang

Post by Guerrero »

Fatal error: Call to undefined function: include_attach_lang() in /home/website/public_html/folder/includes/functions.php on line 399

I think I need download the spanish language for the attachment mod, but please where is it?
(I've copied the english files to the spanish folder but the error remains)

or there is other problem?

(of course I've made all the changes -a lot- in the install.txt)

The general phpbb is in spanish.
:roll:
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Post by DavidIQ »

No...you need to read the FAQ.
Guerrero
Posts: 4
Joined: Sun Dec 10, 2006 7:22 pm

Post by Guerrero »

DavidIQ wrote:No...you need to read the FAQ.
sorry but your FAQ refers to other module and line, not functions.php on line 399

In order to run the phpbb I've commented the line
include_attach_lang();
but then the attach mkod doesn't works.

I was thinking the problem is because the phpbb base is in spanish and I don't found the spanish files.
(I've copied the files in english to the spanish folders)

please can you indicate some more information?
for example if you think a file is bad changed or some.

Thanks and sorry my English.
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Post by DavidIQ »

Ok...I'm going to copy and paste from my own FAQ:
DavidIQ wrote:If you're getting:
Fatal error: Call to undefined function: include_attach_lang() in .../admin_attach_cp.php on line 52
when you go to your ACP then you haven't done any of the edits listed in docs/install.txt
If you've done those and are still getting this error then you've missed the edit done to common.php
In other words...your board being in Spanish has nothing to do with this error. I'll change the description in the FAQ to include ALL pages instead of just admin.
Guerrero
Posts: 4
Joined: Sun Dec 10, 2006 7:22 pm

Post by Guerrero »

Thanks, David.

I've made all the changes in install.txt, and now revised the changes (one line added) in common.php 219, as you can see.

Code: Select all

while ( $row = $db->sql_fetchrow($result) )
{
	$board_config[$row['config_name']] = $row['config_value'];
}
include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);
if (file_exists('install') || file_exists('contrib'))
{
	message_die(GENERAL_MESSAGE, 'Please_remove_install_contrib');
}
? any shortcut instead of revise all the changes in all the files?

Thanks.
Guerrero, Spain.
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Post by DavidIQ »

No don't worry about revising all of your other changes. It would be pointless. The only reason you would need to do that is if you didn't use the premodified files or you're unsure of what you did and did not edit. Let's see a link to your board then.
Guerrero
Posts: 4
Joined: Sun Dec 10, 2006 7:22 pm

Post by Guerrero »

Thanks, PM sended.
Locked