Could Not Open Language File

Discussion forum for MOD Writers regarding MOD Development.
Locked
core_basic
Registered User
Posts: 21
Joined: Sun Dec 11, 2011 4:11 am

Could Not Open Language File

Post by core_basic » Sat Jan 14, 2012 4:01 am

(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.
Last edited by marian0810 on Sat Jan 14, 2012 1:57 pm, edited 1 time in total.
Reason: moved to MOD Writers Discussion

User avatar
doktornotor
Registered User
Posts: 608
Joined: Fri Sep 09, 2011 7:41 am

Re: Could Not Open Language File

Post by doktornotor » Sat Jan 14, 2012 11:10 am

Language file obviously cannot be HTML.
Support requests via PM go straight to /dev/null!

core_basic
Registered User
Posts: 21
Joined: Sun Dec 11, 2011 4:11 am

Re: Could Not Open Language File

Post by core_basic » Sat Jan 14, 2012 9:24 pm

I've got it as .php, and it still says couldnt be opened.

core_basic
Registered User
Posts: 21
Joined: Sun Dec 11, 2011 4:11 am

Re: Could Not Open Language File

Post by core_basic » Sat Jan 14, 2012 9:26 pm

Solved. Thanks.

Locked

Return to “[3.0.x] MOD Writers Discussion”