Page 1 of 1

Could Not Open Language File

Posted: Sat Jan 14, 2012 4:01 am
by core_basic
(I hope I'm in the right forums category to ask this.)

I'm doing some research on building modules, and working with the PHPBB permissions sytems / roles. I'm trying to implement an example module.

I'm taking the example module from:
http://wiki.phpbb.com/Using_the_phpBB3.0_Module_System

Below is a list of my file names, and their locations:
acp_hello_world.php -- includes/acp/info
acp_hello_world.php -- includes/acp/
acp_hello_world.html -- language/en/mods

Inside the admin panel I've created a section for the mod.
Under 'SYSTEM' I've gone to the ACP section. I created two categories, and one module. My HELLO_World module shows up in the list as an option to assign it. So I did. I now have a new visible tab at the top of my admin panel.

But when I click the tab it tells me:
Language file ./../language/en/mods/hello_world.php couldn't be opened

I've got my language file named acp_hello_world.html. If I change it to hello_world.html the error changes, and tells me that acp_hello_world.html doesn't exist. So it obviously wants it to be named acp_hello_world.html.

But why isn't it opening? I tried to chmod the language file, but it didn't work. Any ideas?

Thanks in advance.

Re: Could Not Open Language File

Posted: Sat Jan 14, 2012 11:10 am
by doktornotor
Language file obviously cannot be HTML.

Re: Could Not Open Language File

Posted: Sat Jan 14, 2012 9:24 pm
by core_basic
I've got it as .php, and it still says couldnt be opened.

Re: Could Not Open Language File

Posted: Sat Jan 14, 2012 9:26 pm
by core_basic
Solved. Thanks.